@vue/compat 3.4.3 → 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.esm-bundler.js
CHANGED
|
@@ -3529,7 +3529,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3529
3529
|
hiddenContainer,
|
|
3530
3530
|
anchor,
|
|
3531
3531
|
deps: 0,
|
|
3532
|
-
pendingId:
|
|
3532
|
+
pendingId: suspenseId++,
|
|
3533
3533
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
3534
3534
|
activeBranch: null,
|
|
3535
3535
|
pendingBranch: null,
|
|
@@ -3906,7 +3906,6 @@ function doWatch(source, cb, {
|
|
|
3906
3906
|
onTrack,
|
|
3907
3907
|
onTrigger
|
|
3908
3908
|
} = EMPTY_OBJ) {
|
|
3909
|
-
var _a;
|
|
3910
3909
|
if (cb && once) {
|
|
3911
3910
|
const _cb = cb;
|
|
3912
3911
|
cb = (...args) => {
|
|
@@ -3914,6 +3913,11 @@ function doWatch(source, cb, {
|
|
|
3914
3913
|
unwatch();
|
|
3915
3914
|
};
|
|
3916
3915
|
}
|
|
3916
|
+
if (!!(process.env.NODE_ENV !== "production") && deep !== void 0 && typeof deep === "number") {
|
|
3917
|
+
warn$1(
|
|
3918
|
+
`watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.`
|
|
3919
|
+
);
|
|
3920
|
+
}
|
|
3917
3921
|
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
3918
3922
|
if (immediate !== void 0) {
|
|
3919
3923
|
warn$1(
|
|
@@ -3938,7 +3942,11 @@ function doWatch(source, cb, {
|
|
|
3938
3942
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
3939
3943
|
);
|
|
3940
3944
|
};
|
|
3941
|
-
const instance =
|
|
3945
|
+
const instance = currentInstance;
|
|
3946
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
3947
|
+
// for deep: false, only traverse root-level properties
|
|
3948
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
3949
|
+
);
|
|
3942
3950
|
let getter;
|
|
3943
3951
|
let forceTrigger = false;
|
|
3944
3952
|
let isMultiSource = false;
|
|
@@ -3946,7 +3954,7 @@ function doWatch(source, cb, {
|
|
|
3946
3954
|
getter = () => source.value;
|
|
3947
3955
|
forceTrigger = isShallow(source);
|
|
3948
3956
|
} else if (isReactive(source)) {
|
|
3949
|
-
getter =
|
|
3957
|
+
getter = () => reactiveGetter(source);
|
|
3950
3958
|
forceTrigger = true;
|
|
3951
3959
|
} else if (isArray(source)) {
|
|
3952
3960
|
isMultiSource = true;
|
|
@@ -3955,7 +3963,7 @@ function doWatch(source, cb, {
|
|
|
3955
3963
|
if (isRef(s)) {
|
|
3956
3964
|
return s.value;
|
|
3957
3965
|
} else if (isReactive(s)) {
|
|
3958
|
-
return
|
|
3966
|
+
return reactiveGetter(s);
|
|
3959
3967
|
} else if (isFunction(s)) {
|
|
3960
3968
|
return callWithErrorHandling(s, instance, 2);
|
|
3961
3969
|
} else {
|
|
@@ -3967,9 +3975,6 @@ function doWatch(source, cb, {
|
|
|
3967
3975
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3968
3976
|
} else {
|
|
3969
3977
|
getter = () => {
|
|
3970
|
-
if (instance && instance.isUnmounted) {
|
|
3971
|
-
return;
|
|
3972
|
-
}
|
|
3973
3978
|
if (cleanup) {
|
|
3974
3979
|
cleanup();
|
|
3975
3980
|
}
|
|
@@ -5942,6 +5947,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5942
5947
|
return ref();
|
|
5943
5948
|
}
|
|
5944
5949
|
const camelizedName = camelize(name);
|
|
5950
|
+
const hyphenatedName = hyphenate(name);
|
|
5945
5951
|
const res = customRef((track, trigger) => {
|
|
5946
5952
|
let localValue;
|
|
5947
5953
|
watchSyncEffect(() => {
|
|
@@ -5959,7 +5965,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5959
5965
|
set(value) {
|
|
5960
5966
|
const rawProps = i.vnode.props;
|
|
5961
5967
|
if (!(rawProps && // check if parent has passed v-model
|
|
5962
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5968
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5963
5969
|
localValue = value;
|
|
5964
5970
|
trigger();
|
|
5965
5971
|
}
|
|
@@ -6555,7 +6561,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6555
6561
|
return vm;
|
|
6556
6562
|
}
|
|
6557
6563
|
}
|
|
6558
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6564
|
+
Vue.version = `2.6.14-compat:${"3.4.4"}`;
|
|
6559
6565
|
Vue.config = singletonApp.config;
|
|
6560
6566
|
Vue.use = (p, ...options) => {
|
|
6561
6567
|
if (p && isFunction(p.install)) {
|
|
@@ -11342,7 +11348,7 @@ function isMemoSame(cached, memo) {
|
|
|
11342
11348
|
return true;
|
|
11343
11349
|
}
|
|
11344
11350
|
|
|
11345
|
-
const version = "3.4.
|
|
11351
|
+
const version = "3.4.4";
|
|
11346
11352
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11347
11353
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11348
11354
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
package/dist/vue.global.js
CHANGED
|
@@ -3525,7 +3525,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3525
3525
|
hiddenContainer,
|
|
3526
3526
|
anchor,
|
|
3527
3527
|
deps: 0,
|
|
3528
|
-
pendingId:
|
|
3528
|
+
pendingId: suspenseId++,
|
|
3529
3529
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
3530
3530
|
activeBranch: null,
|
|
3531
3531
|
pendingBranch: null,
|
|
@@ -3896,7 +3896,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3896
3896
|
onTrack,
|
|
3897
3897
|
onTrigger
|
|
3898
3898
|
} = EMPTY_OBJ) {
|
|
3899
|
-
var _a;
|
|
3900
3899
|
if (cb && once) {
|
|
3901
3900
|
const _cb = cb;
|
|
3902
3901
|
cb = (...args) => {
|
|
@@ -3904,6 +3903,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3904
3903
|
unwatch();
|
|
3905
3904
|
};
|
|
3906
3905
|
}
|
|
3906
|
+
if (deep !== void 0 && typeof deep === "number") {
|
|
3907
|
+
warn$1(
|
|
3908
|
+
`watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.`
|
|
3909
|
+
);
|
|
3910
|
+
}
|
|
3907
3911
|
if (!cb) {
|
|
3908
3912
|
if (immediate !== void 0) {
|
|
3909
3913
|
warn$1(
|
|
@@ -3928,7 +3932,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3928
3932
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
3929
3933
|
);
|
|
3930
3934
|
};
|
|
3931
|
-
const instance =
|
|
3935
|
+
const instance = currentInstance;
|
|
3936
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
3937
|
+
// for deep: false, only traverse root-level properties
|
|
3938
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
3939
|
+
);
|
|
3932
3940
|
let getter;
|
|
3933
3941
|
let forceTrigger = false;
|
|
3934
3942
|
let isMultiSource = false;
|
|
@@ -3936,7 +3944,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3936
3944
|
getter = () => source.value;
|
|
3937
3945
|
forceTrigger = isShallow(source);
|
|
3938
3946
|
} else if (isReactive(source)) {
|
|
3939
|
-
getter =
|
|
3947
|
+
getter = () => reactiveGetter(source);
|
|
3940
3948
|
forceTrigger = true;
|
|
3941
3949
|
} else if (isArray(source)) {
|
|
3942
3950
|
isMultiSource = true;
|
|
@@ -3945,7 +3953,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3945
3953
|
if (isRef(s)) {
|
|
3946
3954
|
return s.value;
|
|
3947
3955
|
} else if (isReactive(s)) {
|
|
3948
|
-
return
|
|
3956
|
+
return reactiveGetter(s);
|
|
3949
3957
|
} else if (isFunction(s)) {
|
|
3950
3958
|
return callWithErrorHandling(s, instance, 2);
|
|
3951
3959
|
} else {
|
|
@@ -3957,9 +3965,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3957
3965
|
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3958
3966
|
} else {
|
|
3959
3967
|
getter = () => {
|
|
3960
|
-
if (instance && instance.isUnmounted) {
|
|
3961
|
-
return;
|
|
3962
|
-
}
|
|
3963
3968
|
if (cleanup) {
|
|
3964
3969
|
cleanup();
|
|
3965
3970
|
}
|
|
@@ -5903,6 +5908,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5903
5908
|
return ref();
|
|
5904
5909
|
}
|
|
5905
5910
|
const camelizedName = camelize(name);
|
|
5911
|
+
const hyphenatedName = hyphenate(name);
|
|
5906
5912
|
const res = customRef((track, trigger) => {
|
|
5907
5913
|
let localValue;
|
|
5908
5914
|
watchSyncEffect(() => {
|
|
@@ -5920,7 +5926,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5920
5926
|
set(value) {
|
|
5921
5927
|
const rawProps = i.vnode.props;
|
|
5922
5928
|
if (!(rawProps && // check if parent has passed v-model
|
|
5923
|
-
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5929
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5924
5930
|
localValue = value;
|
|
5925
5931
|
trigger();
|
|
5926
5932
|
}
|
|
@@ -6514,7 +6520,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6514
6520
|
return vm;
|
|
6515
6521
|
}
|
|
6516
6522
|
}
|
|
6517
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6523
|
+
Vue.version = `2.6.14-compat:${"3.4.4"}`;
|
|
6518
6524
|
Vue.config = singletonApp.config;
|
|
6519
6525
|
Vue.use = (p, ...options) => {
|
|
6520
6526
|
if (p && isFunction(p.install)) {
|
|
@@ -11217,7 +11223,7 @@ Component that was made reactive: `,
|
|
|
11217
11223
|
return true;
|
|
11218
11224
|
}
|
|
11219
11225
|
|
|
11220
|
-
const version = "3.4.
|
|
11226
|
+
const version = "3.4.4";
|
|
11221
11227
|
const warn = warn$1 ;
|
|
11222
11228
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11223
11229
|
const devtools = devtools$1 ;
|