@cabloy/vue-runtime-core 3.4.28 → 3.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime-core.cjs.js +18 -11
- package/dist/runtime-core.cjs.prod.js +15 -8
- package/dist/runtime-core.d.ts +13 -13
- package/dist/runtime-core.esm-bundler.js +18 -11
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -667,7 +667,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
667
667
|
if (emitsOptions) {
|
|
668
668
|
if (!(event in emitsOptions) && true) {
|
|
669
669
|
if (!propsOptions || !(shared.toHandlerKey(event) in propsOptions)) {
|
|
670
|
-
if (event !== "
|
|
670
|
+
if (event !== "controllerRef") {
|
|
671
671
|
warn$1(
|
|
672
672
|
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${shared.toHandlerKey(event)}" prop.`
|
|
673
673
|
);
|
|
@@ -2711,7 +2711,13 @@ const KeepAliveImpl = {
|
|
|
2711
2711
|
let pendingCacheKey = null;
|
|
2712
2712
|
const cacheSubtree = () => {
|
|
2713
2713
|
if (pendingCacheKey != null) {
|
|
2714
|
-
|
|
2714
|
+
if (isSuspense(instance.subTree.type)) {
|
|
2715
|
+
queuePostRenderEffect(() => {
|
|
2716
|
+
cache.set(pendingCacheKey, getInnerChild(instance.subTree));
|
|
2717
|
+
}, instance.subTree.suspense);
|
|
2718
|
+
} else {
|
|
2719
|
+
cache.set(pendingCacheKey, getInnerChild(instance.subTree));
|
|
2720
|
+
}
|
|
2715
2721
|
}
|
|
2716
2722
|
};
|
|
2717
2723
|
onMounted(cacheSubtree);
|
|
@@ -2872,10 +2878,11 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
2872
2878
|
);
|
|
2873
2879
|
}
|
|
2874
2880
|
}
|
|
2875
|
-
const createHook = (lifecycle) => (hook, target = currentInstance) =>
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2881
|
+
const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
2882
|
+
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
2883
|
+
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2879
2886
|
const onBeforeMount = createHook("bm");
|
|
2880
2887
|
const onMounted = createHook("m");
|
|
2881
2888
|
const onBeforeUpdate = createHook("bu");
|
|
@@ -4951,7 +4958,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4951
4958
|
optimized
|
|
4952
4959
|
);
|
|
4953
4960
|
} else if (vnode.type === Text && !vnode.children) {
|
|
4954
|
-
|
|
4961
|
+
insert(vnode.el = createText(""), container);
|
|
4955
4962
|
} else {
|
|
4956
4963
|
hasMismatch = true;
|
|
4957
4964
|
if (!hasWarned) {
|
|
@@ -5087,7 +5094,7 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
5087
5094
|
mismatchType = mismatchKey = `class`;
|
|
5088
5095
|
}
|
|
5089
5096
|
} else if (key === "style") {
|
|
5090
|
-
actual = el.getAttribute("style");
|
|
5097
|
+
actual = el.getAttribute("style") || "";
|
|
5091
5098
|
expected = shared.isString(clientValue) ? clientValue : shared.stringifyStyle(shared.normalizeStyle(clientValue));
|
|
5092
5099
|
const actualMap = toStyleMap(actual);
|
|
5093
5100
|
const expectedMap = toStyleMap(expected);
|
|
@@ -7692,7 +7699,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
7692
7699
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (``)
|
|
7693
7700
|
);
|
|
7694
7701
|
} else {
|
|
7695
|
-
warn$1(`Component is missing template or render function
|
|
7702
|
+
warn$1(`Component is missing template or render function: `, Component);
|
|
7696
7703
|
}
|
|
7697
7704
|
}
|
|
7698
7705
|
}
|
|
@@ -8092,7 +8099,7 @@ function isMemoSame(cached, memo) {
|
|
|
8092
8099
|
return true;
|
|
8093
8100
|
}
|
|
8094
8101
|
|
|
8095
|
-
const version = "3.4.
|
|
8102
|
+
const version = "3.4.27";
|
|
8096
8103
|
const warn = warn$1 ;
|
|
8097
8104
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8098
8105
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2081,7 +2081,13 @@ const KeepAliveImpl = {
|
|
|
2081
2081
|
let pendingCacheKey = null;
|
|
2082
2082
|
const cacheSubtree = () => {
|
|
2083
2083
|
if (pendingCacheKey != null) {
|
|
2084
|
-
|
|
2084
|
+
if (isSuspense(instance.subTree.type)) {
|
|
2085
|
+
queuePostRenderEffect(() => {
|
|
2086
|
+
cache.set(pendingCacheKey, getInnerChild(instance.subTree));
|
|
2087
|
+
}, instance.subTree.suspense);
|
|
2088
|
+
} else {
|
|
2089
|
+
cache.set(pendingCacheKey, getInnerChild(instance.subTree));
|
|
2090
|
+
}
|
|
2085
2091
|
}
|
|
2086
2092
|
};
|
|
2087
2093
|
onMounted(cacheSubtree);
|
|
@@ -2234,10 +2240,11 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
2234
2240
|
return wrappedHook;
|
|
2235
2241
|
}
|
|
2236
2242
|
}
|
|
2237
|
-
const createHook = (lifecycle) => (hook, target = currentInstance) =>
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2243
|
+
const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
2244
|
+
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
2245
|
+
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
2246
|
+
}
|
|
2247
|
+
};
|
|
2241
2248
|
const onBeforeMount = createHook("bm");
|
|
2242
2249
|
const onMounted = createHook("m");
|
|
2243
2250
|
const onBeforeUpdate = createHook("bu");
|
|
@@ -3822,7 +3829,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3822
3829
|
optimized
|
|
3823
3830
|
);
|
|
3824
3831
|
} else if (vnode.type === Text && !vnode.children) {
|
|
3825
|
-
|
|
3832
|
+
insert(vnode.el = createText(""), container);
|
|
3826
3833
|
} else {
|
|
3827
3834
|
hasMismatch = true;
|
|
3828
3835
|
patch(
|
|
@@ -6278,7 +6285,7 @@ function isMemoSame(cached, memo) {
|
|
|
6278
6285
|
return true;
|
|
6279
6286
|
}
|
|
6280
6287
|
|
|
6281
|
-
const version = "3.4.
|
|
6288
|
+
const version = "3.4.27";
|
|
6282
6289
|
const warn$1 = shared.NOOP;
|
|
6283
6290
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6284
6291
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOpt
|
|
|
128
128
|
$options: Options & MergedComponentOptionsOverride;
|
|
129
129
|
$forceUpdate: () => void;
|
|
130
130
|
$nextTick: typeof nextTick;
|
|
131
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: WatchOptions): WatchStopHandle;
|
|
131
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
132
132
|
} & IfAny<P, P, Omit<P, keyof ShallowUnwrapRef<B>>> & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties & InjectToObject<I>;
|
|
133
133
|
|
|
134
134
|
declare enum LifecycleHooks {
|
|
@@ -369,16 +369,16 @@ export declare const KeepAlive: {
|
|
|
369
369
|
export declare function onActivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
370
370
|
export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
371
371
|
|
|
372
|
-
export declare const onBeforeMount: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
373
|
-
export declare const onMounted: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
374
|
-
export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
375
|
-
export declare const onUpdated: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
376
|
-
export declare const onBeforeUnmount: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
377
|
-
export declare const onUnmounted: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
378
|
-
export declare const onServerPrefetch: (hook: () => any, target?: ComponentInternalInstance | null) =>
|
|
372
|
+
export declare const onBeforeMount: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
373
|
+
export declare const onMounted: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
374
|
+
export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
375
|
+
export declare const onUpdated: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
376
|
+
export declare const onBeforeUnmount: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
377
|
+
export declare const onUnmounted: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
378
|
+
export declare const onServerPrefetch: (hook: () => any, target?: ComponentInternalInstance | null) => void;
|
|
379
379
|
type DebuggerHook = (e: DebuggerEvent) => void;
|
|
380
|
-
export declare const onRenderTriggered: (hook: DebuggerHook, target?: ComponentInternalInstance | null) =>
|
|
381
|
-
export declare const onRenderTracked: (hook: DebuggerHook, target?: ComponentInternalInstance | null) =>
|
|
380
|
+
export declare const onRenderTriggered: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => void;
|
|
381
|
+
export declare const onRenderTracked: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => void;
|
|
382
382
|
type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
|
|
383
383
|
export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
|
|
384
384
|
|
|
@@ -496,7 +496,7 @@ export interface DirectiveBinding<V = any> {
|
|
|
496
496
|
dir: ObjectDirective<any, V>;
|
|
497
497
|
}
|
|
498
498
|
export type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode<any, T>, prevVNode: Prev) => void;
|
|
499
|
-
type SSRDirectiveHook = (binding: DirectiveBinding
|
|
499
|
+
type SSRDirectiveHook<V> = (binding: DirectiveBinding<V>, vnode: VNode) => Data | undefined;
|
|
500
500
|
export interface ObjectDirective<T = any, V = any> {
|
|
501
501
|
created?: DirectiveHook<T, null, V>;
|
|
502
502
|
beforeMount?: DirectiveHook<T, null, V>;
|
|
@@ -505,7 +505,7 @@ export interface ObjectDirective<T = any, V = any> {
|
|
|
505
505
|
updated?: DirectiveHook<T, VNode<any, T>, V>;
|
|
506
506
|
beforeUnmount?: DirectiveHook<T, null, V>;
|
|
507
507
|
unmounted?: DirectiveHook<T, null, V>;
|
|
508
|
-
getSSRProps?: SSRDirectiveHook
|
|
508
|
+
getSSRProps?: SSRDirectiveHook<V>;
|
|
509
509
|
deep?: boolean;
|
|
510
510
|
}
|
|
511
511
|
export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>;
|
|
@@ -1521,7 +1521,7 @@ export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T
|
|
|
1521
1521
|
/**
|
|
1522
1522
|
* v-for object
|
|
1523
1523
|
*/
|
|
1524
|
-
export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key:
|
|
1524
|
+
export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: string, index: number) => VNodeChild): VNodeChild[];
|
|
1525
1525
|
|
|
1526
1526
|
/**
|
|
1527
1527
|
* For prefixing keys in v-on="obj" with "on"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -669,7 +669,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
669
669
|
if (emitsOptions) {
|
|
670
670
|
if (!(event in emitsOptions) && true) {
|
|
671
671
|
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
672
|
-
if (event !== "
|
|
672
|
+
if (event !== "controllerRef") {
|
|
673
673
|
warn$1(
|
|
674
674
|
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
|
|
675
675
|
);
|
|
@@ -2715,7 +2715,13 @@ const KeepAliveImpl = {
|
|
|
2715
2715
|
let pendingCacheKey = null;
|
|
2716
2716
|
const cacheSubtree = () => {
|
|
2717
2717
|
if (pendingCacheKey != null) {
|
|
2718
|
-
|
|
2718
|
+
if (isSuspense(instance.subTree.type)) {
|
|
2719
|
+
queuePostRenderEffect(() => {
|
|
2720
|
+
cache.set(pendingCacheKey, getInnerChild(instance.subTree));
|
|
2721
|
+
}, instance.subTree.suspense);
|
|
2722
|
+
} else {
|
|
2723
|
+
cache.set(pendingCacheKey, getInnerChild(instance.subTree));
|
|
2724
|
+
}
|
|
2719
2725
|
}
|
|
2720
2726
|
};
|
|
2721
2727
|
onMounted(cacheSubtree);
|
|
@@ -2876,10 +2882,11 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
2876
2882
|
);
|
|
2877
2883
|
}
|
|
2878
2884
|
}
|
|
2879
|
-
const createHook = (lifecycle) => (hook, target = currentInstance) =>
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2885
|
+
const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
2886
|
+
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
2887
|
+
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
2888
|
+
}
|
|
2889
|
+
};
|
|
2883
2890
|
const onBeforeMount = createHook("bm");
|
|
2884
2891
|
const onMounted = createHook("m");
|
|
2885
2892
|
const onBeforeUpdate = createHook("bu");
|
|
@@ -4969,7 +4976,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4969
4976
|
optimized
|
|
4970
4977
|
);
|
|
4971
4978
|
} else if (vnode.type === Text && !vnode.children) {
|
|
4972
|
-
|
|
4979
|
+
insert(vnode.el = createText(""), container);
|
|
4973
4980
|
} else {
|
|
4974
4981
|
hasMismatch = true;
|
|
4975
4982
|
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {
|
|
@@ -5105,7 +5112,7 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
5105
5112
|
mismatchType = mismatchKey = `class`;
|
|
5106
5113
|
}
|
|
5107
5114
|
} else if (key === "style") {
|
|
5108
|
-
actual = el.getAttribute("style");
|
|
5115
|
+
actual = el.getAttribute("style") || "";
|
|
5109
5116
|
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
5110
5117
|
const actualMap = toStyleMap(actual);
|
|
5111
5118
|
const expectedMap = toStyleMap(expected);
|
|
@@ -7750,7 +7757,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
7750
7757
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
|
|
7751
7758
|
);
|
|
7752
7759
|
} else {
|
|
7753
|
-
warn$1(`Component is missing template or render function
|
|
7760
|
+
warn$1(`Component is missing template or render function: `, Component);
|
|
7754
7761
|
}
|
|
7755
7762
|
}
|
|
7756
7763
|
}
|
|
@@ -8162,7 +8169,7 @@ function isMemoSame(cached, memo) {
|
|
|
8162
8169
|
return true;
|
|
8163
8170
|
}
|
|
8164
8171
|
|
|
8165
|
-
const version = "3.4.
|
|
8172
|
+
const version = "3.4.27";
|
|
8166
8173
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8167
8174
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8168
8175
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/vue-runtime-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.30",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.4.
|
|
50
|
-
"@vue/reactivity": "3.4.
|
|
49
|
+
"@vue/shared": "3.4.27",
|
|
50
|
+
"@vue/reactivity": "3.4.27"
|
|
51
51
|
}
|
|
52
52
|
}
|