@vue/runtime-core 3.5.29 → 3.5.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3159,12 +3159,16 @@ function renderList(source, renderItem, cache, index) {
|
|
|
3159
3159
|
);
|
|
3160
3160
|
}
|
|
3161
3161
|
} else if (typeof source === "number") {
|
|
3162
|
-
if (!Number.isInteger(source)) {
|
|
3163
|
-
warn$1(
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3162
|
+
if (!Number.isInteger(source) || source < 0) {
|
|
3163
|
+
warn$1(
|
|
3164
|
+
`The v-for range expects a positive integer value but got ${source}.`
|
|
3165
|
+
);
|
|
3166
|
+
ret = [];
|
|
3167
|
+
} else {
|
|
3168
|
+
ret = new Array(source);
|
|
3169
|
+
for (let i = 0; i < source; i++) {
|
|
3170
|
+
ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
3171
|
+
}
|
|
3168
3172
|
}
|
|
3169
3173
|
} else if (shared.isObject(source)) {
|
|
3170
3174
|
if (source[Symbol.iterator]) {
|
|
@@ -3615,6 +3619,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
3615
3619
|
}
|
|
3616
3620
|
function withAsyncContext(getAwaitable) {
|
|
3617
3621
|
const ctx = getCurrentInstance();
|
|
3622
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
3618
3623
|
if (!ctx) {
|
|
3619
3624
|
warn$1(
|
|
3620
3625
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
@@ -3622,13 +3627,25 @@ function withAsyncContext(getAwaitable) {
|
|
|
3622
3627
|
}
|
|
3623
3628
|
let awaitable = getAwaitable();
|
|
3624
3629
|
unsetCurrentInstance();
|
|
3630
|
+
if (inSSRSetup) {
|
|
3631
|
+
setInSSRSetupState(false);
|
|
3632
|
+
}
|
|
3633
|
+
const restore = () => {
|
|
3634
|
+
setCurrentInstance(ctx);
|
|
3635
|
+
if (inSSRSetup) {
|
|
3636
|
+
setInSSRSetupState(true);
|
|
3637
|
+
}
|
|
3638
|
+
};
|
|
3625
3639
|
const cleanup = () => {
|
|
3626
3640
|
if (getCurrentInstance() !== ctx) ctx.scope.off();
|
|
3627
3641
|
unsetCurrentInstance();
|
|
3642
|
+
if (inSSRSetup) {
|
|
3643
|
+
setInSSRSetupState(false);
|
|
3644
|
+
}
|
|
3628
3645
|
};
|
|
3629
3646
|
if (shared.isPromise(awaitable)) {
|
|
3630
3647
|
awaitable = awaitable.catch((e) => {
|
|
3631
|
-
|
|
3648
|
+
restore();
|
|
3632
3649
|
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
3633
3650
|
throw e;
|
|
3634
3651
|
});
|
|
@@ -3636,7 +3653,7 @@ function withAsyncContext(getAwaitable) {
|
|
|
3636
3653
|
return [
|
|
3637
3654
|
awaitable,
|
|
3638
3655
|
() => {
|
|
3639
|
-
|
|
3656
|
+
restore();
|
|
3640
3657
|
Promise.resolve().then(cleanup);
|
|
3641
3658
|
}
|
|
3642
3659
|
];
|
|
@@ -6011,7 +6028,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6011
6028
|
}
|
|
6012
6029
|
} else {
|
|
6013
6030
|
if (root.ce && root.ce._hasShadowRoot()) {
|
|
6014
|
-
root.ce._injectChildStyle(
|
|
6031
|
+
root.ce._injectChildStyle(
|
|
6032
|
+
type,
|
|
6033
|
+
instance.parent ? instance.parent.type : void 0
|
|
6034
|
+
);
|
|
6015
6035
|
}
|
|
6016
6036
|
{
|
|
6017
6037
|
startMeasure(instance, `render`);
|
|
@@ -8493,7 +8513,7 @@ function isMemoSame(cached, memo) {
|
|
|
8493
8513
|
return true;
|
|
8494
8514
|
}
|
|
8495
8515
|
|
|
8496
|
-
const version = "3.5.
|
|
8516
|
+
const version = "3.5.30";
|
|
8497
8517
|
const warn = warn$1 ;
|
|
8498
8518
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8499
8519
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2449,9 +2449,11 @@ function renderList(source, renderItem, cache, index) {
|
|
|
2449
2449
|
);
|
|
2450
2450
|
}
|
|
2451
2451
|
} else if (typeof source === "number") {
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2452
|
+
{
|
|
2453
|
+
ret = new Array(source);
|
|
2454
|
+
for (let i = 0; i < source; i++) {
|
|
2455
|
+
ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
2456
|
+
}
|
|
2455
2457
|
}
|
|
2456
2458
|
} else if (shared.isObject(source)) {
|
|
2457
2459
|
if (source[Symbol.iterator]) {
|
|
@@ -2758,15 +2760,28 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
2758
2760
|
}
|
|
2759
2761
|
function withAsyncContext(getAwaitable) {
|
|
2760
2762
|
const ctx = getCurrentInstance();
|
|
2763
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
2761
2764
|
let awaitable = getAwaitable();
|
|
2762
2765
|
unsetCurrentInstance();
|
|
2766
|
+
if (inSSRSetup) {
|
|
2767
|
+
setInSSRSetupState(false);
|
|
2768
|
+
}
|
|
2769
|
+
const restore = () => {
|
|
2770
|
+
setCurrentInstance(ctx);
|
|
2771
|
+
if (inSSRSetup) {
|
|
2772
|
+
setInSSRSetupState(true);
|
|
2773
|
+
}
|
|
2774
|
+
};
|
|
2763
2775
|
const cleanup = () => {
|
|
2764
2776
|
if (getCurrentInstance() !== ctx) ctx.scope.off();
|
|
2765
2777
|
unsetCurrentInstance();
|
|
2778
|
+
if (inSSRSetup) {
|
|
2779
|
+
setInSSRSetupState(false);
|
|
2780
|
+
}
|
|
2766
2781
|
};
|
|
2767
2782
|
if (shared.isPromise(awaitable)) {
|
|
2768
2783
|
awaitable = awaitable.catch((e) => {
|
|
2769
|
-
|
|
2784
|
+
restore();
|
|
2770
2785
|
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
2771
2786
|
throw e;
|
|
2772
2787
|
});
|
|
@@ -2774,7 +2789,7 @@ function withAsyncContext(getAwaitable) {
|
|
|
2774
2789
|
return [
|
|
2775
2790
|
awaitable,
|
|
2776
2791
|
() => {
|
|
2777
|
-
|
|
2792
|
+
restore();
|
|
2778
2793
|
Promise.resolve().then(cleanup);
|
|
2779
2794
|
}
|
|
2780
2795
|
];
|
|
@@ -4608,7 +4623,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4608
4623
|
}
|
|
4609
4624
|
} else {
|
|
4610
4625
|
if (root.ce && root.ce._hasShadowRoot()) {
|
|
4611
|
-
root.ce._injectChildStyle(
|
|
4626
|
+
root.ce._injectChildStyle(
|
|
4627
|
+
type,
|
|
4628
|
+
instance.parent ? instance.parent.type : void 0
|
|
4629
|
+
);
|
|
4612
4630
|
}
|
|
4613
4631
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
4614
4632
|
patch(
|
|
@@ -6640,7 +6658,7 @@ function isMemoSame(cached, memo) {
|
|
|
6640
6658
|
return true;
|
|
6641
6659
|
}
|
|
6642
6660
|
|
|
6643
|
-
const version = "3.5.
|
|
6661
|
+
const version = "3.5.30";
|
|
6644
6662
|
const warn$1 = shared.NOOP;
|
|
6645
6663
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6646
6664
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -489,7 +489,7 @@ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOpt
|
|
|
489
489
|
$: ComponentInternalInstance;
|
|
490
490
|
$data: D;
|
|
491
491
|
$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
|
|
492
|
-
$attrs:
|
|
492
|
+
$attrs: Attrs;
|
|
493
493
|
$refs: Data & TypeRefs;
|
|
494
494
|
$slots: UnwrapSlotsType<S>;
|
|
495
495
|
$root: ComponentPublicInstance | null;
|
|
@@ -985,7 +985,7 @@ export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C
|
|
|
985
985
|
export type DefineSetupFnComponent<P extends Record<string, any>, E extends EmitsOptions = {}, S extends SlotsType = SlotsType, Props = P & EmitsToProps<E>, PP = PublicProps> = new (props: Props & PP) => CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, E, PP, {}, false, {}, S>;
|
|
986
986
|
type ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> & Readonly<EmitsToProps<Emits>>;
|
|
987
987
|
export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
|
|
988
|
-
props?: (keyof Props)[];
|
|
988
|
+
props?: (keyof NoInfer<Props>)[];
|
|
989
989
|
emits?: E | EE[];
|
|
990
990
|
slots?: S;
|
|
991
991
|
}): DefineSetupFnComponent<Props, E, S>;
|
|
@@ -1307,6 +1307,12 @@ export declare function createCommentVNode(text?: string, asBlock?: boolean): VN
|
|
|
1307
1307
|
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
|
|
1308
1308
|
|
|
1309
1309
|
type Data = Record<string, unknown>;
|
|
1310
|
+
/**
|
|
1311
|
+
* For extending allowed non-declared attrs on components in TSX
|
|
1312
|
+
*/
|
|
1313
|
+
export interface AllowedAttrs {
|
|
1314
|
+
}
|
|
1315
|
+
export type Attrs = Data & AllowedAttrs;
|
|
1310
1316
|
/**
|
|
1311
1317
|
* Public utility type for extracting the instance type of a component.
|
|
1312
1318
|
* Works with all valid component definition types. This is intended to replace
|
|
@@ -1415,7 +1421,7 @@ export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends
|
|
|
1415
1421
|
export type Component<PropsOrInstance = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ConcreteComponent<PropsOrInstance, RawBindings, D, C, M, E, S> | ComponentPublicInstanceConstructor<PropsOrInstance>;
|
|
1416
1422
|
|
|
1417
1423
|
export type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
|
|
1418
|
-
attrs:
|
|
1424
|
+
attrs: Attrs;
|
|
1419
1425
|
slots: UnwrapSlotsType<S>;
|
|
1420
1426
|
emit: EmitFn<E>;
|
|
1421
1427
|
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3177,12 +3177,16 @@ function renderList(source, renderItem, cache, index) {
|
|
|
3177
3177
|
);
|
|
3178
3178
|
}
|
|
3179
3179
|
} else if (typeof source === "number") {
|
|
3180
|
-
if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
|
|
3181
|
-
warn$1(
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3180
|
+
if (!!(process.env.NODE_ENV !== "production") && (!Number.isInteger(source) || source < 0)) {
|
|
3181
|
+
warn$1(
|
|
3182
|
+
`The v-for range expects a positive integer value but got ${source}.`
|
|
3183
|
+
);
|
|
3184
|
+
ret = [];
|
|
3185
|
+
} else {
|
|
3186
|
+
ret = new Array(source);
|
|
3187
|
+
for (let i = 0; i < source; i++) {
|
|
3188
|
+
ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
3189
|
+
}
|
|
3186
3190
|
}
|
|
3187
3191
|
} else if (isObject(source)) {
|
|
3188
3192
|
if (source[Symbol.iterator]) {
|
|
@@ -3633,6 +3637,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
3633
3637
|
}
|
|
3634
3638
|
function withAsyncContext(getAwaitable) {
|
|
3635
3639
|
const ctx = getCurrentInstance();
|
|
3640
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
3636
3641
|
if (!!(process.env.NODE_ENV !== "production") && !ctx) {
|
|
3637
3642
|
warn$1(
|
|
3638
3643
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
@@ -3640,13 +3645,25 @@ function withAsyncContext(getAwaitable) {
|
|
|
3640
3645
|
}
|
|
3641
3646
|
let awaitable = getAwaitable();
|
|
3642
3647
|
unsetCurrentInstance();
|
|
3648
|
+
if (inSSRSetup) {
|
|
3649
|
+
setInSSRSetupState(false);
|
|
3650
|
+
}
|
|
3651
|
+
const restore = () => {
|
|
3652
|
+
setCurrentInstance(ctx);
|
|
3653
|
+
if (inSSRSetup) {
|
|
3654
|
+
setInSSRSetupState(true);
|
|
3655
|
+
}
|
|
3656
|
+
};
|
|
3643
3657
|
const cleanup = () => {
|
|
3644
3658
|
if (getCurrentInstance() !== ctx) ctx.scope.off();
|
|
3645
3659
|
unsetCurrentInstance();
|
|
3660
|
+
if (inSSRSetup) {
|
|
3661
|
+
setInSSRSetupState(false);
|
|
3662
|
+
}
|
|
3646
3663
|
};
|
|
3647
3664
|
if (isPromise(awaitable)) {
|
|
3648
3665
|
awaitable = awaitable.catch((e) => {
|
|
3649
|
-
|
|
3666
|
+
restore();
|
|
3650
3667
|
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
3651
3668
|
throw e;
|
|
3652
3669
|
});
|
|
@@ -3654,7 +3671,7 @@ function withAsyncContext(getAwaitable) {
|
|
|
3654
3671
|
return [
|
|
3655
3672
|
awaitable,
|
|
3656
3673
|
() => {
|
|
3657
|
-
|
|
3674
|
+
restore();
|
|
3658
3675
|
Promise.resolve().then(cleanup);
|
|
3659
3676
|
}
|
|
3660
3677
|
];
|
|
@@ -6071,7 +6088,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6071
6088
|
}
|
|
6072
6089
|
} else {
|
|
6073
6090
|
if (root.ce && root.ce._hasShadowRoot()) {
|
|
6074
|
-
root.ce._injectChildStyle(
|
|
6091
|
+
root.ce._injectChildStyle(
|
|
6092
|
+
type,
|
|
6093
|
+
instance.parent ? instance.parent.type : void 0
|
|
6094
|
+
);
|
|
6075
6095
|
}
|
|
6076
6096
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6077
6097
|
startMeasure(instance, `render`);
|
|
@@ -8567,7 +8587,7 @@ function isMemoSame(cached, memo) {
|
|
|
8567
8587
|
return true;
|
|
8568
8588
|
}
|
|
8569
8589
|
|
|
8570
|
-
const version = "3.5.
|
|
8590
|
+
const version = "3.5.30";
|
|
8571
8591
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8572
8592
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8573
8593
|
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": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.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/
|
|
50
|
-
"@vue/
|
|
49
|
+
"@vue/shared": "3.5.30",
|
|
50
|
+
"@vue/reactivity": "3.5.30"
|
|
51
51
|
}
|
|
52
52
|
}
|