@vue/runtime-core 3.3.0-alpha.4 → 3.3.0-alpha.5
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
|
@@ -2694,7 +2694,7 @@ const DIRECTIVES = "directives";
|
|
|
2694
2694
|
function resolveComponent(name, maybeSelfReference) {
|
|
2695
2695
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2696
2696
|
}
|
|
2697
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
2697
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2698
2698
|
function resolveDynamicComponent(component) {
|
|
2699
2699
|
if (shared.isString(component)) {
|
|
2700
2700
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6452,10 +6452,10 @@ function updateCssVars(vnode) {
|
|
|
6452
6452
|
}
|
|
6453
6453
|
}
|
|
6454
6454
|
|
|
6455
|
-
const Fragment = Symbol("
|
|
6456
|
-
const Text = Symbol("
|
|
6457
|
-
const Comment = Symbol("
|
|
6458
|
-
const Static = Symbol("
|
|
6455
|
+
const Fragment = Symbol.for("v-fgt");
|
|
6456
|
+
const Text = Symbol.for("v-txt");
|
|
6457
|
+
const Comment = Symbol.for("v-cmt");
|
|
6458
|
+
const Static = Symbol.for("v-stc");
|
|
6459
6459
|
const blockStack = [];
|
|
6460
6460
|
let currentBlock = null;
|
|
6461
6461
|
function openBlock(disableTracking = false) {
|
|
@@ -6907,13 +6907,29 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
6907
6907
|
}
|
|
6908
6908
|
let currentInstance = null;
|
|
6909
6909
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
6910
|
+
let internalSetCurrentInstance;
|
|
6911
|
+
let globalCurrentInstanceSetters;
|
|
6912
|
+
let settersKey = "__VUE_INSTANCE_SETTERS__";
|
|
6913
|
+
{
|
|
6914
|
+
if (!(globalCurrentInstanceSetters = shared.getGlobalThis()[settersKey])) {
|
|
6915
|
+
globalCurrentInstanceSetters = shared.getGlobalThis()[settersKey] = [];
|
|
6916
|
+
}
|
|
6917
|
+
globalCurrentInstanceSetters.push((i) => currentInstance = i);
|
|
6918
|
+
internalSetCurrentInstance = (instance) => {
|
|
6919
|
+
if (globalCurrentInstanceSetters.length > 1) {
|
|
6920
|
+
globalCurrentInstanceSetters.forEach((s) => s(instance));
|
|
6921
|
+
} else {
|
|
6922
|
+
globalCurrentInstanceSetters[0](instance);
|
|
6923
|
+
}
|
|
6924
|
+
};
|
|
6925
|
+
}
|
|
6910
6926
|
const setCurrentInstance = (instance) => {
|
|
6911
|
-
|
|
6927
|
+
internalSetCurrentInstance(instance);
|
|
6912
6928
|
instance.scope.on();
|
|
6913
6929
|
};
|
|
6914
6930
|
const unsetCurrentInstance = () => {
|
|
6915
6931
|
currentInstance && currentInstance.scope.off();
|
|
6916
|
-
|
|
6932
|
+
internalSetCurrentInstance(null);
|
|
6917
6933
|
};
|
|
6918
6934
|
const isBuiltInTag = /* @__PURE__ */ shared.makeMap("slot,component");
|
|
6919
6935
|
function validateComponentName(name, config) {
|
|
@@ -7315,7 +7331,7 @@ function h(type, propsOrChildren, children) {
|
|
|
7315
7331
|
}
|
|
7316
7332
|
}
|
|
7317
7333
|
|
|
7318
|
-
const ssrContextKey = Symbol(
|
|
7334
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
7319
7335
|
const useSSRContext = () => {
|
|
7320
7336
|
{
|
|
7321
7337
|
const ctx = inject(ssrContextKey);
|
|
@@ -7533,7 +7549,7 @@ function isMemoSame(cached, memo) {
|
|
|
7533
7549
|
return true;
|
|
7534
7550
|
}
|
|
7535
7551
|
|
|
7536
|
-
const version = "3.3.0-alpha.
|
|
7552
|
+
const version = "3.3.0-alpha.5";
|
|
7537
7553
|
const _ssrUtils = {
|
|
7538
7554
|
createComponentInstance,
|
|
7539
7555
|
setupComponent,
|
|
@@ -2103,7 +2103,7 @@ const DIRECTIVES = "directives";
|
|
|
2103
2103
|
function resolveComponent(name, maybeSelfReference) {
|
|
2104
2104
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2105
2105
|
}
|
|
2106
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
2106
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2107
2107
|
function resolveDynamicComponent(component) {
|
|
2108
2108
|
if (shared.isString(component)) {
|
|
2109
2109
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -5194,10 +5194,10 @@ function updateCssVars(vnode) {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
}
|
|
5196
5196
|
|
|
5197
|
-
const Fragment = Symbol(
|
|
5198
|
-
const Text = Symbol(
|
|
5199
|
-
const Comment = Symbol(
|
|
5200
|
-
const Static = Symbol(
|
|
5197
|
+
const Fragment = Symbol.for("v-fgt");
|
|
5198
|
+
const Text = Symbol.for("v-txt");
|
|
5199
|
+
const Comment = Symbol.for("v-cmt");
|
|
5200
|
+
const Static = Symbol.for("v-stc");
|
|
5201
5201
|
const blockStack = [];
|
|
5202
5202
|
let currentBlock = null;
|
|
5203
5203
|
function openBlock(disableTracking = false) {
|
|
@@ -5615,13 +5615,29 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
5615
5615
|
}
|
|
5616
5616
|
let currentInstance = null;
|
|
5617
5617
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
5618
|
+
let internalSetCurrentInstance;
|
|
5619
|
+
let globalCurrentInstanceSetters;
|
|
5620
|
+
let settersKey = "__VUE_INSTANCE_SETTERS__";
|
|
5621
|
+
{
|
|
5622
|
+
if (!(globalCurrentInstanceSetters = shared.getGlobalThis()[settersKey])) {
|
|
5623
|
+
globalCurrentInstanceSetters = shared.getGlobalThis()[settersKey] = [];
|
|
5624
|
+
}
|
|
5625
|
+
globalCurrentInstanceSetters.push((i) => currentInstance = i);
|
|
5626
|
+
internalSetCurrentInstance = (instance) => {
|
|
5627
|
+
if (globalCurrentInstanceSetters.length > 1) {
|
|
5628
|
+
globalCurrentInstanceSetters.forEach((s) => s(instance));
|
|
5629
|
+
} else {
|
|
5630
|
+
globalCurrentInstanceSetters[0](instance);
|
|
5631
|
+
}
|
|
5632
|
+
};
|
|
5633
|
+
}
|
|
5618
5634
|
const setCurrentInstance = (instance) => {
|
|
5619
|
-
|
|
5635
|
+
internalSetCurrentInstance(instance);
|
|
5620
5636
|
instance.scope.on();
|
|
5621
5637
|
};
|
|
5622
5638
|
const unsetCurrentInstance = () => {
|
|
5623
5639
|
currentInstance && currentInstance.scope.off();
|
|
5624
|
-
|
|
5640
|
+
internalSetCurrentInstance(null);
|
|
5625
5641
|
};
|
|
5626
5642
|
function isStatefulComponent(instance) {
|
|
5627
5643
|
return instance.vnode.shapeFlag & 4;
|
|
@@ -5869,7 +5885,7 @@ function h(type, propsOrChildren, children) {
|
|
|
5869
5885
|
}
|
|
5870
5886
|
}
|
|
5871
5887
|
|
|
5872
|
-
const ssrContextKey = Symbol(
|
|
5888
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
5873
5889
|
const useSSRContext = () => {
|
|
5874
5890
|
{
|
|
5875
5891
|
const ctx = inject(ssrContextKey);
|
|
@@ -5908,7 +5924,7 @@ function isMemoSame(cached, memo) {
|
|
|
5908
5924
|
return true;
|
|
5909
5925
|
}
|
|
5910
5926
|
|
|
5911
|
-
const version = "3.3.0-alpha.
|
|
5927
|
+
const version = "3.3.0-alpha.5";
|
|
5912
5928
|
const _ssrUtils = {
|
|
5913
5929
|
createComponentInstance,
|
|
5914
5930
|
setupComponent,
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as computed$1, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, Ref, ReactiveFlags, ReactiveEffect, EffectScope, ComputedRef, DebuggerOptions, reactive } from '@vue/reactivity';
|
|
2
2
|
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, Raw, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';
|
|
3
|
-
import { SlotFlags, UnionToIntersection, IfAny, LooseRequired
|
|
3
|
+
import { SlotFlags, UnionToIntersection, Prettify, IfAny, LooseRequired } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
declare const computed: typeof computed$1;
|
|
@@ -108,7 +108,7 @@ D = {}, // return from data()
|
|
|
108
108
|
C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}> = {
|
|
109
109
|
$: ComponentInternalInstance;
|
|
110
110
|
$data: D;
|
|
111
|
-
$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps
|
|
111
|
+
$props: Prettify<MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps>;
|
|
112
112
|
$attrs: Data;
|
|
113
113
|
$refs: Data;
|
|
114
114
|
$slots: Slots;
|
|
@@ -498,16 +498,8 @@ declare function checkCompatEnabled(key: DeprecationTypes, instance: ComponentIn
|
|
|
498
498
|
export interface ComponentCustomOptions {
|
|
499
499
|
}
|
|
500
500
|
export type RenderFunction = () => VNodeChild;
|
|
501
|
-
export type ExtractOptionProp<T> = T extends ComponentOptionsBase<infer P, // Props
|
|
502
|
-
any, // RawBindings
|
|
503
|
-
any, // D
|
|
504
|
-
any, // C
|
|
505
|
-
any, // M
|
|
506
|
-
any, // Mixin
|
|
507
|
-
any, // Extends
|
|
508
|
-
any> ? unknown extends P ? {} : P : {};
|
|
509
501
|
export 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 = {}, I extends ComponentInjectOptions = {}, II extends string = string> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II>, ComponentInternalOptions, ComponentCustomOptions {
|
|
510
|
-
setup?: (this: void, props:
|
|
502
|
+
setup?: (this: void, props: LooseRequired<Props & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, 'P'>>>, ctx: SetupContext<E>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
|
|
511
503
|
name?: string;
|
|
512
504
|
template?: string | object;
|
|
513
505
|
render?: Function;
|
|
@@ -540,12 +532,12 @@ export interface RuntimeCompilerOptions {
|
|
|
540
532
|
export 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, I extends ComponentInjectOptions = {}, II extends string = string, PE = Props & EmitsToProps<E>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II> & {
|
|
541
533
|
props?: undefined;
|
|
542
534
|
} & ThisType<CreateComponentPublicInstance<PE, RawBindings, D, C, M, Mixin, Extends, E, PE, {}, false, I>>;
|
|
543
|
-
export 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, I extends ComponentInjectOptions = {}, II extends string = string, Props = Readonly<{
|
|
535
|
+
export 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, I extends ComponentInjectOptions = {}, II extends string = string, Props = Prettify<Readonly<{
|
|
544
536
|
[key in PropNames]?: any;
|
|
545
|
-
}
|
|
537
|
+
} & EmitsToProps<E>>>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II> & {
|
|
546
538
|
props: PropNames[];
|
|
547
539
|
} & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, {}, false, I>>;
|
|
548
|
-
export 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, I extends ComponentInjectOptions = {}, II extends string = string, Props = Readonly<ExtractPropTypes<PropsOptions
|
|
540
|
+
export 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, I extends ComponentInjectOptions = {}, II extends string = string, Props = Prettify<Readonly<ExtractPropTypes<PropsOptions> & EmitsToProps<E>>>, Defaults = ExtractDefaultPropTypes<PropsOptions>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II> & {
|
|
549
541
|
props: PropsOptions & ThisType<void>;
|
|
550
542
|
} & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false, I>>;
|
|
551
543
|
export 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>>>;
|
|
@@ -960,7 +952,7 @@ declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, insta
|
|
|
960
952
|
* typings
|
|
961
953
|
*/
|
|
962
954
|
declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
|
|
963
|
-
declare function createBaseVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number
|
|
955
|
+
declare function createBaseVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode<RendererNode, RendererElement, {
|
|
964
956
|
[key: string]: any;
|
|
965
957
|
}>;
|
|
966
958
|
|
|
@@ -1218,13 +1210,15 @@ declare function defineAsyncComponent<T extends Component = {
|
|
|
1218
1210
|
* This is only usable inside `<script setup>`, is compiled away in the
|
|
1219
1211
|
* output and should **not** be actually called at runtime.
|
|
1220
1212
|
*/
|
|
1221
|
-
declare function defineProps<PropNames extends string = string>(props: PropNames[]): Readonly<{
|
|
1213
|
+
declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{
|
|
1222
1214
|
[key in PropNames]?: any;
|
|
1223
|
-
}
|
|
1224
|
-
declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Readonly<ExtractPropTypes<PP
|
|
1225
|
-
declare function defineProps<TypeProps>():
|
|
1226
|
-
|
|
1227
|
-
|
|
1215
|
+
}>>;
|
|
1216
|
+
declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
|
|
1217
|
+
declare function defineProps<TypeProps>(): ResolveProps<TypeProps>;
|
|
1218
|
+
export type ResolveProps<T, BooleanKeys extends keyof T = BooleanKey<T>> = Prettify<Readonly<T & {
|
|
1219
|
+
[K in BooleanKeys]-?: boolean;
|
|
1220
|
+
}>>;
|
|
1221
|
+
export type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]] extends [boolean | undefined] ? K : never : never;
|
|
1228
1222
|
/**
|
|
1229
1223
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
1230
1224
|
* events. The expected argument is the same as the component `emits` option.
|
|
@@ -1265,7 +1259,6 @@ declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
|
1265
1259
|
*/
|
|
1266
1260
|
declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
|
|
1267
1261
|
export type NotUndefined<T> = T extends undefined ? never : T;
|
|
1268
|
-
export type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]] extends [boolean | undefined] ? K : never : never;
|
|
1269
1262
|
export type InferDefaults<T> = {
|
|
1270
1263
|
[K in keyof T]?: InferDefault<T, NotUndefined<T[K]>>;
|
|
1271
1264
|
};
|
|
@@ -2700,7 +2700,7 @@ const DIRECTIVES = "directives";
|
|
|
2700
2700
|
function resolveComponent(name, maybeSelfReference) {
|
|
2701
2701
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2702
2702
|
}
|
|
2703
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
2703
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2704
2704
|
function resolveDynamicComponent(component) {
|
|
2705
2705
|
if (isString(component)) {
|
|
2706
2706
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6483,10 +6483,10 @@ function updateCssVars(vnode) {
|
|
|
6483
6483
|
}
|
|
6484
6484
|
}
|
|
6485
6485
|
|
|
6486
|
-
const Fragment = Symbol(
|
|
6487
|
-
const Text = Symbol(
|
|
6488
|
-
const Comment = Symbol(
|
|
6489
|
-
const Static = Symbol(
|
|
6486
|
+
const Fragment = Symbol.for("v-fgt");
|
|
6487
|
+
const Text = Symbol.for("v-txt");
|
|
6488
|
+
const Comment = Symbol.for("v-cmt");
|
|
6489
|
+
const Static = Symbol.for("v-stc");
|
|
6490
6490
|
const blockStack = [];
|
|
6491
6491
|
let currentBlock = null;
|
|
6492
6492
|
function openBlock(disableTracking = false) {
|
|
@@ -6940,13 +6940,29 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
6940
6940
|
}
|
|
6941
6941
|
let currentInstance = null;
|
|
6942
6942
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
6943
|
+
let internalSetCurrentInstance;
|
|
6944
|
+
let globalCurrentInstanceSetters;
|
|
6945
|
+
let settersKey = "__VUE_INSTANCE_SETTERS__";
|
|
6946
|
+
{
|
|
6947
|
+
if (!(globalCurrentInstanceSetters = getGlobalThis()[settersKey])) {
|
|
6948
|
+
globalCurrentInstanceSetters = getGlobalThis()[settersKey] = [];
|
|
6949
|
+
}
|
|
6950
|
+
globalCurrentInstanceSetters.push((i) => currentInstance = i);
|
|
6951
|
+
internalSetCurrentInstance = (instance) => {
|
|
6952
|
+
if (globalCurrentInstanceSetters.length > 1) {
|
|
6953
|
+
globalCurrentInstanceSetters.forEach((s) => s(instance));
|
|
6954
|
+
} else {
|
|
6955
|
+
globalCurrentInstanceSetters[0](instance);
|
|
6956
|
+
}
|
|
6957
|
+
};
|
|
6958
|
+
}
|
|
6943
6959
|
const setCurrentInstance = (instance) => {
|
|
6944
|
-
|
|
6960
|
+
internalSetCurrentInstance(instance);
|
|
6945
6961
|
instance.scope.on();
|
|
6946
6962
|
};
|
|
6947
6963
|
const unsetCurrentInstance = () => {
|
|
6948
6964
|
currentInstance && currentInstance.scope.off();
|
|
6949
|
-
|
|
6965
|
+
internalSetCurrentInstance(null);
|
|
6950
6966
|
};
|
|
6951
6967
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
6952
6968
|
function validateComponentName(name, config) {
|
|
@@ -7362,7 +7378,7 @@ function h(type, propsOrChildren, children) {
|
|
|
7362
7378
|
}
|
|
7363
7379
|
}
|
|
7364
7380
|
|
|
7365
|
-
const ssrContextKey = Symbol(
|
|
7381
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
7366
7382
|
const useSSRContext = () => {
|
|
7367
7383
|
{
|
|
7368
7384
|
const ctx = inject(ssrContextKey);
|
|
@@ -7580,7 +7596,7 @@ function isMemoSame(cached, memo) {
|
|
|
7580
7596
|
return true;
|
|
7581
7597
|
}
|
|
7582
7598
|
|
|
7583
|
-
const version = "3.3.0-alpha.
|
|
7599
|
+
const version = "3.3.0-alpha.5";
|
|
7584
7600
|
const _ssrUtils = {
|
|
7585
7601
|
createComponentInstance,
|
|
7586
7602
|
setupComponent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
3
|
+
"version": "3.3.0-alpha.5",
|
|
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.3.0-alpha.
|
|
36
|
-
"@vue/reactivity": "3.3.0-alpha.
|
|
35
|
+
"@vue/shared": "3.3.0-alpha.5",
|
|
36
|
+
"@vue/reactivity": "3.3.0-alpha.5"
|
|
37
37
|
}
|
|
38
38
|
}
|