@vue/compat 3.4.23 → 3.4.25
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 +51 -54
- package/dist/vue.cjs.prod.js +50 -49
- package/dist/vue.esm-browser.js +49 -51
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +49 -51
- package/dist/vue.global.js +47 -48
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +34 -37
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +34 -37
- package/dist/vue.runtime.global.js +32 -34
- 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.25
|
|
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,21 @@ 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 (children) {
|
|
4495
|
+
if (shapeFlag & 16) {
|
|
4496
|
+
return children[0];
|
|
4497
|
+
}
|
|
4498
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
4499
|
+
return children.default();
|
|
4500
|
+
}
|
|
4501
|
+
}
|
|
4498
4502
|
}
|
|
4499
4503
|
function setTransitionHooks(vnode, hooks) {
|
|
4500
4504
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -6514,7 +6518,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6514
6518
|
return vm;
|
|
6515
6519
|
}
|
|
6516
6520
|
}
|
|
6517
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6521
|
+
Vue.version = `2.6.14-compat:${"3.4.25"}`;
|
|
6518
6522
|
Vue.config = singletonApp.config;
|
|
6519
6523
|
Vue.use = (p, ...options) => {
|
|
6520
6524
|
if (p && isFunction(p.install)) {
|
|
@@ -7154,7 +7158,7 @@ function shouldSkipAttr(key, instance) {
|
|
|
7154
7158
|
return false;
|
|
7155
7159
|
}
|
|
7156
7160
|
|
|
7157
|
-
const internalObjectProto =
|
|
7161
|
+
const internalObjectProto = {};
|
|
7158
7162
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7159
7163
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7160
7164
|
|
|
@@ -7636,23 +7640,17 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
7636
7640
|
instance.slots.default = () => normalized;
|
|
7637
7641
|
};
|
|
7638
7642
|
const initSlots = (instance, children) => {
|
|
7643
|
+
const slots = instance.slots = createInternalObject();
|
|
7639
7644
|
if (instance.vnode.shapeFlag & 32) {
|
|
7640
7645
|
const type = children._;
|
|
7641
7646
|
if (type) {
|
|
7642
|
-
|
|
7643
|
-
def(
|
|
7647
|
+
extend(slots, children);
|
|
7648
|
+
def(slots, "_", type);
|
|
7644
7649
|
} 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);
|
|
7650
|
+
normalizeObjectSlots(children, slots, instance);
|
|
7655
7651
|
}
|
|
7652
|
+
} else if (children) {
|
|
7653
|
+
normalizeVNodeSlots(instance, children);
|
|
7656
7654
|
}
|
|
7657
7655
|
};
|
|
7658
7656
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -11432,7 +11430,7 @@ function isMemoSame(cached, memo) {
|
|
|
11432
11430
|
return true;
|
|
11433
11431
|
}
|
|
11434
11432
|
|
|
11435
|
-
const version = "3.4.
|
|
11433
|
+
const version = "3.4.25";
|
|
11436
11434
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11437
11435
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11438
11436
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -11677,8 +11675,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
11677
11675
|
if (legacyClassEnabled && legacyLeaveFromClass) {
|
|
11678
11676
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
11679
11677
|
}
|
|
11680
|
-
forceReflow();
|
|
11681
11678
|
addTransitionClass(el, leaveActiveClass);
|
|
11679
|
+
forceReflow();
|
|
11682
11680
|
nextFrame(() => {
|
|
11683
11681
|
if (!el._isLeaving) {
|
|
11684
11682
|
return;
|
|
@@ -13408,8 +13406,7 @@ Vue.compile = () => {
|
|
|
13408
13406
|
);
|
|
13409
13407
|
}
|
|
13410
13408
|
};
|
|
13411
|
-
var Vue$1 = Vue;
|
|
13412
13409
|
|
|
13413
|
-
const { configureCompat } = Vue
|
|
13410
|
+
const { configureCompat } = Vue;
|
|
13414
13411
|
|
|
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
|
|
13412
|
+
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.25
|
|
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,21 @@ 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 (children) {
|
|
4462
|
+
if (shapeFlag & 16) {
|
|
4463
|
+
return children[0];
|
|
4464
|
+
}
|
|
4465
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
4466
|
+
return children.default();
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4465
4469
|
}
|
|
4466
4470
|
function setTransitionHooks(vnode, hooks) {
|
|
4467
4471
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -6473,7 +6477,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6473
6477
|
return vm;
|
|
6474
6478
|
}
|
|
6475
6479
|
}
|
|
6476
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6480
|
+
Vue.version = `2.6.14-compat:${"3.4.25"}`;
|
|
6477
6481
|
Vue.config = singletonApp.config;
|
|
6478
6482
|
Vue.use = (p, ...options) => {
|
|
6479
6483
|
if (p && isFunction(p.install)) {
|
|
@@ -7110,7 +7114,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7110
7114
|
return false;
|
|
7111
7115
|
}
|
|
7112
7116
|
|
|
7113
|
-
const internalObjectProto =
|
|
7117
|
+
const internalObjectProto = {};
|
|
7114
7118
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7115
7119
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7116
7120
|
|
|
@@ -7592,23 +7596,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7592
7596
|
instance.slots.default = () => normalized;
|
|
7593
7597
|
};
|
|
7594
7598
|
const initSlots = (instance, children) => {
|
|
7599
|
+
const slots = instance.slots = createInternalObject();
|
|
7595
7600
|
if (instance.vnode.shapeFlag & 32) {
|
|
7596
7601
|
const type = children._;
|
|
7597
7602
|
if (type) {
|
|
7598
|
-
|
|
7599
|
-
def(
|
|
7603
|
+
extend(slots, children);
|
|
7604
|
+
def(slots, "_", type);
|
|
7600
7605
|
} 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);
|
|
7606
|
+
normalizeObjectSlots(children, slots, instance);
|
|
7611
7607
|
}
|
|
7608
|
+
} else if (children) {
|
|
7609
|
+
normalizeVNodeSlots(instance, children);
|
|
7612
7610
|
}
|
|
7613
7611
|
};
|
|
7614
7612
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -11309,7 +11307,7 @@ Component that was made reactive: `,
|
|
|
11309
11307
|
return true;
|
|
11310
11308
|
}
|
|
11311
11309
|
|
|
11312
|
-
const version = "3.4.
|
|
11310
|
+
const version = "3.4.25";
|
|
11313
11311
|
const warn = warn$1 ;
|
|
11314
11312
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11315
11313
|
const devtools = devtools$1 ;
|
|
@@ -11546,8 +11544,8 @@ Component that was made reactive: `,
|
|
|
11546
11544
|
if (legacyClassEnabled && legacyLeaveFromClass) {
|
|
11547
11545
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
11548
11546
|
}
|
|
11549
|
-
forceReflow();
|
|
11550
11547
|
addTransitionClass(el, leaveActiveClass);
|
|
11548
|
+
forceReflow();
|
|
11551
11549
|
nextFrame(() => {
|
|
11552
11550
|
if (!el._isLeaving) {
|
|
11553
11551
|
return;
|