@vue/compat 3.4.2 → 3.4.4
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 +17 -11
- package/dist/vue.cjs.prod.js +12 -11
- package/dist/vue.esm-browser.js +17 -11
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +17 -11
- package/dist/vue.global.js +17 -11
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +17 -11
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +17 -11
- package/dist/vue.runtime.global.js +17 -11
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -3573,7 +3573,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3573
3573
|
hiddenContainer,
|
|
3574
3574
|
anchor,
|
|
3575
3575
|
deps: 0,
|
|
3576
|
-
pendingId:
|
|
3576
|
+
pendingId: suspenseId++,
|
|
3577
3577
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
3578
3578
|
activeBranch: null,
|
|
3579
3579
|
pendingBranch: null,
|
|
@@ -3950,7 +3950,6 @@ function doWatch(source, cb, {
|
|
|
3950
3950
|
onTrack,
|
|
3951
3951
|
onTrigger
|
|
3952
3952
|
} = EMPTY_OBJ) {
|
|
3953
|
-
var _a;
|
|
3954
3953
|
if (cb && once) {
|
|
3955
3954
|
const _cb = cb;
|
|
3956
3955
|
cb = (...args) => {
|
|
@@ -3958,6 +3957,11 @@ function doWatch(source, cb, {
|
|
|
3958
3957
|
unwatch();
|
|
3959
3958
|
};
|
|
3960
3959
|
}
|
|
3960
|
+
if (deep !== void 0 && typeof deep === "number") {
|
|
3961
|
+
warn$1(
|
|
3962
|
+
`watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.`
|
|
3963
|
+
);
|
|
3964
|
+
}
|
|
3961
3965
|
if (!cb) {
|
|
3962
3966
|
if (immediate !== void 0) {
|
|
3963
3967
|
warn$1(
|
|
@@ -3982,7 +3986,11 @@ function doWatch(source, cb, {
|
|
|
3982
3986
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
3983
3987
|
);
|
|
3984
3988
|
};
|
|
3985
|
-
const instance =
|
|
3989
|
+
const instance = currentInstance;
|
|
3990
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
3991
|
+
// for deep: false, only traverse root-level properties
|
|
3992
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
3993
|
+
);
|
|
3986
3994
|
let getter;
|
|
3987
3995
|
let forceTrigger = false;
|
|
3988
3996
|
let isMultiSource = false;
|
|
@@ -3990,7 +3998,7 @@ function doWatch(source, cb, {
|
|
|
3990
3998
|
getter = () => source.value;
|
|
3991
3999
|
forceTrigger = isShallow(source);
|
|
3992
4000
|
} else if (isReactive(source)) {
|
|
3993
|
-
getter =
|
|
4001
|
+
getter = () => reactiveGetter(source);
|
|
3994
4002
|
forceTrigger = true;
|
|
3995
4003
|
} else if (isArray(source)) {
|
|
3996
4004
|
isMultiSource = true;
|
|
@@ -3999,7 +4007,7 @@ function doWatch(source, cb, {
|
|
|
3999
4007
|
if (isRef(s)) {
|
|
4000
4008
|
return s.value;
|
|
4001
4009
|
} else if (isReactive(s)) {
|
|
4002
|
-
return
|
|
4010
|
+
return reactiveGetter(s);
|
|
4003
4011
|
} else if (isFunction(s)) {
|
|
4004
4012
|
return callWithErrorHandling(s, instance, 2);
|
|
4005
4013
|
} else {
|
|
@@ -4011,9 +4019,6 @@ function doWatch(source, cb, {
|
|
|
4011
4019
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
4012
4020
|
} else {
|
|
4013
4021
|
getter = () => {
|
|
4014
|
-
if (instance && instance.isUnmounted) {
|
|
4015
|
-
return;
|
|
4016
|
-
}
|
|
4017
4022
|
if (cleanup) {
|
|
4018
4023
|
cleanup();
|
|
4019
4024
|
}
|
|
@@ -5984,6 +5989,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5984
5989
|
return ref();
|
|
5985
5990
|
}
|
|
5986
5991
|
const camelizedName = camelize(name);
|
|
5992
|
+
const hyphenatedName = hyphenate(name);
|
|
5987
5993
|
const res = customRef((track, trigger) => {
|
|
5988
5994
|
let localValue;
|
|
5989
5995
|
watchSyncEffect(() => {
|
|
@@ -6001,7 +6007,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6001
6007
|
set(value) {
|
|
6002
6008
|
const rawProps = i.vnode.props;
|
|
6003
6009
|
if (!(rawProps && // check if parent has passed v-model
|
|
6004
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
6010
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
6005
6011
|
localValue = value;
|
|
6006
6012
|
trigger();
|
|
6007
6013
|
}
|
|
@@ -6595,7 +6601,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6595
6601
|
return vm;
|
|
6596
6602
|
}
|
|
6597
6603
|
}
|
|
6598
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6604
|
+
Vue.version = `2.6.14-compat:${"3.4.4"}`;
|
|
6599
6605
|
Vue.config = singletonApp.config;
|
|
6600
6606
|
Vue.use = (p, ...options) => {
|
|
6601
6607
|
if (p && isFunction(p.install)) {
|
|
@@ -11315,7 +11321,7 @@ function isMemoSame(cached, memo) {
|
|
|
11315
11321
|
return true;
|
|
11316
11322
|
}
|
|
11317
11323
|
|
|
11318
|
-
const version = "3.4.
|
|
11324
|
+
const version = "3.4.4";
|
|
11319
11325
|
const warn = warn$1 ;
|
|
11320
11326
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11321
11327
|
const devtools = devtools$1 ;
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -2626,7 +2626,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
2626
2626
|
hiddenContainer,
|
|
2627
2627
|
anchor,
|
|
2628
2628
|
deps: 0,
|
|
2629
|
-
pendingId:
|
|
2629
|
+
pendingId: suspenseId++,
|
|
2630
2630
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
2631
2631
|
activeBranch: null,
|
|
2632
2632
|
pendingBranch: null,
|
|
@@ -2972,7 +2972,6 @@ function doWatch(source, cb, {
|
|
|
2972
2972
|
onTrack,
|
|
2973
2973
|
onTrigger
|
|
2974
2974
|
} = EMPTY_OBJ) {
|
|
2975
|
-
var _a;
|
|
2976
2975
|
if (cb && once) {
|
|
2977
2976
|
const _cb = cb;
|
|
2978
2977
|
cb = (...args) => {
|
|
@@ -2980,7 +2979,11 @@ function doWatch(source, cb, {
|
|
|
2980
2979
|
unwatch();
|
|
2981
2980
|
};
|
|
2982
2981
|
}
|
|
2983
|
-
const instance =
|
|
2982
|
+
const instance = currentInstance;
|
|
2983
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
2984
|
+
// for deep: false, only traverse root-level properties
|
|
2985
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
2986
|
+
);
|
|
2984
2987
|
let getter;
|
|
2985
2988
|
let forceTrigger = false;
|
|
2986
2989
|
let isMultiSource = false;
|
|
@@ -2988,7 +2991,7 @@ function doWatch(source, cb, {
|
|
|
2988
2991
|
getter = () => source.value;
|
|
2989
2992
|
forceTrigger = isShallow(source);
|
|
2990
2993
|
} else if (isReactive(source)) {
|
|
2991
|
-
getter =
|
|
2994
|
+
getter = () => reactiveGetter(source);
|
|
2992
2995
|
forceTrigger = true;
|
|
2993
2996
|
} else if (isArray(source)) {
|
|
2994
2997
|
isMultiSource = true;
|
|
@@ -2997,7 +3000,7 @@ function doWatch(source, cb, {
|
|
|
2997
3000
|
if (isRef(s)) {
|
|
2998
3001
|
return s.value;
|
|
2999
3002
|
} else if (isReactive(s)) {
|
|
3000
|
-
return
|
|
3003
|
+
return reactiveGetter(s);
|
|
3001
3004
|
} else if (isFunction(s)) {
|
|
3002
3005
|
return callWithErrorHandling(s, instance, 2);
|
|
3003
3006
|
} else ;
|
|
@@ -3007,9 +3010,6 @@ function doWatch(source, cb, {
|
|
|
3007
3010
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3008
3011
|
} else {
|
|
3009
3012
|
getter = () => {
|
|
3010
|
-
if (instance && instance.isUnmounted) {
|
|
3011
|
-
return;
|
|
3012
|
-
}
|
|
3013
3013
|
if (cleanup) {
|
|
3014
3014
|
cleanup();
|
|
3015
3015
|
}
|
|
@@ -4783,6 +4783,7 @@ function useAttrs() {
|
|
|
4783
4783
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
4784
4784
|
const i = getCurrentInstance();
|
|
4785
4785
|
const camelizedName = camelize(name);
|
|
4786
|
+
const hyphenatedName = hyphenate(name);
|
|
4786
4787
|
const res = customRef((track, trigger) => {
|
|
4787
4788
|
let localValue;
|
|
4788
4789
|
watchSyncEffect(() => {
|
|
@@ -4800,7 +4801,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
4800
4801
|
set(value) {
|
|
4801
4802
|
const rawProps = i.vnode.props;
|
|
4802
4803
|
if (!(rawProps && // check if parent has passed v-model
|
|
4803
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
4804
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
4804
4805
|
localValue = value;
|
|
4805
4806
|
trigger();
|
|
4806
4807
|
}
|
|
@@ -5281,7 +5282,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5281
5282
|
return vm;
|
|
5282
5283
|
}
|
|
5283
5284
|
}
|
|
5284
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5285
|
+
Vue.version = `2.6.14-compat:${"3.4.4"}`;
|
|
5285
5286
|
Vue.config = singletonApp.config;
|
|
5286
5287
|
Vue.use = (p, ...options) => {
|
|
5287
5288
|
if (p && isFunction(p.install)) {
|
|
@@ -9081,7 +9082,7 @@ function isMemoSame(cached, memo) {
|
|
|
9081
9082
|
return true;
|
|
9082
9083
|
}
|
|
9083
9084
|
|
|
9084
|
-
const version = "3.4.
|
|
9085
|
+
const version = "3.4.4";
|
|
9085
9086
|
const warn$1 = NOOP;
|
|
9086
9087
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9087
9088
|
const devtools = void 0;
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -3522,7 +3522,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3522
3522
|
hiddenContainer,
|
|
3523
3523
|
anchor,
|
|
3524
3524
|
deps: 0,
|
|
3525
|
-
pendingId:
|
|
3525
|
+
pendingId: suspenseId++,
|
|
3526
3526
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
3527
3527
|
activeBranch: null,
|
|
3528
3528
|
pendingBranch: null,
|
|
@@ -3899,7 +3899,6 @@ function doWatch(source, cb, {
|
|
|
3899
3899
|
onTrack,
|
|
3900
3900
|
onTrigger
|
|
3901
3901
|
} = EMPTY_OBJ) {
|
|
3902
|
-
var _a;
|
|
3903
3902
|
if (cb && once) {
|
|
3904
3903
|
const _cb = cb;
|
|
3905
3904
|
cb = (...args) => {
|
|
@@ -3907,6 +3906,11 @@ function doWatch(source, cb, {
|
|
|
3907
3906
|
unwatch();
|
|
3908
3907
|
};
|
|
3909
3908
|
}
|
|
3909
|
+
if (deep !== void 0 && typeof deep === "number") {
|
|
3910
|
+
warn$1(
|
|
3911
|
+
`watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.`
|
|
3912
|
+
);
|
|
3913
|
+
}
|
|
3910
3914
|
if (!cb) {
|
|
3911
3915
|
if (immediate !== void 0) {
|
|
3912
3916
|
warn$1(
|
|
@@ -3931,7 +3935,11 @@ function doWatch(source, cb, {
|
|
|
3931
3935
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
3932
3936
|
);
|
|
3933
3937
|
};
|
|
3934
|
-
const instance =
|
|
3938
|
+
const instance = currentInstance;
|
|
3939
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
3940
|
+
// for deep: false, only traverse root-level properties
|
|
3941
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
3942
|
+
);
|
|
3935
3943
|
let getter;
|
|
3936
3944
|
let forceTrigger = false;
|
|
3937
3945
|
let isMultiSource = false;
|
|
@@ -3939,7 +3947,7 @@ function doWatch(source, cb, {
|
|
|
3939
3947
|
getter = () => source.value;
|
|
3940
3948
|
forceTrigger = isShallow(source);
|
|
3941
3949
|
} else if (isReactive(source)) {
|
|
3942
|
-
getter =
|
|
3950
|
+
getter = () => reactiveGetter(source);
|
|
3943
3951
|
forceTrigger = true;
|
|
3944
3952
|
} else if (isArray(source)) {
|
|
3945
3953
|
isMultiSource = true;
|
|
@@ -3948,7 +3956,7 @@ function doWatch(source, cb, {
|
|
|
3948
3956
|
if (isRef(s)) {
|
|
3949
3957
|
return s.value;
|
|
3950
3958
|
} else if (isReactive(s)) {
|
|
3951
|
-
return
|
|
3959
|
+
return reactiveGetter(s);
|
|
3952
3960
|
} else if (isFunction(s)) {
|
|
3953
3961
|
return callWithErrorHandling(s, instance, 2);
|
|
3954
3962
|
} else {
|
|
@@ -3960,9 +3968,6 @@ function doWatch(source, cb, {
|
|
|
3960
3968
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3961
3969
|
} else {
|
|
3962
3970
|
getter = () => {
|
|
3963
|
-
if (instance && instance.isUnmounted) {
|
|
3964
|
-
return;
|
|
3965
|
-
}
|
|
3966
3971
|
if (cleanup) {
|
|
3967
3972
|
cleanup();
|
|
3968
3973
|
}
|
|
@@ -5906,6 +5911,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5906
5911
|
return ref();
|
|
5907
5912
|
}
|
|
5908
5913
|
const camelizedName = camelize(name);
|
|
5914
|
+
const hyphenatedName = hyphenate(name);
|
|
5909
5915
|
const res = customRef((track, trigger) => {
|
|
5910
5916
|
let localValue;
|
|
5911
5917
|
watchSyncEffect(() => {
|
|
@@ -5923,7 +5929,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5923
5929
|
set(value) {
|
|
5924
5930
|
const rawProps = i.vnode.props;
|
|
5925
5931
|
if (!(rawProps && // check if parent has passed v-model
|
|
5926
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5932
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5927
5933
|
localValue = value;
|
|
5928
5934
|
trigger();
|
|
5929
5935
|
}
|
|
@@ -6517,7 +6523,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6517
6523
|
return vm;
|
|
6518
6524
|
}
|
|
6519
6525
|
}
|
|
6520
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6526
|
+
Vue.version = `2.6.14-compat:${"3.4.4"}`;
|
|
6521
6527
|
Vue.config = singletonApp.config;
|
|
6522
6528
|
Vue.use = (p, ...options) => {
|
|
6523
6529
|
if (p && isFunction(p.install)) {
|
|
@@ -11220,7 +11226,7 @@ function isMemoSame(cached, memo) {
|
|
|
11220
11226
|
return true;
|
|
11221
11227
|
}
|
|
11222
11228
|
|
|
11223
|
-
const version = "3.4.
|
|
11229
|
+
const version = "3.4.4";
|
|
11224
11230
|
const warn = warn$1 ;
|
|
11225
11231
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11226
11232
|
const devtools = devtools$1 ;
|