@vue/runtime-core 3.4.14 → 3.4.15
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.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4407,7 +4407,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
4407
4407
|
return rawSlot;
|
|
4408
4408
|
}
|
|
4409
4409
|
const normalized = withCtx((...args) => {
|
|
4410
|
-
if (currentInstance) {
|
|
4410
|
+
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
|
|
4411
4411
|
warn$1(
|
|
4412
4412
|
`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
4413
|
);
|
|
@@ -4543,9 +4543,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4543
4543
|
} else {
|
|
4544
4544
|
const _isString = shared.isString(ref);
|
|
4545
4545
|
const _isRef = reactivity.isRef(ref);
|
|
4546
|
+
const isVFor = rawRef.f;
|
|
4546
4547
|
if (_isString || _isRef) {
|
|
4547
4548
|
const doSet = () => {
|
|
4548
|
-
if (
|
|
4549
|
+
if (isVFor) {
|
|
4549
4550
|
const existing = _isString ? shared.hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4550
4551
|
if (isUnmount) {
|
|
4551
4552
|
shared.isArray(existing) && shared.remove(existing, refValue);
|
|
@@ -4578,11 +4579,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4578
4579
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
4579
4580
|
}
|
|
4580
4581
|
};
|
|
4581
|
-
if (
|
|
4582
|
+
if (isUnmount || isVFor) {
|
|
4583
|
+
doSet();
|
|
4584
|
+
} else {
|
|
4582
4585
|
doSet.id = -1;
|
|
4583
4586
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
4584
|
-
} else {
|
|
4585
|
-
doSet();
|
|
4586
4587
|
}
|
|
4587
4588
|
} else {
|
|
4588
4589
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -5092,11 +5093,12 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5092
5093
|
} else {
|
|
5093
5094
|
if (el.hasAttribute(key)) {
|
|
5094
5095
|
actual = el.getAttribute(key);
|
|
5096
|
+
} else if (key === "value" && el.tagName === "TEXTAREA") {
|
|
5097
|
+
actual = el.value;
|
|
5095
5098
|
} else {
|
|
5096
|
-
|
|
5097
|
-
actual = shared.isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
5099
|
+
actual = false;
|
|
5098
5100
|
}
|
|
5099
|
-
expected = shared.
|
|
5101
|
+
expected = shared.isRenderableAttrValue(clientValue) ? String(clientValue) : false;
|
|
5100
5102
|
}
|
|
5101
5103
|
if (actual !== expected) {
|
|
5102
5104
|
mismatchType = `attribute`;
|
|
@@ -8065,7 +8067,7 @@ function isMemoSame(cached, memo) {
|
|
|
8065
8067
|
return true;
|
|
8066
8068
|
}
|
|
8067
8069
|
|
|
8068
|
-
const version = "3.4.
|
|
8070
|
+
const version = "3.4.15";
|
|
8069
8071
|
const warn = warn$1 ;
|
|
8070
8072
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8071
8073
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.15
|
|
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) {
|
|
@@ -3471,9 +3471,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3471
3471
|
} else {
|
|
3472
3472
|
const _isString = shared.isString(ref);
|
|
3473
3473
|
const _isRef = reactivity.isRef(ref);
|
|
3474
|
+
const isVFor = rawRef.f;
|
|
3474
3475
|
if (_isString || _isRef) {
|
|
3475
3476
|
const doSet = () => {
|
|
3476
|
-
if (
|
|
3477
|
+
if (isVFor) {
|
|
3477
3478
|
const existing = _isString ? shared.hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
3478
3479
|
if (isUnmount) {
|
|
3479
3480
|
shared.isArray(existing) && shared.remove(existing, refValue);
|
|
@@ -3504,11 +3505,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3504
3505
|
refs[rawRef.k] = value;
|
|
3505
3506
|
} else ;
|
|
3506
3507
|
};
|
|
3507
|
-
if (
|
|
3508
|
+
if (isUnmount || isVFor) {
|
|
3509
|
+
doSet();
|
|
3510
|
+
} else {
|
|
3508
3511
|
doSet.id = -1;
|
|
3509
3512
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
3510
|
-
} else {
|
|
3511
|
-
doSet();
|
|
3512
3513
|
}
|
|
3513
3514
|
}
|
|
3514
3515
|
}
|
|
@@ -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.15";
|
|
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.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, 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) {
|
|
@@ -4415,7 +4415,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
4415
4415
|
return rawSlot;
|
|
4416
4416
|
}
|
|
4417
4417
|
const normalized = withCtx((...args) => {
|
|
4418
|
-
if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
|
|
4418
|
+
if (!!(process.env.NODE_ENV !== "production") && currentInstance && (!ctx || ctx.root === currentInstance.root)) {
|
|
4419
4419
|
warn$1(
|
|
4420
4420
|
`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
4421
|
);
|
|
@@ -4551,9 +4551,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4551
4551
|
} else {
|
|
4552
4552
|
const _isString = isString(ref);
|
|
4553
4553
|
const _isRef = isRef(ref);
|
|
4554
|
+
const isVFor = rawRef.f;
|
|
4554
4555
|
if (_isString || _isRef) {
|
|
4555
4556
|
const doSet = () => {
|
|
4556
|
-
if (
|
|
4557
|
+
if (isVFor) {
|
|
4557
4558
|
const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4558
4559
|
if (isUnmount) {
|
|
4559
4560
|
isArray(existing) && remove(existing, refValue);
|
|
@@ -4586,11 +4587,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4586
4587
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
4587
4588
|
}
|
|
4588
4589
|
};
|
|
4589
|
-
if (
|
|
4590
|
+
if (isUnmount || isVFor) {
|
|
4591
|
+
doSet();
|
|
4592
|
+
} else {
|
|
4590
4593
|
doSet.id = -1;
|
|
4591
4594
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
4592
|
-
} else {
|
|
4593
|
-
doSet();
|
|
4594
4595
|
}
|
|
4595
4596
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4596
4597
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -5110,11 +5111,12 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
5110
5111
|
} else {
|
|
5111
5112
|
if (el.hasAttribute(key)) {
|
|
5112
5113
|
actual = el.getAttribute(key);
|
|
5114
|
+
} else if (key === "value" && el.tagName === "TEXTAREA") {
|
|
5115
|
+
actual = el.value;
|
|
5113
5116
|
} else {
|
|
5114
|
-
|
|
5115
|
-
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
5117
|
+
actual = false;
|
|
5116
5118
|
}
|
|
5117
|
-
expected =
|
|
5119
|
+
expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false;
|
|
5118
5120
|
}
|
|
5119
5121
|
if (actual !== expected) {
|
|
5120
5122
|
mismatchType = `attribute`;
|
|
@@ -8137,7 +8139,7 @@ function isMemoSame(cached, memo) {
|
|
|
8137
8139
|
return true;
|
|
8138
8140
|
}
|
|
8139
8141
|
|
|
8140
|
-
const version = "3.4.
|
|
8142
|
+
const version = "3.4.15";
|
|
8141
8143
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8142
8144
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8143
8145
|
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.15",
|
|
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.15",
|
|
50
|
+
"@vue/reactivity": "3.4.15"
|
|
51
51
|
}
|
|
52
52
|
}
|