@vue/compat 3.4.3 → 3.4.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/vue.cjs.js +39 -15
- package/dist/vue.cjs.prod.js +34 -15
- package/dist/vue.esm-browser.js +20 -13
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +20 -13
- package/dist/vue.global.js +20 -13
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +20 -13
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +20 -13
- package/dist/vue.runtime.global.js +20 -13
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +15 -2
|
@@ -3464,7 +3464,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3464
3464
|
hiddenContainer,
|
|
3465
3465
|
anchor,
|
|
3466
3466
|
deps: 0,
|
|
3467
|
-
pendingId:
|
|
3467
|
+
pendingId: suspenseId++,
|
|
3468
3468
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
3469
3469
|
activeBranch: null,
|
|
3470
3470
|
pendingBranch: null,
|
|
@@ -3841,7 +3841,6 @@ function doWatch(source, cb, {
|
|
|
3841
3841
|
onTrack,
|
|
3842
3842
|
onTrigger
|
|
3843
3843
|
} = EMPTY_OBJ) {
|
|
3844
|
-
var _a;
|
|
3845
3844
|
if (cb && once) {
|
|
3846
3845
|
const _cb = cb;
|
|
3847
3846
|
cb = (...args) => {
|
|
@@ -3849,6 +3848,11 @@ function doWatch(source, cb, {
|
|
|
3849
3848
|
unwatch();
|
|
3850
3849
|
};
|
|
3851
3850
|
}
|
|
3851
|
+
if (!!(process.env.NODE_ENV !== "production") && deep !== void 0 && typeof deep === "number") {
|
|
3852
|
+
warn$1(
|
|
3853
|
+
`watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.`
|
|
3854
|
+
);
|
|
3855
|
+
}
|
|
3852
3856
|
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
3853
3857
|
if (immediate !== void 0) {
|
|
3854
3858
|
warn$1(
|
|
@@ -3873,7 +3877,11 @@ function doWatch(source, cb, {
|
|
|
3873
3877
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
3874
3878
|
);
|
|
3875
3879
|
};
|
|
3876
|
-
const instance =
|
|
3880
|
+
const instance = currentInstance;
|
|
3881
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
3882
|
+
// for deep: false, only traverse root-level properties
|
|
3883
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
3884
|
+
);
|
|
3877
3885
|
let getter;
|
|
3878
3886
|
let forceTrigger = false;
|
|
3879
3887
|
let isMultiSource = false;
|
|
@@ -3881,7 +3889,7 @@ function doWatch(source, cb, {
|
|
|
3881
3889
|
getter = () => source.value;
|
|
3882
3890
|
forceTrigger = isShallow(source);
|
|
3883
3891
|
} else if (isReactive(source)) {
|
|
3884
|
-
getter =
|
|
3892
|
+
getter = () => reactiveGetter(source);
|
|
3885
3893
|
forceTrigger = true;
|
|
3886
3894
|
} else if (isArray(source)) {
|
|
3887
3895
|
isMultiSource = true;
|
|
@@ -3890,7 +3898,7 @@ function doWatch(source, cb, {
|
|
|
3890
3898
|
if (isRef(s)) {
|
|
3891
3899
|
return s.value;
|
|
3892
3900
|
} else if (isReactive(s)) {
|
|
3893
|
-
return
|
|
3901
|
+
return reactiveGetter(s);
|
|
3894
3902
|
} else if (isFunction(s)) {
|
|
3895
3903
|
return callWithErrorHandling(s, instance, 2);
|
|
3896
3904
|
} else {
|
|
@@ -3902,9 +3910,6 @@ function doWatch(source, cb, {
|
|
|
3902
3910
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3903
3911
|
} else {
|
|
3904
3912
|
getter = () => {
|
|
3905
|
-
if (instance && instance.isUnmounted) {
|
|
3906
|
-
return;
|
|
3907
|
-
}
|
|
3908
3913
|
if (cleanup) {
|
|
3909
3914
|
cleanup();
|
|
3910
3915
|
}
|
|
@@ -3996,10 +4001,11 @@ function doWatch(source, cb, {
|
|
|
3996
4001
|
scheduler = () => queueJob(job);
|
|
3997
4002
|
}
|
|
3998
4003
|
const effect = new ReactiveEffect(getter, NOOP, scheduler);
|
|
4004
|
+
const scope = getCurrentScope();
|
|
3999
4005
|
const unwatch = () => {
|
|
4000
4006
|
effect.stop();
|
|
4001
|
-
if (
|
|
4002
|
-
remove(
|
|
4007
|
+
if (scope) {
|
|
4008
|
+
remove(scope.effects, effect);
|
|
4003
4009
|
}
|
|
4004
4010
|
};
|
|
4005
4011
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -5877,6 +5883,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5877
5883
|
return ref();
|
|
5878
5884
|
}
|
|
5879
5885
|
const camelizedName = camelize(name);
|
|
5886
|
+
const hyphenatedName = hyphenate(name);
|
|
5880
5887
|
const res = customRef((track, trigger) => {
|
|
5881
5888
|
let localValue;
|
|
5882
5889
|
watchSyncEffect(() => {
|
|
@@ -5894,7 +5901,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5894
5901
|
set(value) {
|
|
5895
5902
|
const rawProps = i.vnode.props;
|
|
5896
5903
|
if (!(rawProps && // check if parent has passed v-model
|
|
5897
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5904
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5898
5905
|
localValue = value;
|
|
5899
5906
|
trigger();
|
|
5900
5907
|
}
|
|
@@ -6490,7 +6497,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6490
6497
|
return vm;
|
|
6491
6498
|
}
|
|
6492
6499
|
}
|
|
6493
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6500
|
+
Vue.version = `2.6.14-compat:${"3.4.5"}`;
|
|
6494
6501
|
Vue.config = singletonApp.config;
|
|
6495
6502
|
Vue.use = (p, ...options) => {
|
|
6496
6503
|
if (p && isFunction(p.install)) {
|
|
@@ -11277,7 +11284,7 @@ function isMemoSame(cached, memo) {
|
|
|
11277
11284
|
return true;
|
|
11278
11285
|
}
|
|
11279
11286
|
|
|
11280
|
-
const version = "3.4.
|
|
11287
|
+
const version = "3.4.5";
|
|
11281
11288
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11282
11289
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11283
11290
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
|
@@ -3460,7 +3460,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3460
3460
|
hiddenContainer,
|
|
3461
3461
|
anchor,
|
|
3462
3462
|
deps: 0,
|
|
3463
|
-
pendingId:
|
|
3463
|
+
pendingId: suspenseId++,
|
|
3464
3464
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
3465
3465
|
activeBranch: null,
|
|
3466
3466
|
pendingBranch: null,
|
|
@@ -3831,7 +3831,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3831
3831
|
onTrack,
|
|
3832
3832
|
onTrigger
|
|
3833
3833
|
} = EMPTY_OBJ) {
|
|
3834
|
-
var _a;
|
|
3835
3834
|
if (cb && once) {
|
|
3836
3835
|
const _cb = cb;
|
|
3837
3836
|
cb = (...args) => {
|
|
@@ -3839,6 +3838,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3839
3838
|
unwatch();
|
|
3840
3839
|
};
|
|
3841
3840
|
}
|
|
3841
|
+
if (deep !== void 0 && typeof deep === "number") {
|
|
3842
|
+
warn$1(
|
|
3843
|
+
`watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.`
|
|
3844
|
+
);
|
|
3845
|
+
}
|
|
3842
3846
|
if (!cb) {
|
|
3843
3847
|
if (immediate !== void 0) {
|
|
3844
3848
|
warn$1(
|
|
@@ -3863,7 +3867,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3863
3867
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
3864
3868
|
);
|
|
3865
3869
|
};
|
|
3866
|
-
const instance =
|
|
3870
|
+
const instance = currentInstance;
|
|
3871
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
3872
|
+
// for deep: false, only traverse root-level properties
|
|
3873
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
3874
|
+
);
|
|
3867
3875
|
let getter;
|
|
3868
3876
|
let forceTrigger = false;
|
|
3869
3877
|
let isMultiSource = false;
|
|
@@ -3871,7 +3879,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3871
3879
|
getter = () => source.value;
|
|
3872
3880
|
forceTrigger = isShallow(source);
|
|
3873
3881
|
} else if (isReactive(source)) {
|
|
3874
|
-
getter =
|
|
3882
|
+
getter = () => reactiveGetter(source);
|
|
3875
3883
|
forceTrigger = true;
|
|
3876
3884
|
} else if (isArray(source)) {
|
|
3877
3885
|
isMultiSource = true;
|
|
@@ -3880,7 +3888,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3880
3888
|
if (isRef(s)) {
|
|
3881
3889
|
return s.value;
|
|
3882
3890
|
} else if (isReactive(s)) {
|
|
3883
|
-
return
|
|
3891
|
+
return reactiveGetter(s);
|
|
3884
3892
|
} else if (isFunction(s)) {
|
|
3885
3893
|
return callWithErrorHandling(s, instance, 2);
|
|
3886
3894
|
} else {
|
|
@@ -3892,9 +3900,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3892
3900
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3893
3901
|
} else {
|
|
3894
3902
|
getter = () => {
|
|
3895
|
-
if (instance && instance.isUnmounted) {
|
|
3896
|
-
return;
|
|
3897
|
-
}
|
|
3898
3903
|
if (cleanup) {
|
|
3899
3904
|
cleanup();
|
|
3900
3905
|
}
|
|
@@ -3967,10 +3972,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3967
3972
|
scheduler = () => queueJob(job);
|
|
3968
3973
|
}
|
|
3969
3974
|
const effect = new ReactiveEffect(getter, NOOP, scheduler);
|
|
3975
|
+
const scope = getCurrentScope();
|
|
3970
3976
|
const unwatch = () => {
|
|
3971
3977
|
effect.stop();
|
|
3972
|
-
if (
|
|
3973
|
-
remove(
|
|
3978
|
+
if (scope) {
|
|
3979
|
+
remove(scope.effects, effect);
|
|
3974
3980
|
}
|
|
3975
3981
|
};
|
|
3976
3982
|
{
|
|
@@ -5838,6 +5844,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5838
5844
|
return ref();
|
|
5839
5845
|
}
|
|
5840
5846
|
const camelizedName = camelize(name);
|
|
5847
|
+
const hyphenatedName = hyphenate(name);
|
|
5841
5848
|
const res = customRef((track, trigger) => {
|
|
5842
5849
|
let localValue;
|
|
5843
5850
|
watchSyncEffect(() => {
|
|
@@ -5855,7 +5862,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5855
5862
|
set(value) {
|
|
5856
5863
|
const rawProps = i.vnode.props;
|
|
5857
5864
|
if (!(rawProps && // check if parent has passed v-model
|
|
5858
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5865
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5859
5866
|
localValue = value;
|
|
5860
5867
|
trigger();
|
|
5861
5868
|
}
|
|
@@ -6449,7 +6456,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6449
6456
|
return vm;
|
|
6450
6457
|
}
|
|
6451
6458
|
}
|
|
6452
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6459
|
+
Vue.version = `2.6.14-compat:${"3.4.5"}`;
|
|
6453
6460
|
Vue.config = singletonApp.config;
|
|
6454
6461
|
Vue.use = (p, ...options) => {
|
|
6455
6462
|
if (p && isFunction(p.install)) {
|
|
@@ -11152,7 +11159,7 @@ Component that was made reactive: `,
|
|
|
11152
11159
|
return true;
|
|
11153
11160
|
}
|
|
11154
11161
|
|
|
11155
|
-
const version = "3.4.
|
|
11162
|
+
const version = "3.4.5";
|
|
11156
11163
|
const warn = warn$1 ;
|
|
11157
11164
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11158
11165
|
const devtools = devtools$1 ;
|