@vue/runtime-core 3.2.27 → 3.2.28
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
|
@@ -149,7 +149,7 @@ const ErrorTypeStrings = {
|
|
|
149
149
|
[12 /* FUNCTION_REF */]: 'ref function',
|
|
150
150
|
[13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
|
|
151
151
|
[14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
|
|
152
|
-
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/
|
|
152
|
+
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
|
|
153
153
|
};
|
|
154
154
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
155
155
|
let res;
|
|
@@ -1610,7 +1610,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
1610
1610
|
if (instance) {
|
|
1611
1611
|
// #2400
|
|
1612
1612
|
// to support `app.use` plugins,
|
|
1613
|
-
// fallback to appContext's `provides` if the
|
|
1613
|
+
// fallback to appContext's `provides` if the instance is at root
|
|
1614
1614
|
const provides = instance.parent == null
|
|
1615
1615
|
? instance.vnode.appContext && instance.vnode.appContext.provides
|
|
1616
1616
|
: instance.parent.provides;
|
|
@@ -1676,7 +1676,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = sh
|
|
|
1676
1676
|
let isMultiSource = false;
|
|
1677
1677
|
if (reactivity.isRef(source)) {
|
|
1678
1678
|
getter = () => source.value;
|
|
1679
|
-
forceTrigger =
|
|
1679
|
+
forceTrigger = reactivity.isShallow(source);
|
|
1680
1680
|
}
|
|
1681
1681
|
else if (reactivity.isReactive(source)) {
|
|
1682
1682
|
getter = () => source;
|
|
@@ -2568,7 +2568,7 @@ function matches(pattern, name) {
|
|
|
2568
2568
|
return pattern.some((p) => matches(p, name));
|
|
2569
2569
|
}
|
|
2570
2570
|
else if (shared.isString(pattern)) {
|
|
2571
|
-
return pattern.split(',').
|
|
2571
|
+
return pattern.split(',').includes(name);
|
|
2572
2572
|
}
|
|
2573
2573
|
else if (pattern.test) {
|
|
2574
2574
|
return pattern.test(name);
|
|
@@ -2821,7 +2821,7 @@ function applyOptions(instance) {
|
|
|
2821
2821
|
warn(`Write operation failed: computed property "${key}" is readonly.`);
|
|
2822
2822
|
}
|
|
2823
2823
|
;
|
|
2824
|
-
const c =
|
|
2824
|
+
const c = computed({
|
|
2825
2825
|
get,
|
|
2826
2826
|
set
|
|
2827
2827
|
});
|
|
@@ -3220,7 +3220,9 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
3220
3220
|
// attrs point to the same object so it should already have been updated.
|
|
3221
3221
|
if (attrs !== rawCurrentProps) {
|
|
3222
3222
|
for (const key in attrs) {
|
|
3223
|
-
if (!rawProps ||
|
|
3223
|
+
if (!rawProps ||
|
|
3224
|
+
(!shared.hasOwn(rawProps, key) &&
|
|
3225
|
+
(!false ))) {
|
|
3224
3226
|
delete attrs[key];
|
|
3225
3227
|
hasAttrsChanged = true;
|
|
3226
3228
|
}
|
|
@@ -4316,6 +4318,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4316
4318
|
return [hydrate, hydrateNode];
|
|
4317
4319
|
}
|
|
4318
4320
|
|
|
4321
|
+
/* eslint-disable no-restricted-globals */
|
|
4319
4322
|
let supported;
|
|
4320
4323
|
let perf;
|
|
4321
4324
|
function startMeasure(instance, type) {
|
|
@@ -4343,7 +4346,6 @@ function isSupported() {
|
|
|
4343
4346
|
if (supported !== undefined) {
|
|
4344
4347
|
return supported;
|
|
4345
4348
|
}
|
|
4346
|
-
/* eslint-disable no-restricted-globals */
|
|
4347
4349
|
if (typeof window !== 'undefined' && window.performance) {
|
|
4348
4350
|
supported = true;
|
|
4349
4351
|
perf = window.performance;
|
|
@@ -4351,7 +4353,6 @@ function isSupported() {
|
|
|
4351
4353
|
else {
|
|
4352
4354
|
supported = false;
|
|
4353
4355
|
}
|
|
4354
|
-
/* eslint-enable no-restricted-globals */
|
|
4355
4356
|
return supported;
|
|
4356
4357
|
}
|
|
4357
4358
|
|
|
@@ -6228,7 +6229,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
6228
6229
|
shapeFlag: vnode.shapeFlag,
|
|
6229
6230
|
// if the vnode is cloned with extra props, we can no longer assume its
|
|
6230
6231
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
6231
|
-
// note:
|
|
6232
|
+
// note: preserve flag for fragments since they use the flag for children
|
|
6232
6233
|
// fast paths only.
|
|
6233
6234
|
patchFlag: extraProps && vnode.type !== Fragment
|
|
6234
6235
|
? patchFlag === -1 // hoisted node
|
|
@@ -6390,7 +6391,8 @@ function mergeProps(...args) {
|
|
|
6390
6391
|
else if (shared.isOn(key)) {
|
|
6391
6392
|
const existing = ret[key];
|
|
6392
6393
|
const incoming = toMerge[key];
|
|
6393
|
-
if (
|
|
6394
|
+
if (incoming &&
|
|
6395
|
+
existing !== incoming &&
|
|
6394
6396
|
!(shared.isArray(existing) && existing.includes(incoming))) {
|
|
6395
6397
|
ret[key] = existing
|
|
6396
6398
|
? [].concat(existing, incoming)
|
|
@@ -7214,7 +7216,7 @@ function defineEmits() {
|
|
|
7214
7216
|
* instance properties when it is accessed by a parent component via template
|
|
7215
7217
|
* refs.
|
|
7216
7218
|
*
|
|
7217
|
-
* `<script setup>` components are closed by default - i.e.
|
|
7219
|
+
* `<script setup>` components are closed by default - i.e. variables inside
|
|
7218
7220
|
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
|
7219
7221
|
* via `defineExpose`.
|
|
7220
7222
|
*
|
|
@@ -7383,6 +7385,10 @@ const useSSRContext = () => {
|
|
|
7383
7385
|
}
|
|
7384
7386
|
};
|
|
7385
7387
|
|
|
7388
|
+
function isShallow(value) {
|
|
7389
|
+
return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
|
|
7390
|
+
}
|
|
7391
|
+
|
|
7386
7392
|
function initCustomFormatter() {
|
|
7387
7393
|
/* eslint-disable no-restricted-globals */
|
|
7388
7394
|
if (typeof window === 'undefined') {
|
|
@@ -7417,7 +7423,7 @@ function initCustomFormatter() {
|
|
|
7417
7423
|
return [
|
|
7418
7424
|
'div',
|
|
7419
7425
|
{},
|
|
7420
|
-
['span', vueStyle, 'Reactive'],
|
|
7426
|
+
['span', vueStyle, isShallow(obj) ? 'ShallowReactive' : 'Reactive'],
|
|
7421
7427
|
'<',
|
|
7422
7428
|
formatValue(obj),
|
|
7423
7429
|
`>${reactivity.isReadonly(obj) ? ` (readonly)` : ``}`
|
|
@@ -7427,7 +7433,7 @@ function initCustomFormatter() {
|
|
|
7427
7433
|
return [
|
|
7428
7434
|
'div',
|
|
7429
7435
|
{},
|
|
7430
|
-
['span', vueStyle, 'Readonly'],
|
|
7436
|
+
['span', vueStyle, isShallow(obj) ? 'ShallowReadonly' : 'Readonly'],
|
|
7431
7437
|
'<',
|
|
7432
7438
|
formatValue(obj),
|
|
7433
7439
|
'>'
|
|
@@ -7556,7 +7562,7 @@ function initCustomFormatter() {
|
|
|
7556
7562
|
}
|
|
7557
7563
|
}
|
|
7558
7564
|
function genRefFlag(v) {
|
|
7559
|
-
if (v
|
|
7565
|
+
if (isShallow(v)) {
|
|
7560
7566
|
return `ShallowRef`;
|
|
7561
7567
|
}
|
|
7562
7568
|
if (v.effect) {
|
|
@@ -7600,7 +7606,7 @@ function isMemoSame(cached, memo) {
|
|
|
7600
7606
|
}
|
|
7601
7607
|
|
|
7602
7608
|
// Core API ------------------------------------------------------------------
|
|
7603
|
-
const version = "3.2.
|
|
7609
|
+
const version = "3.2.28";
|
|
7604
7610
|
const _ssrUtils = {
|
|
7605
7611
|
createComponentInstance,
|
|
7606
7612
|
setupComponent,
|
|
@@ -7633,6 +7639,7 @@ exports.isProxy = reactivity.isProxy;
|
|
|
7633
7639
|
exports.isReactive = reactivity.isReactive;
|
|
7634
7640
|
exports.isReadonly = reactivity.isReadonly;
|
|
7635
7641
|
exports.isRef = reactivity.isRef;
|
|
7642
|
+
exports.isShallow = reactivity.isShallow;
|
|
7636
7643
|
exports.markRaw = reactivity.markRaw;
|
|
7637
7644
|
exports.onScopeDispose = reactivity.onScopeDispose;
|
|
7638
7645
|
exports.proxyRefs = reactivity.proxyRefs;
|
|
@@ -1170,7 +1170,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
1170
1170
|
if (instance) {
|
|
1171
1171
|
// #2400
|
|
1172
1172
|
// to support `app.use` plugins,
|
|
1173
|
-
// fallback to appContext's `provides` if the
|
|
1173
|
+
// fallback to appContext's `provides` if the instance is at root
|
|
1174
1174
|
const provides = instance.parent == null
|
|
1175
1175
|
? instance.vnode.appContext && instance.vnode.appContext.provides
|
|
1176
1176
|
: instance.parent.provides;
|
|
@@ -1210,7 +1210,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = sh
|
|
|
1210
1210
|
let isMultiSource = false;
|
|
1211
1211
|
if (reactivity.isRef(source)) {
|
|
1212
1212
|
getter = () => source.value;
|
|
1213
|
-
forceTrigger =
|
|
1213
|
+
forceTrigger = reactivity.isShallow(source);
|
|
1214
1214
|
}
|
|
1215
1215
|
else if (reactivity.isReactive(source)) {
|
|
1216
1216
|
getter = () => source;
|
|
@@ -2064,7 +2064,7 @@ function matches(pattern, name) {
|
|
|
2064
2064
|
return pattern.some((p) => matches(p, name));
|
|
2065
2065
|
}
|
|
2066
2066
|
else if (shared.isString(pattern)) {
|
|
2067
|
-
return pattern.split(',').
|
|
2067
|
+
return pattern.split(',').includes(name);
|
|
2068
2068
|
}
|
|
2069
2069
|
else if (pattern.test) {
|
|
2070
2070
|
return pattern.test(name);
|
|
@@ -2246,7 +2246,7 @@ function applyOptions(instance) {
|
|
|
2246
2246
|
const set = !shared.isFunction(opt) && shared.isFunction(opt.set)
|
|
2247
2247
|
? opt.set.bind(publicThis)
|
|
2248
2248
|
: shared.NOOP;
|
|
2249
|
-
const c =
|
|
2249
|
+
const c = computed({
|
|
2250
2250
|
get,
|
|
2251
2251
|
set
|
|
2252
2252
|
});
|
|
@@ -2615,7 +2615,9 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
2615
2615
|
// attrs point to the same object so it should already have been updated.
|
|
2616
2616
|
if (attrs !== rawCurrentProps) {
|
|
2617
2617
|
for (const key in attrs) {
|
|
2618
|
-
if (!rawProps ||
|
|
2618
|
+
if (!rawProps ||
|
|
2619
|
+
(!shared.hasOwn(rawProps, key) &&
|
|
2620
|
+
(!false ))) {
|
|
2619
2621
|
delete attrs[key];
|
|
2620
2622
|
hasAttrsChanged = true;
|
|
2621
2623
|
}
|
|
@@ -5117,7 +5119,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
5117
5119
|
shapeFlag: vnode.shapeFlag,
|
|
5118
5120
|
// if the vnode is cloned with extra props, we can no longer assume its
|
|
5119
5121
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
5120
|
-
// note:
|
|
5122
|
+
// note: preserve flag for fragments since they use the flag for children
|
|
5121
5123
|
// fast paths only.
|
|
5122
5124
|
patchFlag: extraProps && vnode.type !== Fragment
|
|
5123
5125
|
? patchFlag === -1 // hoisted node
|
|
@@ -5268,7 +5270,8 @@ function mergeProps(...args) {
|
|
|
5268
5270
|
else if (shared.isOn(key)) {
|
|
5269
5271
|
const existing = ret[key];
|
|
5270
5272
|
const incoming = toMerge[key];
|
|
5271
|
-
if (
|
|
5273
|
+
if (incoming &&
|
|
5274
|
+
existing !== incoming &&
|
|
5272
5275
|
!(shared.isArray(existing) && existing.includes(incoming))) {
|
|
5273
5276
|
ret[key] = existing
|
|
5274
5277
|
? [].concat(existing, incoming)
|
|
@@ -5877,7 +5880,7 @@ function defineEmits() {
|
|
|
5877
5880
|
* instance properties when it is accessed by a parent component via template
|
|
5878
5881
|
* refs.
|
|
5879
5882
|
*
|
|
5880
|
-
* `<script setup>` components are closed by default - i.e.
|
|
5883
|
+
* `<script setup>` components are closed by default - i.e. variables inside
|
|
5881
5884
|
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
|
5882
5885
|
* via `defineExpose`.
|
|
5883
5886
|
*
|
|
@@ -6066,7 +6069,7 @@ function isMemoSame(cached, memo) {
|
|
|
6066
6069
|
}
|
|
6067
6070
|
|
|
6068
6071
|
// Core API ------------------------------------------------------------------
|
|
6069
|
-
const version = "3.2.
|
|
6072
|
+
const version = "3.2.28";
|
|
6070
6073
|
const _ssrUtils = {
|
|
6071
6074
|
createComponentInstance,
|
|
6072
6075
|
setupComponent,
|
|
@@ -6099,6 +6102,7 @@ exports.isProxy = reactivity.isProxy;
|
|
|
6099
6102
|
exports.isReactive = reactivity.isReactive;
|
|
6100
6103
|
exports.isReadonly = reactivity.isReadonly;
|
|
6101
6104
|
exports.isRef = reactivity.isRef;
|
|
6105
|
+
exports.isShallow = reactivity.isShallow;
|
|
6102
6106
|
exports.markRaw = reactivity.markRaw;
|
|
6103
6107
|
exports.onScopeDispose = reactivity.onScopeDispose;
|
|
6104
6108
|
exports.proxyRefs = reactivity.proxyRefs;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { isProxy } from '@vue/reactivity';
|
|
|
21
21
|
import { isReactive } from '@vue/reactivity';
|
|
22
22
|
import { isReadonly } from '@vue/reactivity';
|
|
23
23
|
import { isRef } from '@vue/reactivity';
|
|
24
|
+
import { isShallow } from '@vue/reactivity';
|
|
24
25
|
import { LooseRequired } from '@vue/shared';
|
|
25
26
|
import { markRaw } from '@vue/reactivity';
|
|
26
27
|
import { normalizeClass } from '@vue/shared';
|
|
@@ -688,7 +689,7 @@ export declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
|
688
689
|
* instance properties when it is accessed by a parent component via template
|
|
689
690
|
* refs.
|
|
690
691
|
*
|
|
691
|
-
* `<script setup>` components are closed by default - i.e.
|
|
692
|
+
* `<script setup>` components are closed by default - i.e. variables inside
|
|
692
693
|
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
|
693
694
|
* via `defineExpose`.
|
|
694
695
|
*
|
|
@@ -1016,6 +1017,8 @@ export { isRef }
|
|
|
1016
1017
|
|
|
1017
1018
|
export declare const isRuntimeOnly: () => boolean;
|
|
1018
1019
|
|
|
1020
|
+
export { isShallow }
|
|
1021
|
+
|
|
1019
1022
|
export declare function isVNode(value: any): value is VNode;
|
|
1020
1023
|
|
|
1021
1024
|
export declare const KeepAlive: {
|
|
@@ -1038,7 +1041,7 @@ export declare type LegacyConfig = {
|
|
|
1038
1041
|
silent?: boolean;
|
|
1039
1042
|
/**
|
|
1040
1043
|
* @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
|
|
1041
|
-
* https://github.com/vuejs/
|
|
1044
|
+
* https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
|
|
1042
1045
|
*/
|
|
1043
1046
|
devtools?: boolean;
|
|
1044
1047
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pauseTracking, resetTracking, isRef, toRaw, isReactive, ReactiveEffect, ref, reactive,
|
|
2
|
-
export { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';
|
|
1
|
+
import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, reactive, shallowReactive, trigger, isProxy, shallowReadonly, track, EffectScope, markRaw, proxyRefs, computed as computed$1, isReadonly } from '@vue/reactivity';
|
|
2
|
+
export { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';
|
|
3
3
|
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, toNumber, hyphenate, camelize, isOn, hasOwn, isModelListener, hasChanged, remove, isObject, isSet, isMap, isPlainObject, invokeArrayFns, def, isReservedProp, EMPTY_ARR, capitalize, toRawType, makeMap, NO, normalizeClass, normalizeStyle, isGloballyWhitelisted } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
@@ -147,7 +147,7 @@ const ErrorTypeStrings = {
|
|
|
147
147
|
[12 /* FUNCTION_REF */]: 'ref function',
|
|
148
148
|
[13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
|
|
149
149
|
[14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
|
|
150
|
-
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/
|
|
150
|
+
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
|
|
151
151
|
};
|
|
152
152
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
153
153
|
let res;
|
|
@@ -1617,7 +1617,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
1617
1617
|
if (instance) {
|
|
1618
1618
|
// #2400
|
|
1619
1619
|
// to support `app.use` plugins,
|
|
1620
|
-
// fallback to appContext's `provides` if the
|
|
1620
|
+
// fallback to appContext's `provides` if the instance is at root
|
|
1621
1621
|
const provides = instance.parent == null
|
|
1622
1622
|
? instance.vnode.appContext && instance.vnode.appContext.provides
|
|
1623
1623
|
: instance.parent.provides;
|
|
@@ -1685,7 +1685,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
1685
1685
|
let isMultiSource = false;
|
|
1686
1686
|
if (isRef(source)) {
|
|
1687
1687
|
getter = () => source.value;
|
|
1688
|
-
forceTrigger =
|
|
1688
|
+
forceTrigger = isShallow$1(source);
|
|
1689
1689
|
}
|
|
1690
1690
|
else if (isReactive(source)) {
|
|
1691
1691
|
getter = () => source;
|
|
@@ -2578,7 +2578,7 @@ function matches(pattern, name) {
|
|
|
2578
2578
|
return pattern.some((p) => matches(p, name));
|
|
2579
2579
|
}
|
|
2580
2580
|
else if (isString(pattern)) {
|
|
2581
|
-
return pattern.split(',').
|
|
2581
|
+
return pattern.split(',').includes(name);
|
|
2582
2582
|
}
|
|
2583
2583
|
else if (pattern.test) {
|
|
2584
2584
|
return pattern.test(name);
|
|
@@ -2835,7 +2835,7 @@ function applyOptions(instance) {
|
|
|
2835
2835
|
warn(`Write operation failed: computed property "${key}" is readonly.`);
|
|
2836
2836
|
}
|
|
2837
2837
|
: NOOP;
|
|
2838
|
-
const c = computed
|
|
2838
|
+
const c = computed({
|
|
2839
2839
|
get,
|
|
2840
2840
|
set
|
|
2841
2841
|
});
|
|
@@ -3236,7 +3236,9 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
3236
3236
|
// attrs point to the same object so it should already have been updated.
|
|
3237
3237
|
if (attrs !== rawCurrentProps) {
|
|
3238
3238
|
for (const key in attrs) {
|
|
3239
|
-
if (!rawProps ||
|
|
3239
|
+
if (!rawProps ||
|
|
3240
|
+
(!hasOwn(rawProps, key) &&
|
|
3241
|
+
(!false ))) {
|
|
3240
3242
|
delete attrs[key];
|
|
3241
3243
|
hasAttrsChanged = true;
|
|
3242
3244
|
}
|
|
@@ -4341,6 +4343,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4341
4343
|
return [hydrate, hydrateNode];
|
|
4342
4344
|
}
|
|
4343
4345
|
|
|
4346
|
+
/* eslint-disable no-restricted-globals */
|
|
4344
4347
|
let supported;
|
|
4345
4348
|
let perf;
|
|
4346
4349
|
function startMeasure(instance, type) {
|
|
@@ -4368,7 +4371,6 @@ function isSupported() {
|
|
|
4368
4371
|
if (supported !== undefined) {
|
|
4369
4372
|
return supported;
|
|
4370
4373
|
}
|
|
4371
|
-
/* eslint-disable no-restricted-globals */
|
|
4372
4374
|
if (typeof window !== 'undefined' && window.performance) {
|
|
4373
4375
|
supported = true;
|
|
4374
4376
|
perf = window.performance;
|
|
@@ -4376,7 +4378,6 @@ function isSupported() {
|
|
|
4376
4378
|
else {
|
|
4377
4379
|
supported = false;
|
|
4378
4380
|
}
|
|
4379
|
-
/* eslint-enable no-restricted-globals */
|
|
4380
4381
|
return supported;
|
|
4381
4382
|
}
|
|
4382
4383
|
|
|
@@ -6300,7 +6301,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
6300
6301
|
shapeFlag: vnode.shapeFlag,
|
|
6301
6302
|
// if the vnode is cloned with extra props, we can no longer assume its
|
|
6302
6303
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
6303
|
-
// note:
|
|
6304
|
+
// note: preserve flag for fragments since they use the flag for children
|
|
6304
6305
|
// fast paths only.
|
|
6305
6306
|
patchFlag: extraProps && vnode.type !== Fragment
|
|
6306
6307
|
? patchFlag === -1 // hoisted node
|
|
@@ -6462,7 +6463,8 @@ function mergeProps(...args) {
|
|
|
6462
6463
|
else if (isOn(key)) {
|
|
6463
6464
|
const existing = ret[key];
|
|
6464
6465
|
const incoming = toMerge[key];
|
|
6465
|
-
if (
|
|
6466
|
+
if (incoming &&
|
|
6467
|
+
existing !== incoming &&
|
|
6466
6468
|
!(isArray(existing) && existing.includes(incoming))) {
|
|
6467
6469
|
ret[key] = existing
|
|
6468
6470
|
? [].concat(existing, incoming)
|
|
@@ -7310,7 +7312,7 @@ function defineEmits() {
|
|
|
7310
7312
|
* instance properties when it is accessed by a parent component via template
|
|
7311
7313
|
* refs.
|
|
7312
7314
|
*
|
|
7313
|
-
* `<script setup>` components are closed by default - i.e.
|
|
7315
|
+
* `<script setup>` components are closed by default - i.e. variables inside
|
|
7314
7316
|
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
|
7315
7317
|
* via `defineExpose`.
|
|
7316
7318
|
*
|
|
@@ -7479,6 +7481,10 @@ const useSSRContext = () => {
|
|
|
7479
7481
|
}
|
|
7480
7482
|
};
|
|
7481
7483
|
|
|
7484
|
+
function isShallow(value) {
|
|
7485
|
+
return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
|
|
7486
|
+
}
|
|
7487
|
+
|
|
7482
7488
|
function initCustomFormatter() {
|
|
7483
7489
|
/* eslint-disable no-restricted-globals */
|
|
7484
7490
|
if (!(process.env.NODE_ENV !== 'production') || typeof window === 'undefined') {
|
|
@@ -7513,7 +7519,7 @@ function initCustomFormatter() {
|
|
|
7513
7519
|
return [
|
|
7514
7520
|
'div',
|
|
7515
7521
|
{},
|
|
7516
|
-
['span', vueStyle, 'Reactive'],
|
|
7522
|
+
['span', vueStyle, isShallow(obj) ? 'ShallowReactive' : 'Reactive'],
|
|
7517
7523
|
'<',
|
|
7518
7524
|
formatValue(obj),
|
|
7519
7525
|
`>${isReadonly(obj) ? ` (readonly)` : ``}`
|
|
@@ -7523,7 +7529,7 @@ function initCustomFormatter() {
|
|
|
7523
7529
|
return [
|
|
7524
7530
|
'div',
|
|
7525
7531
|
{},
|
|
7526
|
-
['span', vueStyle, 'Readonly'],
|
|
7532
|
+
['span', vueStyle, isShallow(obj) ? 'ShallowReadonly' : 'Readonly'],
|
|
7527
7533
|
'<',
|
|
7528
7534
|
formatValue(obj),
|
|
7529
7535
|
'>'
|
|
@@ -7652,7 +7658,7 @@ function initCustomFormatter() {
|
|
|
7652
7658
|
}
|
|
7653
7659
|
}
|
|
7654
7660
|
function genRefFlag(v) {
|
|
7655
|
-
if (v
|
|
7661
|
+
if (isShallow(v)) {
|
|
7656
7662
|
return `ShallowRef`;
|
|
7657
7663
|
}
|
|
7658
7664
|
if (v.effect) {
|
|
@@ -7696,7 +7702,7 @@ function isMemoSame(cached, memo) {
|
|
|
7696
7702
|
}
|
|
7697
7703
|
|
|
7698
7704
|
// Core API ------------------------------------------------------------------
|
|
7699
|
-
const version = "3.2.
|
|
7705
|
+
const version = "3.2.28";
|
|
7700
7706
|
const _ssrUtils = {
|
|
7701
7707
|
createComponentInstance,
|
|
7702
7708
|
setupComponent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.28",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/vuejs/
|
|
22
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
23
23
|
"directory": "packages/runtime-core"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"author": "Evan You",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"bugs": {
|
|
31
|
-
"url": "https://github.com/vuejs/
|
|
31
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://github.com/vuejs/
|
|
33
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.2.
|
|
36
|
-
"@vue/reactivity": "3.2.
|
|
35
|
+
"@vue/shared": "3.2.28",
|
|
36
|
+
"@vue/reactivity": "3.2.28"
|
|
37
37
|
}
|
|
38
38
|
}
|