@vue/runtime-core 3.4.14 → 3.4.16
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.16
|
|
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
|
};
|
|
@@ -4407,7 +4408,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
4407
4408
|
return rawSlot;
|
|
4408
4409
|
}
|
|
4409
4410
|
const normalized = withCtx((...args) => {
|
|
4410
|
-
if (currentInstance) {
|
|
4411
|
+
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
|
|
4411
4412
|
warn$1(
|
|
4412
4413
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
4413
4414
|
);
|
|
@@ -4881,7 +4882,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4881
4882
|
if (props) {
|
|
4882
4883
|
{
|
|
4883
4884
|
for (const key in props) {
|
|
4884
|
-
if (propHasMismatch(el, key, props[key], vnode)) {
|
|
4885
|
+
if (propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
4885
4886
|
hasMismatch = true;
|
|
4886
4887
|
}
|
|
4887
4888
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || shared.isOn(key) && !shared.isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -5056,7 +5057,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5056
5057
|
};
|
|
5057
5058
|
return [hydrate, hydrateNode];
|
|
5058
5059
|
}
|
|
5059
|
-
function propHasMismatch(el, key, clientValue, vnode) {
|
|
5060
|
+
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
5061
|
+
var _a;
|
|
5060
5062
|
let mismatchType;
|
|
5061
5063
|
let mismatchKey;
|
|
5062
5064
|
let actual;
|
|
@@ -5079,6 +5081,10 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5079
5081
|
}
|
|
5080
5082
|
}
|
|
5081
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
|
+
}
|
|
5082
5088
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
5083
5089
|
mismatchType = mismatchKey = "style";
|
|
5084
5090
|
}
|
|
@@ -5092,11 +5098,12 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5092
5098
|
} else {
|
|
5093
5099
|
if (el.hasAttribute(key)) {
|
|
5094
5100
|
actual = el.getAttribute(key);
|
|
5101
|
+
} else if (key === "value" && el.tagName === "TEXTAREA") {
|
|
5102
|
+
actual = el.value;
|
|
5095
5103
|
} else {
|
|
5096
|
-
|
|
5097
|
-
actual = shared.isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
5104
|
+
actual = false;
|
|
5098
5105
|
}
|
|
5099
|
-
expected = shared.
|
|
5106
|
+
expected = shared.isRenderableAttrValue(clientValue) ? String(clientValue) : false;
|
|
5100
5107
|
}
|
|
5101
5108
|
if (actual !== expected) {
|
|
5102
5109
|
mismatchType = `attribute`;
|
|
@@ -7860,10 +7867,6 @@ function h(type, propsOrChildren, children) {
|
|
|
7860
7867
|
}
|
|
7861
7868
|
}
|
|
7862
7869
|
|
|
7863
|
-
function isShallow(value) {
|
|
7864
|
-
return !!(value && value["__v_isShallow"]);
|
|
7865
|
-
}
|
|
7866
|
-
|
|
7867
7870
|
function initCustomFormatter() {
|
|
7868
7871
|
if (typeof window === "undefined") {
|
|
7869
7872
|
return;
|
|
@@ -7892,7 +7895,7 @@ function initCustomFormatter() {
|
|
|
7892
7895
|
return [
|
|
7893
7896
|
"div",
|
|
7894
7897
|
{},
|
|
7895
|
-
["span", vueStyle, isShallow(obj) ? "ShallowReactive" : "Reactive"],
|
|
7898
|
+
["span", vueStyle, reactivity.isShallow(obj) ? "ShallowReactive" : "Reactive"],
|
|
7896
7899
|
"<",
|
|
7897
7900
|
formatValue(obj),
|
|
7898
7901
|
`>${reactivity.isReadonly(obj) ? ` (readonly)` : ``}`
|
|
@@ -7901,7 +7904,7 @@ function initCustomFormatter() {
|
|
|
7901
7904
|
return [
|
|
7902
7905
|
"div",
|
|
7903
7906
|
{},
|
|
7904
|
-
["span", vueStyle, isShallow(obj) ? "ShallowReadonly" : "Readonly"],
|
|
7907
|
+
["span", vueStyle, reactivity.isShallow(obj) ? "ShallowReadonly" : "Readonly"],
|
|
7905
7908
|
"<",
|
|
7906
7909
|
formatValue(obj),
|
|
7907
7910
|
">"
|
|
@@ -8025,7 +8028,7 @@ function initCustomFormatter() {
|
|
|
8025
8028
|
}
|
|
8026
8029
|
}
|
|
8027
8030
|
function genRefFlag(v) {
|
|
8028
|
-
if (isShallow(v)) {
|
|
8031
|
+
if (reactivity.isShallow(v)) {
|
|
8029
8032
|
return `ShallowRef`;
|
|
8030
8033
|
}
|
|
8031
8034
|
if (v.effect) {
|
|
@@ -8065,7 +8068,7 @@ function isMemoSame(cached, memo) {
|
|
|
8065
8068
|
return true;
|
|
8066
8069
|
}
|
|
8067
8070
|
|
|
8068
|
-
const version = "3.4.
|
|
8071
|
+
const version = "3.4.16";
|
|
8069
8072
|
const warn = warn$1 ;
|
|
8070
8073
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8071
8074
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.16
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -107,7 +107,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
107
107
|
if (instance) {
|
|
108
108
|
let cur = instance.parent;
|
|
109
109
|
const exposedInstance = instance.proxy;
|
|
110
|
-
const errorInfo = `https://vuejs.org/
|
|
110
|
+
const errorInfo = `https://vuejs.org/error-reference/#runtime-${type}`;
|
|
111
111
|
while (cur) {
|
|
112
112
|
const errorCapturedHooks = cur.ec;
|
|
113
113
|
if (errorCapturedHooks) {
|
|
@@ -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
|
};
|
|
@@ -6278,7 +6279,7 @@ function isMemoSame(cached, memo) {
|
|
|
6278
6279
|
return true;
|
|
6279
6280
|
}
|
|
6280
6281
|
|
|
6281
|
-
const version = "3.4.
|
|
6282
|
+
const version = "3.4.16";
|
|
6282
6283
|
const warn$1 = shared.NOOP;
|
|
6283
6284
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6284
6285
|
const devtools = void 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.16
|
|
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
|
-
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 } from '@vue/shared';
|
|
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';
|
|
10
10
|
|
|
11
11
|
const stack = [];
|
|
@@ -217,7 +217,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
217
217
|
if (instance) {
|
|
218
218
|
let cur = instance.parent;
|
|
219
219
|
const exposedInstance = instance.proxy;
|
|
220
|
-
const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings$1[type] : `https://vuejs.org/
|
|
220
|
+
const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`;
|
|
221
221
|
while (cur) {
|
|
222
222
|
const errorCapturedHooks = cur.ec;
|
|
223
223
|
if (errorCapturedHooks) {
|
|
@@ -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
|
};
|
|
@@ -4415,7 +4416,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
4415
4416
|
return rawSlot;
|
|
4416
4417
|
}
|
|
4417
4418
|
const normalized = withCtx((...args) => {
|
|
4418
|
-
if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
|
|
4419
|
+
if (!!(process.env.NODE_ENV !== "production") && currentInstance && (!ctx || ctx.root === currentInstance.root)) {
|
|
4419
4420
|
warn$1(
|
|
4420
4421
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
4421
4422
|
);
|
|
@@ -4889,7 +4890,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4889
4890
|
if (props) {
|
|
4890
4891
|
if (!!(process.env.NODE_ENV !== "production") || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
4891
4892
|
for (const key in props) {
|
|
4892
|
-
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)) {
|
|
4893
4894
|
hasMismatch = true;
|
|
4894
4895
|
}
|
|
4895
4896
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -5074,7 +5075,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5074
5075
|
};
|
|
5075
5076
|
return [hydrate, hydrateNode];
|
|
5076
5077
|
}
|
|
5077
|
-
function propHasMismatch(el, key, clientValue, vnode) {
|
|
5078
|
+
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
5079
|
+
var _a;
|
|
5078
5080
|
let mismatchType;
|
|
5079
5081
|
let mismatchKey;
|
|
5080
5082
|
let actual;
|
|
@@ -5097,6 +5099,10 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5097
5099
|
}
|
|
5098
5100
|
}
|
|
5099
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
|
+
}
|
|
5100
5106
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
5101
5107
|
mismatchType = mismatchKey = "style";
|
|
5102
5108
|
}
|
|
@@ -5110,11 +5116,12 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5110
5116
|
} else {
|
|
5111
5117
|
if (el.hasAttribute(key)) {
|
|
5112
5118
|
actual = el.getAttribute(key);
|
|
5119
|
+
} else if (key === "value" && el.tagName === "TEXTAREA") {
|
|
5120
|
+
actual = el.value;
|
|
5113
5121
|
} else {
|
|
5114
|
-
|
|
5115
|
-
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
5122
|
+
actual = false;
|
|
5116
5123
|
}
|
|
5117
|
-
expected =
|
|
5124
|
+
expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false;
|
|
5118
5125
|
}
|
|
5119
5126
|
if (actual !== expected) {
|
|
5120
5127
|
mismatchType = `attribute`;
|
|
@@ -7932,10 +7939,6 @@ function h(type, propsOrChildren, children) {
|
|
|
7932
7939
|
}
|
|
7933
7940
|
}
|
|
7934
7941
|
|
|
7935
|
-
function isShallow(value) {
|
|
7936
|
-
return !!(value && value["__v_isShallow"]);
|
|
7937
|
-
}
|
|
7938
|
-
|
|
7939
7942
|
function initCustomFormatter() {
|
|
7940
7943
|
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
7941
7944
|
return;
|
|
@@ -8137,7 +8140,7 @@ function isMemoSame(cached, memo) {
|
|
|
8137
8140
|
return true;
|
|
8138
8141
|
}
|
|
8139
8142
|
|
|
8140
|
-
const version = "3.4.
|
|
8143
|
+
const version = "3.4.16";
|
|
8141
8144
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8142
8145
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8143
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.16",
|
|
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.16",
|
|
50
|
+
"@vue/reactivity": "3.4.16"
|
|
51
51
|
}
|
|
52
52
|
}
|