@kdujs/canary
Advanced tools
Comparing version 3.20240304.0 to 3.20240311.0-minor.0
if (typeof require !== 'undefined') { | ||
require('@kdujs/compiler-sfc').registerTS(() => require('typescript')) | ||
try { | ||
require('@kdujs/compiler-sfc').registerTS(() => require('typescript')) | ||
} catch (e) {} | ||
} |
@@ -22,11 +22,3 @@ 'use strict'; | ||
const compileCache = /* @__PURE__ */ new WeakMap(); | ||
function getCache(options) { | ||
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ); | ||
if (!c) { | ||
c = /* @__PURE__ */ Object.create(null); | ||
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c); | ||
} | ||
return c; | ||
} | ||
const compileCache = /* @__PURE__ */ Object.create(null); | ||
function compileToFunction(template, options) { | ||
@@ -42,4 +34,3 @@ if (!shared.isString(template)) { | ||
const key = template; | ||
const cache = getCache(options); | ||
const cached = cache[key]; | ||
const cached = compileCache[key]; | ||
if (cached) { | ||
@@ -79,3 +70,3 @@ return cached; | ||
render._rc = true; | ||
return cache[key] = render; | ||
return compileCache[key] = render; | ||
} | ||
@@ -82,0 +73,0 @@ runtimeDom.registerRuntimeCompiler(compileToFunction); |
@@ -22,11 +22,3 @@ 'use strict'; | ||
const compileCache = /* @__PURE__ */ new WeakMap(); | ||
function getCache(options) { | ||
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ); | ||
if (!c) { | ||
c = /* @__PURE__ */ Object.create(null); | ||
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c); | ||
} | ||
return c; | ||
} | ||
const compileCache = /* @__PURE__ */ Object.create(null); | ||
function compileToFunction(template, options) { | ||
@@ -41,4 +33,3 @@ if (!shared.isString(template)) { | ||
const key = template; | ||
const cache = getCache(options); | ||
const cached = cache[key]; | ||
const cached = compileCache[key]; | ||
if (cached) { | ||
@@ -65,3 +56,3 @@ return cached; | ||
render._rc = true; | ||
return cache[key] = render; | ||
return compileCache[key] = render; | ||
} | ||
@@ -68,0 +59,0 @@ runtimeDom.registerRuntimeCompiler(compileToFunction); |
@@ -5,3 +5,3 @@ import * as runtimeDom from '@kdujs/runtime-dom'; | ||
import { compile } from '@kdujs/compiler-dom'; | ||
import { isString, NOOP, extend, generateCodeFrame, EMPTY_OBJ } from '@kdujs/shared'; | ||
import { isString, NOOP, extend, generateCodeFrame } from '@kdujs/shared'; | ||
@@ -17,11 +17,3 @@ function initDev() { | ||
} | ||
const compileCache = /* @__PURE__ */ new WeakMap(); | ||
function getCache(options) { | ||
let c = compileCache.get(options != null ? options : EMPTY_OBJ); | ||
if (!c) { | ||
c = /* @__PURE__ */ Object.create(null); | ||
compileCache.set(options != null ? options : EMPTY_OBJ, c); | ||
} | ||
return c; | ||
} | ||
const compileCache = /* @__PURE__ */ Object.create(null); | ||
function compileToFunction(template, options) { | ||
@@ -37,4 +29,3 @@ if (!isString(template)) { | ||
const key = template; | ||
const cache = getCache(options); | ||
const cached = cache[key]; | ||
const cached = compileCache[key]; | ||
if (cached) { | ||
@@ -74,3 +65,3 @@ return cached; | ||
render._rc = true; | ||
return cache[key] = render; | ||
return compileCache[key] = render; | ||
} | ||
@@ -77,0 +68,0 @@ registerRuntimeCompiler(compileToFunction); |
@@ -51,6 +51,6 @@ import { | ||
: T[K] extends WritableComputedRef<infer V> | ||
? WritableComputedRefValue<V> | ||
: T[K] extends Ref<infer V> | ||
? RefValue<V> | ||
: T[K] | ||
? WritableComputedRefValue<V> | ||
: T[K] extends Ref<infer V> | ||
? RefValue<V> | ||
: T[K] | ||
} | ||
@@ -72,15 +72,15 @@ | ||
: T[K] extends ComputedRefValue<infer V> | ||
? ComputedRef<V> | ||
: T[K] extends WritableComputedRefValue<infer V> | ||
? WritableComputedRef<V> | ||
: T[K] extends object | ||
? T[K] extends | ||
| Function | ||
| Map<any, any> | ||
| Set<any> | ||
| WeakMap<any, any> | ||
| WeakSet<any> | ||
? T[K] | ||
: ToRawRefs<T[K]> | ||
: T[K] | ||
? ComputedRef<V> | ||
: T[K] extends WritableComputedRefValue<infer V> | ||
? WritableComputedRef<V> | ||
: T[K] extends object | ||
? T[K] extends | ||
| Function | ||
| Map<any, any> | ||
| Set<any> | ||
| WeakMap<any, any> | ||
| WeakSet<any> | ||
? T[K] | ||
: ToRawRefs<T[K]> | ||
: T[K] | ||
} | ||
@@ -87,0 +87,0 @@ |
{ | ||
"name": "@kdujs/canary", | ||
"version": "3.20240304.0", | ||
"version": "3.20240311.0-minor.0", | ||
"description": "The progressive JavaScript framework for building modern web UI.", | ||
@@ -99,7 +99,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240304.0", | ||
"@kdujs/compiler-dom": "npm:@kdujs/compiler-dom-canary@3.20240304.0", | ||
"@kdujs/runtime-dom": "npm:@kdujs/runtime-dom-canary@3.20240304.0", | ||
"@kdujs/compiler-sfc": "npm:@kdujs/compiler-sfc-canary@3.20240304.0", | ||
"@kdujs/server-renderer": "npm:@kdujs/server-renderer-canary@3.20240304.0" | ||
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240311.0-minor.0", | ||
"@kdujs/compiler-dom": "npm:@kdujs/compiler-dom-canary@3.20240311.0-minor.0", | ||
"@kdujs/runtime-dom": "npm:@kdujs/runtime-dom-canary@3.20240311.0-minor.0", | ||
"@kdujs/compiler-sfc": "npm:@kdujs/compiler-sfc-canary@3.20240311.0-minor.0", | ||
"@kdujs/server-renderer": "npm:@kdujs/server-renderer-canary@3.20240311.0-minor.0" | ||
}, | ||
@@ -106,0 +106,0 @@ "peerDependencies": { |
@@ -45,3 +45,3 @@ # kdu | ||
- Rollup: use [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/master/packages/replace) | ||
- Lahm: configured by default, but can be overwritten using the `define` option | ||
- Wite: configured by default, but can be overwritten using the `define` option | ||
@@ -48,0 +48,0 @@ Note: the replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2016073
53732
2
+ Added@kdujs/compiler-core-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/compiler-dom-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/compiler-sfc-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/compiler-ssr-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/reactivity-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/reactivity-transform-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/runtime-core-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/runtime-dom-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/server-renderer-canary@3.20240311.0-minor.0(transitive)
+ Added@kdujs/shared-canary@3.20240311.0-minor.0(transitive)
- Removed@kdujs/compiler-core-canary@3.20240304.0(transitive)
- Removed@kdujs/compiler-dom-canary@3.20240304.0(transitive)
- Removed@kdujs/compiler-sfc-canary@3.20240304.0(transitive)
- Removed@kdujs/compiler-ssr-canary@3.20240304.0(transitive)
- Removed@kdujs/reactivity-canary@3.20240304.0(transitive)
- Removed@kdujs/reactivity-transform-canary@3.20240304.0(transitive)
- Removed@kdujs/runtime-core-canary@3.20240304.0(transitive)
- Removed@kdujs/runtime-dom-canary@3.20240304.0(transitive)
- Removed@kdujs/server-renderer-canary@3.20240304.0(transitive)
- Removed@kdujs/shared-canary@3.20240304.0(transitive)
Updated@kdujs/compiler-dom@npm:@kdujs/compiler-dom-canary@3.20240311.0-minor.0
Updated@kdujs/compiler-sfc@npm:@kdujs/compiler-sfc-canary@3.20240311.0-minor.0
Updated@kdujs/runtime-dom@npm:@kdujs/runtime-dom-canary@3.20240311.0-minor.0
Updated@kdujs/server-renderer@npm:@kdujs/server-renderer-canary@3.20240311.0-minor.0
Updated@kdujs/shared@npm:@kdujs/shared-canary@3.20240311.0-minor.0