@vue/compat 3.4.23 → 3.4.24
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/vue.cjs.js +48 -53
- package/dist/vue.cjs.prod.js +47 -48
- package/dist/vue.esm-browser.js +46 -50
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +46 -50
- package/dist/vue.global.js +44 -47
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +31 -36
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +31 -36
- package/dist/vue.runtime.global.js +29 -33
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
8
8
|
function makeMap(str, expectsLowerCase) {
|
|
9
9
|
const set = new Set(str.split(","));
|
|
10
|
-
return
|
|
10
|
+
return (val) => set.has(val);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
@@ -2477,11 +2477,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2477
2477
|
warnedInvalidKeys[key] = true;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
if (instance && config["OPTIONS_DATA_MERGE"] != null) {
|
|
2481
|
-
warn$1(
|
|
2482
|
-
`Deprecation config "${"OPTIONS_DATA_MERGE"}" can only be configured globally.`
|
|
2483
|
-
);
|
|
2484
|
-
}
|
|
2485
2480
|
}
|
|
2486
2481
|
function getCompatConfigForKey(key, instance) {
|
|
2487
2482
|
const instanceConfig = instance && instance.type.compatConfig;
|
|
@@ -2864,21 +2859,21 @@ function renderComponentRoot(instance) {
|
|
|
2864
2859
|
vnode,
|
|
2865
2860
|
proxy,
|
|
2866
2861
|
withProxy,
|
|
2867
|
-
props,
|
|
2868
2862
|
propsOptions: [propsOptions],
|
|
2869
2863
|
slots,
|
|
2870
2864
|
attrs,
|
|
2871
2865
|
emit,
|
|
2872
2866
|
render,
|
|
2873
2867
|
renderCache,
|
|
2868
|
+
props,
|
|
2874
2869
|
data,
|
|
2875
2870
|
setupState,
|
|
2876
2871
|
ctx,
|
|
2877
2872
|
inheritAttrs
|
|
2878
2873
|
} = instance;
|
|
2874
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
2879
2875
|
let result;
|
|
2880
2876
|
let fallthroughAttrs;
|
|
2881
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
2882
2877
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2883
2878
|
accessedAttrs = false;
|
|
2884
2879
|
}
|
|
@@ -2900,7 +2895,7 @@ function renderComponentRoot(instance) {
|
|
|
2900
2895
|
thisProxy,
|
|
2901
2896
|
proxyToUse,
|
|
2902
2897
|
renderCache,
|
|
2903
|
-
props,
|
|
2898
|
+
!!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
2904
2899
|
setupState,
|
|
2905
2900
|
data,
|
|
2906
2901
|
ctx
|
|
@@ -2914,7 +2909,7 @@ function renderComponentRoot(instance) {
|
|
|
2914
2909
|
}
|
|
2915
2910
|
result = normalizeVNode(
|
|
2916
2911
|
render2.length > 1 ? render2(
|
|
2917
|
-
props,
|
|
2912
|
+
!!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
2918
2913
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
2919
2914
|
get attrs() {
|
|
2920
2915
|
markAttrsAccessed();
|
|
@@ -2924,9 +2919,8 @@ function renderComponentRoot(instance) {
|
|
|
2924
2919
|
emit
|
|
2925
2920
|
} : { attrs, slots, emit }
|
|
2926
2921
|
) : render2(
|
|
2927
|
-
props,
|
|
2922
|
+
!!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
2928
2923
|
null
|
|
2929
|
-
/* we know it doesn't need it */
|
|
2930
2924
|
)
|
|
2931
2925
|
);
|
|
2932
2926
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -4490,11 +4484,19 @@ function emptyPlaceholder(vnode) {
|
|
|
4490
4484
|
}
|
|
4491
4485
|
}
|
|
4492
4486
|
function getKeepAliveChild(vnode) {
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4487
|
+
if (!isKeepAlive(vnode)) {
|
|
4488
|
+
return vnode;
|
|
4489
|
+
}
|
|
4490
|
+
if (!!(process.env.NODE_ENV !== "production") && vnode.component) {
|
|
4491
|
+
return vnode.component.subTree;
|
|
4492
|
+
}
|
|
4493
|
+
const { shapeFlag, children } = vnode;
|
|
4494
|
+
if (shapeFlag & 16) {
|
|
4495
|
+
return children[0];
|
|
4496
|
+
}
|
|
4497
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
4498
|
+
return children.default();
|
|
4499
|
+
}
|
|
4498
4500
|
}
|
|
4499
4501
|
function setTransitionHooks(vnode, hooks) {
|
|
4500
4502
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -6514,7 +6516,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6514
6516
|
return vm;
|
|
6515
6517
|
}
|
|
6516
6518
|
}
|
|
6517
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6519
|
+
Vue.version = `2.6.14-compat:${"3.4.24"}`;
|
|
6518
6520
|
Vue.config = singletonApp.config;
|
|
6519
6521
|
Vue.use = (p, ...options) => {
|
|
6520
6522
|
if (p && isFunction(p.install)) {
|
|
@@ -7636,23 +7638,17 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
7636
7638
|
instance.slots.default = () => normalized;
|
|
7637
7639
|
};
|
|
7638
7640
|
const initSlots = (instance, children) => {
|
|
7641
|
+
const slots = instance.slots = createInternalObject();
|
|
7639
7642
|
if (instance.vnode.shapeFlag & 32) {
|
|
7640
7643
|
const type = children._;
|
|
7641
7644
|
if (type) {
|
|
7642
|
-
|
|
7643
|
-
def(
|
|
7645
|
+
extend(slots, children);
|
|
7646
|
+
def(slots, "_", type);
|
|
7644
7647
|
} else {
|
|
7645
|
-
normalizeObjectSlots(
|
|
7646
|
-
children,
|
|
7647
|
-
instance.slots = createInternalObject(),
|
|
7648
|
-
instance
|
|
7649
|
-
);
|
|
7650
|
-
}
|
|
7651
|
-
} else {
|
|
7652
|
-
instance.slots = createInternalObject();
|
|
7653
|
-
if (children) {
|
|
7654
|
-
normalizeVNodeSlots(instance, children);
|
|
7648
|
+
normalizeObjectSlots(children, slots, instance);
|
|
7655
7649
|
}
|
|
7650
|
+
} else if (children) {
|
|
7651
|
+
normalizeVNodeSlots(instance, children);
|
|
7656
7652
|
}
|
|
7657
7653
|
};
|
|
7658
7654
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -11432,7 +11428,7 @@ function isMemoSame(cached, memo) {
|
|
|
11432
11428
|
return true;
|
|
11433
11429
|
}
|
|
11434
11430
|
|
|
11435
|
-
const version = "3.4.
|
|
11431
|
+
const version = "3.4.24";
|
|
11436
11432
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11437
11433
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11438
11434
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -11677,8 +11673,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
11677
11673
|
if (legacyClassEnabled && legacyLeaveFromClass) {
|
|
11678
11674
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
11679
11675
|
}
|
|
11680
|
-
forceReflow();
|
|
11681
11676
|
addTransitionClass(el, leaveActiveClass);
|
|
11677
|
+
forceReflow();
|
|
11682
11678
|
nextFrame(() => {
|
|
11683
11679
|
if (!el._isLeaving) {
|
|
11684
11680
|
return;
|
|
@@ -13408,8 +13404,7 @@ Vue.compile = () => {
|
|
|
13408
13404
|
);
|
|
13409
13405
|
}
|
|
13410
13406
|
};
|
|
13411
|
-
var Vue$1 = Vue;
|
|
13412
13407
|
|
|
13413
|
-
const { configureCompat } = Vue
|
|
13408
|
+
const { configureCompat } = Vue;
|
|
13414
13409
|
|
|
13415
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue
|
|
13410
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useModel, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -10,7 +10,7 @@ var Vue = (function () {
|
|
|
10
10
|
// @__NO_SIDE_EFFECTS__
|
|
11
11
|
function makeMap(str, expectsLowerCase) {
|
|
12
12
|
const set = new Set(str.split(","));
|
|
13
|
-
return
|
|
13
|
+
return (val) => set.has(val);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const EMPTY_OBJ = Object.freeze({}) ;
|
|
@@ -2473,11 +2473,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2473
2473
|
warnedInvalidKeys[key] = true;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
|
-
if (instance && config["OPTIONS_DATA_MERGE"] != null) {
|
|
2477
|
-
warn$1(
|
|
2478
|
-
`Deprecation config "${"OPTIONS_DATA_MERGE"}" can only be configured globally.`
|
|
2479
|
-
);
|
|
2480
|
-
}
|
|
2481
2476
|
}
|
|
2482
2477
|
function getCompatConfigForKey(key, instance) {
|
|
2483
2478
|
const instanceConfig = instance && instance.type.compatConfig;
|
|
@@ -2860,21 +2855,21 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2860
2855
|
vnode,
|
|
2861
2856
|
proxy,
|
|
2862
2857
|
withProxy,
|
|
2863
|
-
props,
|
|
2864
2858
|
propsOptions: [propsOptions],
|
|
2865
2859
|
slots,
|
|
2866
2860
|
attrs,
|
|
2867
2861
|
emit,
|
|
2868
2862
|
render,
|
|
2869
2863
|
renderCache,
|
|
2864
|
+
props,
|
|
2870
2865
|
data,
|
|
2871
2866
|
setupState,
|
|
2872
2867
|
ctx,
|
|
2873
2868
|
inheritAttrs
|
|
2874
2869
|
} = instance;
|
|
2870
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
2875
2871
|
let result;
|
|
2876
2872
|
let fallthroughAttrs;
|
|
2877
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
2878
2873
|
{
|
|
2879
2874
|
accessedAttrs = false;
|
|
2880
2875
|
}
|
|
@@ -2896,7 +2891,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2896
2891
|
thisProxy,
|
|
2897
2892
|
proxyToUse,
|
|
2898
2893
|
renderCache,
|
|
2899
|
-
props,
|
|
2894
|
+
true ? shallowReadonly(props) : props,
|
|
2900
2895
|
setupState,
|
|
2901
2896
|
data,
|
|
2902
2897
|
ctx
|
|
@@ -2910,7 +2905,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2910
2905
|
}
|
|
2911
2906
|
result = normalizeVNode(
|
|
2912
2907
|
render2.length > 1 ? render2(
|
|
2913
|
-
props,
|
|
2908
|
+
true ? shallowReadonly(props) : props,
|
|
2914
2909
|
true ? {
|
|
2915
2910
|
get attrs() {
|
|
2916
2911
|
markAttrsAccessed();
|
|
@@ -2920,9 +2915,8 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2920
2915
|
emit
|
|
2921
2916
|
} : { attrs, slots, emit }
|
|
2922
2917
|
) : render2(
|
|
2923
|
-
props,
|
|
2918
|
+
true ? shallowReadonly(props) : props,
|
|
2924
2919
|
null
|
|
2925
|
-
/* we know it doesn't need it */
|
|
2926
2920
|
)
|
|
2927
2921
|
);
|
|
2928
2922
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -4457,11 +4451,19 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4457
4451
|
}
|
|
4458
4452
|
}
|
|
4459
4453
|
function getKeepAliveChild(vnode) {
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4454
|
+
if (!isKeepAlive(vnode)) {
|
|
4455
|
+
return vnode;
|
|
4456
|
+
}
|
|
4457
|
+
if (vnode.component) {
|
|
4458
|
+
return vnode.component.subTree;
|
|
4459
|
+
}
|
|
4460
|
+
const { shapeFlag, children } = vnode;
|
|
4461
|
+
if (shapeFlag & 16) {
|
|
4462
|
+
return children[0];
|
|
4463
|
+
}
|
|
4464
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
4465
|
+
return children.default();
|
|
4466
|
+
}
|
|
4465
4467
|
}
|
|
4466
4468
|
function setTransitionHooks(vnode, hooks) {
|
|
4467
4469
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -6473,7 +6475,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6473
6475
|
return vm;
|
|
6474
6476
|
}
|
|
6475
6477
|
}
|
|
6476
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6478
|
+
Vue.version = `2.6.14-compat:${"3.4.24"}`;
|
|
6477
6479
|
Vue.config = singletonApp.config;
|
|
6478
6480
|
Vue.use = (p, ...options) => {
|
|
6479
6481
|
if (p && isFunction(p.install)) {
|
|
@@ -7592,23 +7594,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7592
7594
|
instance.slots.default = () => normalized;
|
|
7593
7595
|
};
|
|
7594
7596
|
const initSlots = (instance, children) => {
|
|
7597
|
+
const slots = instance.slots = createInternalObject();
|
|
7595
7598
|
if (instance.vnode.shapeFlag & 32) {
|
|
7596
7599
|
const type = children._;
|
|
7597
7600
|
if (type) {
|
|
7598
|
-
|
|
7599
|
-
def(
|
|
7601
|
+
extend(slots, children);
|
|
7602
|
+
def(slots, "_", type);
|
|
7600
7603
|
} else {
|
|
7601
|
-
normalizeObjectSlots(
|
|
7602
|
-
children,
|
|
7603
|
-
instance.slots = createInternalObject(),
|
|
7604
|
-
instance
|
|
7605
|
-
);
|
|
7606
|
-
}
|
|
7607
|
-
} else {
|
|
7608
|
-
instance.slots = createInternalObject();
|
|
7609
|
-
if (children) {
|
|
7610
|
-
normalizeVNodeSlots(instance, children);
|
|
7604
|
+
normalizeObjectSlots(children, slots, instance);
|
|
7611
7605
|
}
|
|
7606
|
+
} else if (children) {
|
|
7607
|
+
normalizeVNodeSlots(instance, children);
|
|
7612
7608
|
}
|
|
7613
7609
|
};
|
|
7614
7610
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -11309,7 +11305,7 @@ Component that was made reactive: `,
|
|
|
11309
11305
|
return true;
|
|
11310
11306
|
}
|
|
11311
11307
|
|
|
11312
|
-
const version = "3.4.
|
|
11308
|
+
const version = "3.4.24";
|
|
11313
11309
|
const warn = warn$1 ;
|
|
11314
11310
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11315
11311
|
const devtools = devtools$1 ;
|
|
@@ -11546,8 +11542,8 @@ Component that was made reactive: `,
|
|
|
11546
11542
|
if (legacyClassEnabled && legacyLeaveFromClass) {
|
|
11547
11543
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
11548
11544
|
}
|
|
11549
|
-
forceReflow();
|
|
11550
11545
|
addTransitionClass(el, leaveActiveClass);
|
|
11546
|
+
forceReflow();
|
|
11551
11547
|
nextFrame(() => {
|
|
11552
11548
|
if (!el._isLeaving) {
|
|
11553
11549
|
return;
|