@vue/runtime-core 3.2.34 → 3.2.35
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
|
@@ -581,6 +581,7 @@ function emit(event, ...args) {
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
function setDevtoolsHook(hook, target) {
|
|
584
|
+
var _a, _b;
|
|
584
585
|
exports.devtools = hook;
|
|
585
586
|
if (exports.devtools) {
|
|
586
587
|
exports.devtools.enabled = true;
|
|
@@ -595,7 +596,7 @@ function setDevtoolsHook(hook, target) {
|
|
|
595
596
|
// some envs mock window but not fully
|
|
596
597
|
window.HTMLElement &&
|
|
597
598
|
// also exclude jsdom
|
|
598
|
-
!window.navigator
|
|
599
|
+
!((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
|
|
599
600
|
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
|
|
600
601
|
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
|
|
601
602
|
replay.push((newHook) => {
|
|
@@ -4559,7 +4560,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4559
4560
|
// #5728 empty text node inside a slot can cause hydration failure
|
|
4560
4561
|
// because the server rendered HTML won't contain a text node
|
|
4561
4562
|
if (vnode.children === '') {
|
|
4562
|
-
insert((vnode.el = createText('')), node
|
|
4563
|
+
insert((vnode.el = createText('')), parentNode(node), node);
|
|
4563
4564
|
nextNode = node;
|
|
4564
4565
|
}
|
|
4565
4566
|
else {
|
|
@@ -7036,6 +7037,7 @@ function setupComponent(instance, isSSR = false) {
|
|
|
7036
7037
|
return setupResult;
|
|
7037
7038
|
}
|
|
7038
7039
|
function setupStatefulComponent(instance, isSSR) {
|
|
7040
|
+
var _a;
|
|
7039
7041
|
const Component = instance.type;
|
|
7040
7042
|
{
|
|
7041
7043
|
if (Component.name) {
|
|
@@ -7094,7 +7096,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
7094
7096
|
// bail here and wait for re-entry.
|
|
7095
7097
|
instance.asyncDep = setupResult;
|
|
7096
7098
|
if (!instance.suspense) {
|
|
7097
|
-
const name = Component.name
|
|
7099
|
+
const name = (_a = Component.name) !== null && _a !== void 0 ? _a : 'Anonymous';
|
|
7098
7100
|
warn(`Component <${name}>: setup function returned a promise, but no ` +
|
|
7099
7101
|
`<Suspense> boundary was found in the parent component tree. ` +
|
|
7100
7102
|
`A component with async setup() must be nested in a <Suspense> ` +
|
|
@@ -7724,7 +7726,7 @@ function isMemoSame(cached, memo) {
|
|
|
7724
7726
|
}
|
|
7725
7727
|
|
|
7726
7728
|
// Core API ------------------------------------------------------------------
|
|
7727
|
-
const version = "3.2.
|
|
7729
|
+
const version = "3.2.35";
|
|
7728
7730
|
const _ssrUtils = {
|
|
7729
7731
|
createComponentInstance,
|
|
7730
7732
|
setupComponent,
|
|
@@ -340,6 +340,7 @@ function flushJobs(seen) {
|
|
|
340
340
|
|
|
341
341
|
let buffer = [];
|
|
342
342
|
function setDevtoolsHook(hook, target) {
|
|
343
|
+
var _a, _b;
|
|
343
344
|
exports.devtools = hook;
|
|
344
345
|
if (exports.devtools) {
|
|
345
346
|
exports.devtools.enabled = true;
|
|
@@ -354,7 +355,7 @@ function setDevtoolsHook(hook, target) {
|
|
|
354
355
|
// some envs mock window but not fully
|
|
355
356
|
window.HTMLElement &&
|
|
356
357
|
// also exclude jsdom
|
|
357
|
-
!window.navigator
|
|
358
|
+
!((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
|
|
358
359
|
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
|
|
359
360
|
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
|
|
360
361
|
replay.push((newHook) => {
|
|
@@ -3583,7 +3584,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3583
3584
|
// #5728 empty text node inside a slot can cause hydration failure
|
|
3584
3585
|
// because the server rendered HTML won't contain a text node
|
|
3585
3586
|
if (vnode.children === '') {
|
|
3586
|
-
insert((vnode.el = createText('')), node
|
|
3587
|
+
insert((vnode.el = createText('')), parentNode(node), node);
|
|
3587
3588
|
nextNode = node;
|
|
3588
3589
|
}
|
|
3589
3590
|
else {
|
|
@@ -6160,7 +6161,7 @@ function isMemoSame(cached, memo) {
|
|
|
6160
6161
|
}
|
|
6161
6162
|
|
|
6162
6163
|
// Core API ------------------------------------------------------------------
|
|
6163
|
-
const version = "3.2.
|
|
6164
|
+
const version = "3.2.35";
|
|
6164
6165
|
const _ssrUtils = {
|
|
6165
6166
|
createComponentInstance,
|
|
6166
6167
|
setupComponent,
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ export declare type ComponentObjectPropsOptions<P = Data> = {
|
|
|
439
439
|
|
|
440
440
|
export declare type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E> & ThisType<CreateComponentPublicInstance<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>>>;
|
|
441
441
|
|
|
442
|
-
export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}
|
|
442
|
+
export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}> extends LegacyOptions<Props, D, C, M, Mixin, Extends>, ComponentInternalOptions, ComponentCustomOptions {
|
|
443
443
|
setup?: (this: void, props: Readonly<LooseRequired<Props & UnionToIntersection<ExtractOptionProp<Mixin>> & UnionToIntersection<ExtractOptionProp<Extends>>>>, ctx: SetupContext<E>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
|
|
444
444
|
name?: string;
|
|
445
445
|
template?: string | object;
|
|
@@ -464,17 +464,17 @@ export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends C
|
|
|
464
464
|
|
|
465
465
|
export declare type ComponentOptionsMixin = ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>;
|
|
466
466
|
|
|
467
|
-
export declare type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string,
|
|
467
|
+
export declare type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, Props = Readonly<{
|
|
468
468
|
[key in PropNames]?: any;
|
|
469
|
-
}> & EmitsToProps<E>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}
|
|
469
|
+
}> & EmitsToProps<E>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & {
|
|
470
470
|
props: PropNames[];
|
|
471
471
|
} & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E>>;
|
|
472
472
|
|
|
473
|
-
export declare type ComponentOptionsWithObjectProps<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string,
|
|
473
|
+
export declare type ComponentOptionsWithObjectProps<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, Props = Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, Defaults = ExtractDefaultPropTypes<PropsOptions>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & {
|
|
474
474
|
props: PropsOptions & ThisType<void>;
|
|
475
475
|
} & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false>>;
|
|
476
476
|
|
|
477
|
-
export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string,
|
|
477
|
+
export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, PE = Props & EmitsToProps<E>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & {
|
|
478
478
|
props?: undefined;
|
|
479
479
|
} & ThisType<CreateComponentPublicInstance<PE, RawBindings, D, C, M, Mixin, Extends, E>>;
|
|
480
480
|
|
|
@@ -562,7 +562,7 @@ declare function createCompatVue(createApp: CreateAppFunction<Element>, createSi
|
|
|
562
562
|
|
|
563
563
|
declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;
|
|
564
564
|
|
|
565
|
-
export declare type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults
|
|
565
|
+
export declare type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults>>;
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
568
|
* @private
|
|
@@ -653,17 +653,17 @@ export declare function defineAsyncComponent<T extends Component = {
|
|
|
653
653
|
new (): ComponentPublicInstance;
|
|
654
654
|
}>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
655
655
|
|
|
656
|
-
export declare type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string,
|
|
656
|
+
export declare type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>), Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>> = ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, true> & Props> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & PP;
|
|
657
657
|
|
|
658
658
|
export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent<Props, RawBindings>;
|
|
659
659
|
|
|
660
|
-
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string
|
|
660
|
+
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
661
661
|
|
|
662
|
-
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string
|
|
662
|
+
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Readonly<{
|
|
663
663
|
[key in PropNames]?: any;
|
|
664
|
-
}>, RawBindings, D, C, M, Mixin, Extends, E, EE
|
|
664
|
+
}>, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
665
665
|
|
|
666
|
-
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string
|
|
666
|
+
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
667
667
|
|
|
668
668
|
/**
|
|
669
669
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
@@ -1073,14 +1073,14 @@ export declare type LegacyConfig = {
|
|
|
1073
1073
|
productionTip?: boolean;
|
|
1074
1074
|
};
|
|
1075
1075
|
|
|
1076
|
-
declare interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin
|
|
1076
|
+
declare interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin> {
|
|
1077
1077
|
compatConfig?: CompatConfig;
|
|
1078
1078
|
[key: string]: any;
|
|
1079
1079
|
data?: (this: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
|
|
1080
1080
|
computed?: C;
|
|
1081
1081
|
methods?: M;
|
|
1082
1082
|
watch?: ComponentWatchOptions;
|
|
1083
|
-
provide?:
|
|
1083
|
+
provide?: ComponentProvideOptions;
|
|
1084
1084
|
inject?: ComponentInjectOptions;
|
|
1085
1085
|
filters?: Record<string, Function>;
|
|
1086
1086
|
mixins?: Mixin[];
|
|
@@ -1890,7 +1890,7 @@ export declare type VNodeProps = {
|
|
|
1890
1890
|
onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
|
|
1891
1891
|
};
|
|
1892
1892
|
|
|
1893
|
-
declare type VNodeRef = string | Ref | ((ref:
|
|
1893
|
+
export declare type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
|
|
1894
1894
|
|
|
1895
1895
|
export declare type VNodeTypes = string | VNode | Component | typeof Text_2 | typeof Static | typeof Comment_2 | typeof Fragment | typeof TeleportImpl | typeof SuspenseImpl;
|
|
1896
1896
|
|
|
@@ -4586,7 +4586,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4586
4586
|
// #5728 empty text node inside a slot can cause hydration failure
|
|
4587
4587
|
// because the server rendered HTML won't contain a text node
|
|
4588
4588
|
if (vnode.children === '') {
|
|
4589
|
-
insert((vnode.el = createText('')), node
|
|
4589
|
+
insert((vnode.el = createText('')), parentNode(node), node);
|
|
4590
4590
|
nextNode = node;
|
|
4591
4591
|
}
|
|
4592
4592
|
else {
|
|
@@ -7824,7 +7824,7 @@ function isMemoSame(cached, memo) {
|
|
|
7824
7824
|
}
|
|
7825
7825
|
|
|
7826
7826
|
// Core API ------------------------------------------------------------------
|
|
7827
|
-
const version = "3.2.
|
|
7827
|
+
const version = "3.2.35";
|
|
7828
7828
|
const _ssrUtils = {
|
|
7829
7829
|
createComponentInstance,
|
|
7830
7830
|
setupComponent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.35",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.2.
|
|
36
|
-
"@vue/reactivity": "3.2.
|
|
35
|
+
"@vue/shared": "3.2.35",
|
|
36
|
+
"@vue/reactivity": "3.2.35"
|
|
37
37
|
}
|
|
38
38
|
}
|