@vue/runtime-core 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/runtime-core.cjs.js
CHANGED
|
@@ -1834,8 +1834,8 @@ function doWatch(source, cb, {
|
|
|
1834
1834
|
getter = () => source.value;
|
|
1835
1835
|
forceTrigger = reactivity.isShallow(source);
|
|
1836
1836
|
} else if (reactivity.isReactive(source)) {
|
|
1837
|
-
getter = () => source;
|
|
1838
|
-
|
|
1837
|
+
getter = reactivity.isShallow(source) || deep === false ? () => traverse(source, 1) : () => traverse(source);
|
|
1838
|
+
forceTrigger = true;
|
|
1839
1839
|
} else if (shared.isArray(source)) {
|
|
1840
1840
|
isMultiSource = true;
|
|
1841
1841
|
forceTrigger = source.some((s) => reactivity.isReactive(s) || reactivity.isShallow(s));
|
|
@@ -1843,7 +1843,7 @@ function doWatch(source, cb, {
|
|
|
1843
1843
|
if (reactivity.isRef(s)) {
|
|
1844
1844
|
return s.value;
|
|
1845
1845
|
} else if (reactivity.isReactive(s)) {
|
|
1846
|
-
return traverse(s);
|
|
1846
|
+
return traverse(s, reactivity.isShallow(s) || deep === false ? 1 : void 0);
|
|
1847
1847
|
} else if (shared.isFunction(s)) {
|
|
1848
1848
|
return callWithErrorHandling(s, instance, 2);
|
|
1849
1849
|
} else {
|
|
@@ -1997,28 +1997,34 @@ function createPathGetter(ctx, path) {
|
|
|
1997
1997
|
return cur;
|
|
1998
1998
|
};
|
|
1999
1999
|
}
|
|
2000
|
-
function traverse(value, seen) {
|
|
2000
|
+
function traverse(value, depth, currentDepth = 0, seen) {
|
|
2001
2001
|
if (!shared.isObject(value) || value["__v_skip"]) {
|
|
2002
2002
|
return value;
|
|
2003
2003
|
}
|
|
2004
|
+
if (depth && depth > 0) {
|
|
2005
|
+
if (currentDepth >= depth) {
|
|
2006
|
+
return value;
|
|
2007
|
+
}
|
|
2008
|
+
currentDepth++;
|
|
2009
|
+
}
|
|
2004
2010
|
seen = seen || /* @__PURE__ */ new Set();
|
|
2005
2011
|
if (seen.has(value)) {
|
|
2006
2012
|
return value;
|
|
2007
2013
|
}
|
|
2008
2014
|
seen.add(value);
|
|
2009
2015
|
if (reactivity.isRef(value)) {
|
|
2010
|
-
traverse(value.value, seen);
|
|
2016
|
+
traverse(value.value, depth, currentDepth, seen);
|
|
2011
2017
|
} else if (shared.isArray(value)) {
|
|
2012
2018
|
for (let i = 0; i < value.length; i++) {
|
|
2013
|
-
traverse(value[i], seen);
|
|
2019
|
+
traverse(value[i], depth, currentDepth, seen);
|
|
2014
2020
|
}
|
|
2015
2021
|
} else if (shared.isSet(value) || shared.isMap(value)) {
|
|
2016
2022
|
value.forEach((v) => {
|
|
2017
|
-
traverse(v, seen);
|
|
2023
|
+
traverse(v, depth, currentDepth, seen);
|
|
2018
2024
|
});
|
|
2019
2025
|
} else if (shared.isPlainObject(value)) {
|
|
2020
2026
|
for (const key in value) {
|
|
2021
|
-
traverse(value[key], seen);
|
|
2027
|
+
traverse(value[key], depth, currentDepth, seen);
|
|
2022
2028
|
}
|
|
2023
2029
|
}
|
|
2024
2030
|
return value;
|
|
@@ -7979,7 +7985,7 @@ function isMemoSame(cached, memo) {
|
|
|
7979
7985
|
return true;
|
|
7980
7986
|
}
|
|
7981
7987
|
|
|
7982
|
-
const version = "3.4.
|
|
7988
|
+
const version = "3.4.3";
|
|
7983
7989
|
const warn = warn$1 ;
|
|
7984
7990
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
7985
7991
|
const devtools = devtools$1 ;
|
|
@@ -1268,8 +1268,8 @@ function doWatch(source, cb, {
|
|
|
1268
1268
|
getter = () => source.value;
|
|
1269
1269
|
forceTrigger = reactivity.isShallow(source);
|
|
1270
1270
|
} else if (reactivity.isReactive(source)) {
|
|
1271
|
-
getter = () => source;
|
|
1272
|
-
|
|
1271
|
+
getter = reactivity.isShallow(source) || deep === false ? () => traverse(source, 1) : () => traverse(source);
|
|
1272
|
+
forceTrigger = true;
|
|
1273
1273
|
} else if (shared.isArray(source)) {
|
|
1274
1274
|
isMultiSource = true;
|
|
1275
1275
|
forceTrigger = source.some((s) => reactivity.isReactive(s) || reactivity.isShallow(s));
|
|
@@ -1277,7 +1277,7 @@ function doWatch(source, cb, {
|
|
|
1277
1277
|
if (reactivity.isRef(s)) {
|
|
1278
1278
|
return s.value;
|
|
1279
1279
|
} else if (reactivity.isReactive(s)) {
|
|
1280
|
-
return traverse(s);
|
|
1280
|
+
return traverse(s, reactivity.isShallow(s) || deep === false ? 1 : void 0);
|
|
1281
1281
|
} else if (shared.isFunction(s)) {
|
|
1282
1282
|
return callWithErrorHandling(s, instance, 2);
|
|
1283
1283
|
} else ;
|
|
@@ -1424,28 +1424,34 @@ function createPathGetter(ctx, path) {
|
|
|
1424
1424
|
return cur;
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
function traverse(value, seen) {
|
|
1427
|
+
function traverse(value, depth, currentDepth = 0, seen) {
|
|
1428
1428
|
if (!shared.isObject(value) || value["__v_skip"]) {
|
|
1429
1429
|
return value;
|
|
1430
1430
|
}
|
|
1431
|
+
if (depth && depth > 0) {
|
|
1432
|
+
if (currentDepth >= depth) {
|
|
1433
|
+
return value;
|
|
1434
|
+
}
|
|
1435
|
+
currentDepth++;
|
|
1436
|
+
}
|
|
1431
1437
|
seen = seen || /* @__PURE__ */ new Set();
|
|
1432
1438
|
if (seen.has(value)) {
|
|
1433
1439
|
return value;
|
|
1434
1440
|
}
|
|
1435
1441
|
seen.add(value);
|
|
1436
1442
|
if (reactivity.isRef(value)) {
|
|
1437
|
-
traverse(value.value, seen);
|
|
1443
|
+
traverse(value.value, depth, currentDepth, seen);
|
|
1438
1444
|
} else if (shared.isArray(value)) {
|
|
1439
1445
|
for (let i = 0; i < value.length; i++) {
|
|
1440
|
-
traverse(value[i], seen);
|
|
1446
|
+
traverse(value[i], depth, currentDepth, seen);
|
|
1441
1447
|
}
|
|
1442
1448
|
} else if (shared.isSet(value) || shared.isMap(value)) {
|
|
1443
1449
|
value.forEach((v) => {
|
|
1444
|
-
traverse(v, seen);
|
|
1450
|
+
traverse(v, depth, currentDepth, seen);
|
|
1445
1451
|
});
|
|
1446
1452
|
} else if (shared.isPlainObject(value)) {
|
|
1447
1453
|
for (const key in value) {
|
|
1448
|
-
traverse(value[key], seen);
|
|
1454
|
+
traverse(value[key], depth, currentDepth, seen);
|
|
1449
1455
|
}
|
|
1450
1456
|
}
|
|
1451
1457
|
return value;
|
|
@@ -6247,7 +6253,7 @@ function isMemoSame(cached, memo) {
|
|
|
6247
6253
|
return true;
|
|
6248
6254
|
}
|
|
6249
6255
|
|
|
6250
|
-
const version = "3.4.
|
|
6256
|
+
const version = "3.4.3";
|
|
6251
6257
|
const warn$1 = shared.NOOP;
|
|
6252
6258
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6253
6259
|
const devtools = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pauseTracking, resetTracking, isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, customRef, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';
|
|
2
2
|
export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
|
-
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber,
|
|
3
|
+
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber, isSet, isMap, isPlainObject, hasChanged, remove, isBuiltInDirective, invokeArrayFns, isRegExp, isGloballyAllowed, NO, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
const stack = [];
|
|
@@ -1836,8 +1836,8 @@ function doWatch(source, cb, {
|
|
|
1836
1836
|
getter = () => source.value;
|
|
1837
1837
|
forceTrigger = isShallow$1(source);
|
|
1838
1838
|
} else if (isReactive(source)) {
|
|
1839
|
-
getter = () => source;
|
|
1840
|
-
|
|
1839
|
+
getter = isShallow$1(source) || deep === false ? () => traverse(source, 1) : () => traverse(source);
|
|
1840
|
+
forceTrigger = true;
|
|
1841
1841
|
} else if (isArray(source)) {
|
|
1842
1842
|
isMultiSource = true;
|
|
1843
1843
|
forceTrigger = source.some((s) => isReactive(s) || isShallow$1(s));
|
|
@@ -1845,7 +1845,7 @@ function doWatch(source, cb, {
|
|
|
1845
1845
|
if (isRef(s)) {
|
|
1846
1846
|
return s.value;
|
|
1847
1847
|
} else if (isReactive(s)) {
|
|
1848
|
-
return traverse(s);
|
|
1848
|
+
return traverse(s, isShallow$1(s) || deep === false ? 1 : void 0);
|
|
1849
1849
|
} else if (isFunction(s)) {
|
|
1850
1850
|
return callWithErrorHandling(s, instance, 2);
|
|
1851
1851
|
} else {
|
|
@@ -1999,28 +1999,34 @@ function createPathGetter(ctx, path) {
|
|
|
1999
1999
|
return cur;
|
|
2000
2000
|
};
|
|
2001
2001
|
}
|
|
2002
|
-
function traverse(value, seen) {
|
|
2002
|
+
function traverse(value, depth, currentDepth = 0, seen) {
|
|
2003
2003
|
if (!isObject(value) || value["__v_skip"]) {
|
|
2004
2004
|
return value;
|
|
2005
2005
|
}
|
|
2006
|
+
if (depth && depth > 0) {
|
|
2007
|
+
if (currentDepth >= depth) {
|
|
2008
|
+
return value;
|
|
2009
|
+
}
|
|
2010
|
+
currentDepth++;
|
|
2011
|
+
}
|
|
2006
2012
|
seen = seen || /* @__PURE__ */ new Set();
|
|
2007
2013
|
if (seen.has(value)) {
|
|
2008
2014
|
return value;
|
|
2009
2015
|
}
|
|
2010
2016
|
seen.add(value);
|
|
2011
2017
|
if (isRef(value)) {
|
|
2012
|
-
traverse(value.value, seen);
|
|
2018
|
+
traverse(value.value, depth, currentDepth, seen);
|
|
2013
2019
|
} else if (isArray(value)) {
|
|
2014
2020
|
for (let i = 0; i < value.length; i++) {
|
|
2015
|
-
traverse(value[i], seen);
|
|
2021
|
+
traverse(value[i], depth, currentDepth, seen);
|
|
2016
2022
|
}
|
|
2017
2023
|
} else if (isSet(value) || isMap(value)) {
|
|
2018
2024
|
value.forEach((v) => {
|
|
2019
|
-
traverse(v, seen);
|
|
2025
|
+
traverse(v, depth, currentDepth, seen);
|
|
2020
2026
|
});
|
|
2021
2027
|
} else if (isPlainObject(value)) {
|
|
2022
2028
|
for (const key in value) {
|
|
2023
|
-
traverse(value[key], seen);
|
|
2029
|
+
traverse(value[key], depth, currentDepth, seen);
|
|
2024
2030
|
}
|
|
2025
2031
|
}
|
|
2026
2032
|
return value;
|
|
@@ -8051,7 +8057,7 @@ function isMemoSame(cached, memo) {
|
|
|
8051
8057
|
return true;
|
|
8052
8058
|
}
|
|
8053
8059
|
|
|
8054
|
-
const version = "3.4.
|
|
8060
|
+
const version = "3.4.3";
|
|
8055
8061
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8056
8062
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8057
8063
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.4.
|
|
36
|
-
"@vue/reactivity": "3.4.
|
|
35
|
+
"@vue/shared": "3.4.3",
|
|
36
|
+
"@vue/reactivity": "3.4.3"
|
|
37
37
|
}
|
|
38
38
|
}
|