@vue/runtime-core 3.4.15 → 3.4.17
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3958,11 +3958,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
3958
3958
|
return app;
|
|
3959
3959
|
},
|
|
3960
3960
|
runWithContext(fn) {
|
|
3961
|
+
const lastApp = currentApp;
|
|
3961
3962
|
currentApp = app;
|
|
3962
3963
|
try {
|
|
3963
3964
|
return fn();
|
|
3964
3965
|
} finally {
|
|
3965
|
-
currentApp =
|
|
3966
|
+
currentApp = lastApp;
|
|
3966
3967
|
}
|
|
3967
3968
|
}
|
|
3968
3969
|
};
|
|
@@ -4543,10 +4544,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4543
4544
|
} else {
|
|
4544
4545
|
const _isString = shared.isString(ref);
|
|
4545
4546
|
const _isRef = reactivity.isRef(ref);
|
|
4546
|
-
const isVFor = rawRef.f;
|
|
4547
4547
|
if (_isString || _isRef) {
|
|
4548
4548
|
const doSet = () => {
|
|
4549
|
-
if (
|
|
4549
|
+
if (rawRef.f) {
|
|
4550
4550
|
const existing = _isString ? shared.hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4551
4551
|
if (isUnmount) {
|
|
4552
4552
|
shared.isArray(existing) && shared.remove(existing, refValue);
|
|
@@ -4579,11 +4579,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4579
4579
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
4580
4580
|
}
|
|
4581
4581
|
};
|
|
4582
|
-
if (
|
|
4583
|
-
doSet();
|
|
4584
|
-
} else {
|
|
4582
|
+
if (value) {
|
|
4585
4583
|
doSet.id = -1;
|
|
4586
4584
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
4585
|
+
} else {
|
|
4586
|
+
doSet();
|
|
4587
4587
|
}
|
|
4588
4588
|
} else {
|
|
4589
4589
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -4882,7 +4882,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4882
4882
|
if (props) {
|
|
4883
4883
|
{
|
|
4884
4884
|
for (const key in props) {
|
|
4885
|
-
if (propHasMismatch(el, key, props[key], vnode)) {
|
|
4885
|
+
if (propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
4886
4886
|
hasMismatch = true;
|
|
4887
4887
|
}
|
|
4888
4888
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || shared.isOn(key) && !shared.isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -5057,7 +5057,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5057
5057
|
};
|
|
5058
5058
|
return [hydrate, hydrateNode];
|
|
5059
5059
|
}
|
|
5060
|
-
function propHasMismatch(el, key, clientValue, vnode) {
|
|
5060
|
+
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
5061
|
+
var _a;
|
|
5061
5062
|
let mismatchType;
|
|
5062
5063
|
let mismatchKey;
|
|
5063
5064
|
let actual;
|
|
@@ -5080,6 +5081,10 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5080
5081
|
}
|
|
5081
5082
|
}
|
|
5082
5083
|
}
|
|
5084
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
5085
|
+
for (const key2 in cssVars) {
|
|
5086
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
5087
|
+
}
|
|
5083
5088
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
5084
5089
|
mismatchType = mismatchKey = "style";
|
|
5085
5090
|
}
|
|
@@ -7862,10 +7867,6 @@ function h(type, propsOrChildren, children) {
|
|
|
7862
7867
|
}
|
|
7863
7868
|
}
|
|
7864
7869
|
|
|
7865
|
-
function isShallow(value) {
|
|
7866
|
-
return !!(value && value["__v_isShallow"]);
|
|
7867
|
-
}
|
|
7868
|
-
|
|
7869
7870
|
function initCustomFormatter() {
|
|
7870
7871
|
if (typeof window === "undefined") {
|
|
7871
7872
|
return;
|
|
@@ -7894,7 +7895,7 @@ function initCustomFormatter() {
|
|
|
7894
7895
|
return [
|
|
7895
7896
|
"div",
|
|
7896
7897
|
{},
|
|
7897
|
-
["span", vueStyle, isShallow(obj) ? "ShallowReactive" : "Reactive"],
|
|
7898
|
+
["span", vueStyle, reactivity.isShallow(obj) ? "ShallowReactive" : "Reactive"],
|
|
7898
7899
|
"<",
|
|
7899
7900
|
formatValue(obj),
|
|
7900
7901
|
`>${reactivity.isReadonly(obj) ? ` (readonly)` : ``}`
|
|
@@ -7903,7 +7904,7 @@ function initCustomFormatter() {
|
|
|
7903
7904
|
return [
|
|
7904
7905
|
"div",
|
|
7905
7906
|
{},
|
|
7906
|
-
["span", vueStyle, isShallow(obj) ? "ShallowReadonly" : "Readonly"],
|
|
7907
|
+
["span", vueStyle, reactivity.isShallow(obj) ? "ShallowReadonly" : "Readonly"],
|
|
7907
7908
|
"<",
|
|
7908
7909
|
formatValue(obj),
|
|
7909
7910
|
">"
|
|
@@ -8027,7 +8028,7 @@ function initCustomFormatter() {
|
|
|
8027
8028
|
}
|
|
8028
8029
|
}
|
|
8029
8030
|
function genRefFlag(v) {
|
|
8030
|
-
if (isShallow(v)) {
|
|
8031
|
+
if (reactivity.isShallow(v)) {
|
|
8031
8032
|
return `ShallowRef`;
|
|
8032
8033
|
}
|
|
8033
8034
|
if (v.effect) {
|
|
@@ -8067,7 +8068,7 @@ function isMemoSame(cached, memo) {
|
|
|
8067
8068
|
return true;
|
|
8068
8069
|
}
|
|
8069
8070
|
|
|
8070
|
-
const version = "3.4.
|
|
8071
|
+
const version = "3.4.17";
|
|
8071
8072
|
const warn = warn$1 ;
|
|
8072
8073
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8073
8074
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3041,11 +3041,12 @@ function createAppAPI(render, hydrate) {
|
|
|
3041
3041
|
return app;
|
|
3042
3042
|
},
|
|
3043
3043
|
runWithContext(fn) {
|
|
3044
|
+
const lastApp = currentApp;
|
|
3044
3045
|
currentApp = app;
|
|
3045
3046
|
try {
|
|
3046
3047
|
return fn();
|
|
3047
3048
|
} finally {
|
|
3048
|
-
currentApp =
|
|
3049
|
+
currentApp = lastApp;
|
|
3049
3050
|
}
|
|
3050
3051
|
}
|
|
3051
3052
|
};
|
|
@@ -3471,10 +3472,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3471
3472
|
} else {
|
|
3472
3473
|
const _isString = shared.isString(ref);
|
|
3473
3474
|
const _isRef = reactivity.isRef(ref);
|
|
3474
|
-
const isVFor = rawRef.f;
|
|
3475
3475
|
if (_isString || _isRef) {
|
|
3476
3476
|
const doSet = () => {
|
|
3477
|
-
if (
|
|
3477
|
+
if (rawRef.f) {
|
|
3478
3478
|
const existing = _isString ? shared.hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
3479
3479
|
if (isUnmount) {
|
|
3480
3480
|
shared.isArray(existing) && shared.remove(existing, refValue);
|
|
@@ -3505,11 +3505,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3505
3505
|
refs[rawRef.k] = value;
|
|
3506
3506
|
} else ;
|
|
3507
3507
|
};
|
|
3508
|
-
if (
|
|
3509
|
-
doSet();
|
|
3510
|
-
} else {
|
|
3508
|
+
if (value) {
|
|
3511
3509
|
doSet.id = -1;
|
|
3512
3510
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
3511
|
+
} else {
|
|
3512
|
+
doSet();
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
3515
|
}
|
|
@@ -6279,7 +6279,7 @@ function isMemoSame(cached, memo) {
|
|
|
6279
6279
|
return true;
|
|
6280
6280
|
}
|
|
6281
6281
|
|
|
6282
|
-
const version = "3.4.
|
|
6282
|
+
const version = "3.4.17";
|
|
6283
6283
|
const warn$1 = shared.NOOP;
|
|
6284
6284
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6285
6285
|
const devtools = void 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
import { pauseTracking, resetTracking, isRef, toRaw, isShallow
|
|
6
|
+
import { pauseTracking, resetTracking, isRef, toRaw, isShallow, isReactive, ReactiveEffect, getCurrentScope, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, customRef, isReadonly } from '@vue/reactivity';
|
|
7
7
|
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';
|
|
8
8
|
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber, hasChanged, remove, isSet, isMap, isPlainObject, isBuiltInDirective, invokeArrayFns, isRegExp, isGloballyAllowed, NO, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue } from '@vue/shared';
|
|
9
9
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
@@ -1861,13 +1861,13 @@ function doWatch(source, cb, {
|
|
|
1861
1861
|
let isMultiSource = false;
|
|
1862
1862
|
if (isRef(source)) {
|
|
1863
1863
|
getter = () => source.value;
|
|
1864
|
-
forceTrigger = isShallow
|
|
1864
|
+
forceTrigger = isShallow(source);
|
|
1865
1865
|
} else if (isReactive(source)) {
|
|
1866
1866
|
getter = () => reactiveGetter(source);
|
|
1867
1867
|
forceTrigger = true;
|
|
1868
1868
|
} else if (isArray(source)) {
|
|
1869
1869
|
isMultiSource = true;
|
|
1870
|
-
forceTrigger = source.some((s) => isReactive(s) || isShallow
|
|
1870
|
+
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
1871
1871
|
getter = () => source.map((s) => {
|
|
1872
1872
|
if (isRef(s)) {
|
|
1873
1873
|
return s.value;
|
|
@@ -3966,11 +3966,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
3966
3966
|
return app;
|
|
3967
3967
|
},
|
|
3968
3968
|
runWithContext(fn) {
|
|
3969
|
+
const lastApp = currentApp;
|
|
3969
3970
|
currentApp = app;
|
|
3970
3971
|
try {
|
|
3971
3972
|
return fn();
|
|
3972
3973
|
} finally {
|
|
3973
|
-
currentApp =
|
|
3974
|
+
currentApp = lastApp;
|
|
3974
3975
|
}
|
|
3975
3976
|
}
|
|
3976
3977
|
};
|
|
@@ -4551,10 +4552,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4551
4552
|
} else {
|
|
4552
4553
|
const _isString = isString(ref);
|
|
4553
4554
|
const _isRef = isRef(ref);
|
|
4554
|
-
const isVFor = rawRef.f;
|
|
4555
4555
|
if (_isString || _isRef) {
|
|
4556
4556
|
const doSet = () => {
|
|
4557
|
-
if (
|
|
4557
|
+
if (rawRef.f) {
|
|
4558
4558
|
const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4559
4559
|
if (isUnmount) {
|
|
4560
4560
|
isArray(existing) && remove(existing, refValue);
|
|
@@ -4587,11 +4587,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4587
4587
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
|
-
if (
|
|
4591
|
-
doSet();
|
|
4592
|
-
} else {
|
|
4590
|
+
if (value) {
|
|
4593
4591
|
doSet.id = -1;
|
|
4594
4592
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
4593
|
+
} else {
|
|
4594
|
+
doSet();
|
|
4595
4595
|
}
|
|
4596
4596
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4597
4597
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -4890,7 +4890,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4890
4890
|
if (props) {
|
|
4891
4891
|
if (!!(process.env.NODE_ENV !== "production") || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
4892
4892
|
for (const key in props) {
|
|
4893
|
-
if (!!(process.env.NODE_ENV !== "production") && propHasMismatch(el, key, props[key], vnode)) {
|
|
4893
|
+
if (!!(process.env.NODE_ENV !== "production") && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
4894
4894
|
hasMismatch = true;
|
|
4895
4895
|
}
|
|
4896
4896
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -5075,7 +5075,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5075
5075
|
};
|
|
5076
5076
|
return [hydrate, hydrateNode];
|
|
5077
5077
|
}
|
|
5078
|
-
function propHasMismatch(el, key, clientValue, vnode) {
|
|
5078
|
+
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
5079
|
+
var _a;
|
|
5079
5080
|
let mismatchType;
|
|
5080
5081
|
let mismatchKey;
|
|
5081
5082
|
let actual;
|
|
@@ -5098,6 +5099,10 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5098
5099
|
}
|
|
5099
5100
|
}
|
|
5100
5101
|
}
|
|
5102
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
5103
|
+
for (const key2 in cssVars) {
|
|
5104
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
5105
|
+
}
|
|
5101
5106
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
5102
5107
|
mismatchType = mismatchKey = "style";
|
|
5103
5108
|
}
|
|
@@ -7934,10 +7939,6 @@ function h(type, propsOrChildren, children) {
|
|
|
7934
7939
|
}
|
|
7935
7940
|
}
|
|
7936
7941
|
|
|
7937
|
-
function isShallow(value) {
|
|
7938
|
-
return !!(value && value["__v_isShallow"]);
|
|
7939
|
-
}
|
|
7940
|
-
|
|
7941
7942
|
function initCustomFormatter() {
|
|
7942
7943
|
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
7943
7944
|
return;
|
|
@@ -8139,7 +8140,7 @@ function isMemoSame(cached, memo) {
|
|
|
8139
8140
|
return true;
|
|
8140
8141
|
}
|
|
8141
8142
|
|
|
8142
|
-
const version = "3.4.
|
|
8143
|
+
const version = "3.4.17";
|
|
8143
8144
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8144
8145
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8145
8146
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? 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.17",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.4.
|
|
50
|
-
"@vue/reactivity": "3.4.
|
|
49
|
+
"@vue/shared": "3.4.17",
|
|
50
|
+
"@vue/reactivity": "3.4.17"
|
|
51
51
|
}
|
|
52
52
|
}
|