@vue/compat 3.4.1 → 3.4.3
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 +16 -10
- package/dist/vue.cjs.prod.js +16 -10
- package/dist/vue.esm-browser.js +16 -10
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +16 -10
- package/dist/vue.global.js +16 -10
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +16 -10
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +16 -10
- package/dist/vue.runtime.global.js +16 -10
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
|
@@ -3881,8 +3881,8 @@ function doWatch(source, cb, {
|
|
|
3881
3881
|
getter = () => source.value;
|
|
3882
3882
|
forceTrigger = isShallow(source);
|
|
3883
3883
|
} else if (isReactive(source)) {
|
|
3884
|
-
getter = () => source;
|
|
3885
|
-
|
|
3884
|
+
getter = isShallow(source) || deep === false ? () => traverse(source, 1) : () => traverse(source);
|
|
3885
|
+
forceTrigger = true;
|
|
3886
3886
|
} else if (isArray(source)) {
|
|
3887
3887
|
isMultiSource = true;
|
|
3888
3888
|
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
@@ -3890,7 +3890,7 @@ function doWatch(source, cb, {
|
|
|
3890
3890
|
if (isRef(s)) {
|
|
3891
3891
|
return s.value;
|
|
3892
3892
|
} else if (isReactive(s)) {
|
|
3893
|
-
return traverse(s);
|
|
3893
|
+
return traverse(s, isShallow(s) || deep === false ? 1 : void 0);
|
|
3894
3894
|
} else if (isFunction(s)) {
|
|
3895
3895
|
return callWithErrorHandling(s, instance, 2);
|
|
3896
3896
|
} else {
|
|
@@ -4054,28 +4054,34 @@ function createPathGetter(ctx, path) {
|
|
|
4054
4054
|
return cur;
|
|
4055
4055
|
};
|
|
4056
4056
|
}
|
|
4057
|
-
function traverse(value, seen) {
|
|
4057
|
+
function traverse(value, depth, currentDepth = 0, seen) {
|
|
4058
4058
|
if (!isObject(value) || value["__v_skip"]) {
|
|
4059
4059
|
return value;
|
|
4060
4060
|
}
|
|
4061
|
+
if (depth && depth > 0) {
|
|
4062
|
+
if (currentDepth >= depth) {
|
|
4063
|
+
return value;
|
|
4064
|
+
}
|
|
4065
|
+
currentDepth++;
|
|
4066
|
+
}
|
|
4061
4067
|
seen = seen || /* @__PURE__ */ new Set();
|
|
4062
4068
|
if (seen.has(value)) {
|
|
4063
4069
|
return value;
|
|
4064
4070
|
}
|
|
4065
4071
|
seen.add(value);
|
|
4066
4072
|
if (isRef(value)) {
|
|
4067
|
-
traverse(value.value, seen);
|
|
4073
|
+
traverse(value.value, depth, currentDepth, seen);
|
|
4068
4074
|
} else if (isArray(value)) {
|
|
4069
4075
|
for (let i = 0; i < value.length; i++) {
|
|
4070
|
-
traverse(value[i], seen);
|
|
4076
|
+
traverse(value[i], depth, currentDepth, seen);
|
|
4071
4077
|
}
|
|
4072
4078
|
} else if (isSet(value) || isMap(value)) {
|
|
4073
4079
|
value.forEach((v) => {
|
|
4074
|
-
traverse(v, seen);
|
|
4080
|
+
traverse(v, depth, currentDepth, seen);
|
|
4075
4081
|
});
|
|
4076
4082
|
} else if (isPlainObject(value)) {
|
|
4077
4083
|
for (const key in value) {
|
|
4078
|
-
traverse(value[key], seen);
|
|
4084
|
+
traverse(value[key], depth, currentDepth, seen);
|
|
4079
4085
|
}
|
|
4080
4086
|
}
|
|
4081
4087
|
return value;
|
|
@@ -6484,7 +6490,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6484
6490
|
return vm;
|
|
6485
6491
|
}
|
|
6486
6492
|
}
|
|
6487
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6493
|
+
Vue.version = `2.6.14-compat:${"3.4.3"}`;
|
|
6488
6494
|
Vue.config = singletonApp.config;
|
|
6489
6495
|
Vue.use = (p, ...options) => {
|
|
6490
6496
|
if (p && isFunction(p.install)) {
|
|
@@ -11271,7 +11277,7 @@ function isMemoSame(cached, memo) {
|
|
|
11271
11277
|
return true;
|
|
11272
11278
|
}
|
|
11273
11279
|
|
|
11274
|
-
const version = "3.4.
|
|
11280
|
+
const version = "3.4.3";
|
|
11275
11281
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11276
11282
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11277
11283
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
|
@@ -3871,8 +3871,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3871
3871
|
getter = () => source.value;
|
|
3872
3872
|
forceTrigger = isShallow(source);
|
|
3873
3873
|
} else if (isReactive(source)) {
|
|
3874
|
-
getter = () => source;
|
|
3875
|
-
|
|
3874
|
+
getter = isShallow(source) || deep === false ? () => traverse(source, 1) : () => traverse(source);
|
|
3875
|
+
forceTrigger = true;
|
|
3876
3876
|
} else if (isArray(source)) {
|
|
3877
3877
|
isMultiSource = true;
|
|
3878
3878
|
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
@@ -3880,7 +3880,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3880
3880
|
if (isRef(s)) {
|
|
3881
3881
|
return s.value;
|
|
3882
3882
|
} else if (isReactive(s)) {
|
|
3883
|
-
return traverse(s);
|
|
3883
|
+
return traverse(s, isShallow(s) || deep === false ? 1 : void 0);
|
|
3884
3884
|
} else if (isFunction(s)) {
|
|
3885
3885
|
return callWithErrorHandling(s, instance, 2);
|
|
3886
3886
|
} else {
|
|
@@ -4023,28 +4023,34 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4023
4023
|
return cur;
|
|
4024
4024
|
};
|
|
4025
4025
|
}
|
|
4026
|
-
function traverse(value, seen) {
|
|
4026
|
+
function traverse(value, depth, currentDepth = 0, seen) {
|
|
4027
4027
|
if (!isObject(value) || value["__v_skip"]) {
|
|
4028
4028
|
return value;
|
|
4029
4029
|
}
|
|
4030
|
+
if (depth && depth > 0) {
|
|
4031
|
+
if (currentDepth >= depth) {
|
|
4032
|
+
return value;
|
|
4033
|
+
}
|
|
4034
|
+
currentDepth++;
|
|
4035
|
+
}
|
|
4030
4036
|
seen = seen || /* @__PURE__ */ new Set();
|
|
4031
4037
|
if (seen.has(value)) {
|
|
4032
4038
|
return value;
|
|
4033
4039
|
}
|
|
4034
4040
|
seen.add(value);
|
|
4035
4041
|
if (isRef(value)) {
|
|
4036
|
-
traverse(value.value, seen);
|
|
4042
|
+
traverse(value.value, depth, currentDepth, seen);
|
|
4037
4043
|
} else if (isArray(value)) {
|
|
4038
4044
|
for (let i = 0; i < value.length; i++) {
|
|
4039
|
-
traverse(value[i], seen);
|
|
4045
|
+
traverse(value[i], depth, currentDepth, seen);
|
|
4040
4046
|
}
|
|
4041
4047
|
} else if (isSet(value) || isMap(value)) {
|
|
4042
4048
|
value.forEach((v) => {
|
|
4043
|
-
traverse(v, seen);
|
|
4049
|
+
traverse(v, depth, currentDepth, seen);
|
|
4044
4050
|
});
|
|
4045
4051
|
} else if (isPlainObject(value)) {
|
|
4046
4052
|
for (const key in value) {
|
|
4047
|
-
traverse(value[key], seen);
|
|
4053
|
+
traverse(value[key], depth, currentDepth, seen);
|
|
4048
4054
|
}
|
|
4049
4055
|
}
|
|
4050
4056
|
return value;
|
|
@@ -6443,7 +6449,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6443
6449
|
return vm;
|
|
6444
6450
|
}
|
|
6445
6451
|
}
|
|
6446
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6452
|
+
Vue.version = `2.6.14-compat:${"3.4.3"}`;
|
|
6447
6453
|
Vue.config = singletonApp.config;
|
|
6448
6454
|
Vue.use = (p, ...options) => {
|
|
6449
6455
|
if (p && isFunction(p.install)) {
|
|
@@ -11146,7 +11152,7 @@ Component that was made reactive: `,
|
|
|
11146
11152
|
return true;
|
|
11147
11153
|
}
|
|
11148
11154
|
|
|
11149
|
-
const version = "3.4.
|
|
11155
|
+
const version = "3.4.3";
|
|
11150
11156
|
const warn = warn$1 ;
|
|
11151
11157
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11152
11158
|
const devtools = devtools$1 ;
|