@vue/compat 3.3.10 → 3.3.11
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/vue.cjs.js +33 -13
- package/dist/vue.cjs.prod.js +33 -13
- package/dist/vue.esm-browser.js +33 -13
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +33 -13
- package/dist/vue.global.js +33 -13
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +33 -13
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +33 -13
- package/dist/vue.runtime.global.js +33 -13
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -373,20 +373,29 @@ const replacer = (_key, val) => {
|
|
|
373
373
|
return replacer(_key, val.value);
|
|
374
374
|
} else if (isMap(val)) {
|
|
375
375
|
return {
|
|
376
|
-
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
377
|
-
entries[
|
|
378
|
-
|
|
379
|
-
|
|
376
|
+
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
377
|
+
(entries, [key, val2], i) => {
|
|
378
|
+
entries[stringifySymbol(key, i) + " =>"] = val2;
|
|
379
|
+
return entries;
|
|
380
|
+
},
|
|
381
|
+
{}
|
|
382
|
+
)
|
|
380
383
|
};
|
|
381
384
|
} else if (isSet(val)) {
|
|
382
385
|
return {
|
|
383
|
-
[`Set(${val.size})`]: [...val.values()]
|
|
386
|
+
[`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
|
|
384
387
|
};
|
|
388
|
+
} else if (isSymbol(val)) {
|
|
389
|
+
return stringifySymbol(val);
|
|
385
390
|
} else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
|
|
386
391
|
return String(val);
|
|
387
392
|
}
|
|
388
393
|
return val;
|
|
389
394
|
};
|
|
395
|
+
const stringifySymbol = (v, i = "") => {
|
|
396
|
+
var _a;
|
|
397
|
+
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
398
|
+
};
|
|
390
399
|
|
|
391
400
|
function warn$1(msg, ...args) {
|
|
392
401
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
@@ -810,8 +819,13 @@ class BaseReactiveHandler {
|
|
|
810
819
|
return isReadonly2;
|
|
811
820
|
} else if (key === "__v_isShallow") {
|
|
812
821
|
return shallow;
|
|
813
|
-
} else if (key === "__v_raw"
|
|
814
|
-
|
|
822
|
+
} else if (key === "__v_raw") {
|
|
823
|
+
if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
824
|
+
// this means the reciever is a user proxy of the reactive proxy
|
|
825
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
826
|
+
return target;
|
|
827
|
+
}
|
|
828
|
+
return;
|
|
815
829
|
}
|
|
816
830
|
const targetIsArray = isArray(target);
|
|
817
831
|
if (!isReadonly2) {
|
|
@@ -1822,13 +1836,16 @@ function queuePostFlushCb(cb) {
|
|
|
1822
1836
|
}
|
|
1823
1837
|
queueFlush();
|
|
1824
1838
|
}
|
|
1825
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1839
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1826
1840
|
{
|
|
1827
1841
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1828
1842
|
}
|
|
1829
1843
|
for (; i < queue.length; i++) {
|
|
1830
1844
|
const cb = queue[i];
|
|
1831
1845
|
if (cb && cb.pre) {
|
|
1846
|
+
if (instance && cb.id !== instance.uid) {
|
|
1847
|
+
continue;
|
|
1848
|
+
}
|
|
1832
1849
|
if (checkRecursiveUpdates(seen, cb)) {
|
|
1833
1850
|
continue;
|
|
1834
1851
|
}
|
|
@@ -3497,6 +3514,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3497
3514
|
}
|
|
3498
3515
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3499
3516
|
triggerEvent(vnode2, "onFallback");
|
|
3517
|
+
const anchor2 = next(activeBranch);
|
|
3500
3518
|
const mountFallback = () => {
|
|
3501
3519
|
if (!suspense.isInFallback) {
|
|
3502
3520
|
return;
|
|
@@ -3505,7 +3523,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3505
3523
|
null,
|
|
3506
3524
|
fallbackVNode,
|
|
3507
3525
|
container2,
|
|
3508
|
-
|
|
3526
|
+
anchor2,
|
|
3509
3527
|
parentComponent2,
|
|
3510
3528
|
null,
|
|
3511
3529
|
// fallback tree will not have suspense context
|
|
@@ -6373,7 +6391,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6373
6391
|
return vm;
|
|
6374
6392
|
}
|
|
6375
6393
|
}
|
|
6376
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6394
|
+
Vue.version = `2.6.14-compat:${"3.3.11"}`;
|
|
6377
6395
|
Vue.config = singletonApp.config;
|
|
6378
6396
|
Vue.use = (p, ...options) => {
|
|
6379
6397
|
if (p && isFunction(p.install)) {
|
|
@@ -9011,7 +9029,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9011
9029
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
9012
9030
|
updateSlots(instance, nextVNode.children, optimized);
|
|
9013
9031
|
pauseTracking();
|
|
9014
|
-
flushPreFlushCbs();
|
|
9032
|
+
flushPreFlushCbs(instance);
|
|
9015
9033
|
resetTracking();
|
|
9016
9034
|
};
|
|
9017
9035
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -10978,7 +10996,7 @@ function isMemoSame(cached, memo) {
|
|
|
10978
10996
|
return true;
|
|
10979
10997
|
}
|
|
10980
10998
|
|
|
10981
|
-
const version = "3.3.
|
|
10999
|
+
const version = "3.3.11";
|
|
10982
11000
|
const _ssrUtils = {
|
|
10983
11001
|
createComponentInstance,
|
|
10984
11002
|
setupComponent,
|
|
@@ -11746,7 +11764,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11746
11764
|
}
|
|
11747
11765
|
if (key === "width" || key === "height") {
|
|
11748
11766
|
const tag = el.tagName;
|
|
11749
|
-
|
|
11767
|
+
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
|
|
11768
|
+
return false;
|
|
11769
|
+
}
|
|
11750
11770
|
}
|
|
11751
11771
|
if (isNativeOn(key) && isString(value)) {
|
|
11752
11772
|
return false;
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -310,20 +310,29 @@ const replacer = (_key, val) => {
|
|
|
310
310
|
return replacer(_key, val.value);
|
|
311
311
|
} else if (isMap(val)) {
|
|
312
312
|
return {
|
|
313
|
-
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
314
|
-
entries[
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
314
|
+
(entries, [key, val2], i) => {
|
|
315
|
+
entries[stringifySymbol(key, i) + " =>"] = val2;
|
|
316
|
+
return entries;
|
|
317
|
+
},
|
|
318
|
+
{}
|
|
319
|
+
)
|
|
317
320
|
};
|
|
318
321
|
} else if (isSet(val)) {
|
|
319
322
|
return {
|
|
320
|
-
[`Set(${val.size})`]: [...val.values()]
|
|
323
|
+
[`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
|
|
321
324
|
};
|
|
325
|
+
} else if (isSymbol(val)) {
|
|
326
|
+
return stringifySymbol(val);
|
|
322
327
|
} else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
|
|
323
328
|
return String(val);
|
|
324
329
|
}
|
|
325
330
|
return val;
|
|
326
331
|
};
|
|
332
|
+
const stringifySymbol = (v, i = "") => {
|
|
333
|
+
var _a;
|
|
334
|
+
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
335
|
+
};
|
|
327
336
|
|
|
328
337
|
let activeEffectScope;
|
|
329
338
|
class EffectScope {
|
|
@@ -722,8 +731,13 @@ class BaseReactiveHandler {
|
|
|
722
731
|
return isReadonly2;
|
|
723
732
|
} else if (key === "__v_isShallow") {
|
|
724
733
|
return shallow;
|
|
725
|
-
} else if (key === "__v_raw"
|
|
726
|
-
|
|
734
|
+
} else if (key === "__v_raw") {
|
|
735
|
+
if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
736
|
+
// this means the reciever is a user proxy of the reactive proxy
|
|
737
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
738
|
+
return target;
|
|
739
|
+
}
|
|
740
|
+
return;
|
|
727
741
|
}
|
|
728
742
|
const targetIsArray = isArray(target);
|
|
729
743
|
if (!isReadonly2) {
|
|
@@ -1529,10 +1543,13 @@ function queuePostFlushCb(cb) {
|
|
|
1529
1543
|
}
|
|
1530
1544
|
queueFlush();
|
|
1531
1545
|
}
|
|
1532
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1546
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1533
1547
|
for (; i < queue.length; i++) {
|
|
1534
1548
|
const cb = queue[i];
|
|
1535
1549
|
if (cb && cb.pre) {
|
|
1550
|
+
if (instance && cb.id !== instance.uid) {
|
|
1551
|
+
continue;
|
|
1552
|
+
}
|
|
1536
1553
|
queue.splice(i, 1);
|
|
1537
1554
|
i--;
|
|
1538
1555
|
cb();
|
|
@@ -2560,6 +2577,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
2560
2577
|
}
|
|
2561
2578
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
2562
2579
|
triggerEvent(vnode2, "onFallback");
|
|
2580
|
+
const anchor2 = next(activeBranch);
|
|
2563
2581
|
const mountFallback = () => {
|
|
2564
2582
|
if (!suspense.isInFallback) {
|
|
2565
2583
|
return;
|
|
@@ -2568,7 +2586,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
2568
2586
|
null,
|
|
2569
2587
|
fallbackVNode,
|
|
2570
2588
|
container2,
|
|
2571
|
-
|
|
2589
|
+
anchor2,
|
|
2572
2590
|
parentComponent2,
|
|
2573
2591
|
null,
|
|
2574
2592
|
// fallback tree will not have suspense context
|
|
@@ -5091,7 +5109,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5091
5109
|
return vm;
|
|
5092
5110
|
}
|
|
5093
5111
|
}
|
|
5094
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
5112
|
+
Vue.version = `2.6.14-compat:${"3.3.11"}`;
|
|
5095
5113
|
Vue.config = singletonApp.config;
|
|
5096
5114
|
Vue.use = (p, ...options) => {
|
|
5097
5115
|
if (p && isFunction(p.install)) {
|
|
@@ -7249,7 +7267,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7249
7267
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
7250
7268
|
updateSlots(instance, nextVNode.children, optimized);
|
|
7251
7269
|
pauseTracking();
|
|
7252
|
-
flushPreFlushCbs();
|
|
7270
|
+
flushPreFlushCbs(instance);
|
|
7253
7271
|
resetTracking();
|
|
7254
7272
|
};
|
|
7255
7273
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -8820,7 +8838,7 @@ function isMemoSame(cached, memo) {
|
|
|
8820
8838
|
return true;
|
|
8821
8839
|
}
|
|
8822
8840
|
|
|
8823
|
-
const version = "3.3.
|
|
8841
|
+
const version = "3.3.11";
|
|
8824
8842
|
const _ssrUtils = {
|
|
8825
8843
|
createComponentInstance,
|
|
8826
8844
|
setupComponent,
|
|
@@ -9566,7 +9584,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
9566
9584
|
}
|
|
9567
9585
|
if (key === "width" || key === "height") {
|
|
9568
9586
|
const tag = el.tagName;
|
|
9569
|
-
|
|
9587
|
+
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
|
|
9588
|
+
return false;
|
|
9589
|
+
}
|
|
9570
9590
|
}
|
|
9571
9591
|
if (isNativeOn(key) && isString(value)) {
|
|
9572
9592
|
return false;
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -300,20 +300,29 @@ const replacer = (_key, val) => {
|
|
|
300
300
|
return replacer(_key, val.value);
|
|
301
301
|
} else if (isMap(val)) {
|
|
302
302
|
return {
|
|
303
|
-
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
304
|
-
entries[
|
|
305
|
-
|
|
306
|
-
|
|
303
|
+
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
304
|
+
(entries, [key, val2], i) => {
|
|
305
|
+
entries[stringifySymbol(key, i) + " =>"] = val2;
|
|
306
|
+
return entries;
|
|
307
|
+
},
|
|
308
|
+
{}
|
|
309
|
+
)
|
|
307
310
|
};
|
|
308
311
|
} else if (isSet(val)) {
|
|
309
312
|
return {
|
|
310
|
-
[`Set(${val.size})`]: [...val.values()]
|
|
313
|
+
[`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
|
|
311
314
|
};
|
|
315
|
+
} else if (isSymbol(val)) {
|
|
316
|
+
return stringifySymbol(val);
|
|
312
317
|
} else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
|
|
313
318
|
return String(val);
|
|
314
319
|
}
|
|
315
320
|
return val;
|
|
316
321
|
};
|
|
322
|
+
const stringifySymbol = (v, i = "") => {
|
|
323
|
+
var _a;
|
|
324
|
+
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
325
|
+
};
|
|
317
326
|
|
|
318
327
|
function warn$1(msg, ...args) {
|
|
319
328
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
@@ -737,8 +746,13 @@ class BaseReactiveHandler {
|
|
|
737
746
|
return isReadonly2;
|
|
738
747
|
} else if (key === "__v_isShallow") {
|
|
739
748
|
return shallow;
|
|
740
|
-
} else if (key === "__v_raw"
|
|
741
|
-
|
|
749
|
+
} else if (key === "__v_raw") {
|
|
750
|
+
if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
751
|
+
// this means the reciever is a user proxy of the reactive proxy
|
|
752
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
753
|
+
return target;
|
|
754
|
+
}
|
|
755
|
+
return;
|
|
742
756
|
}
|
|
743
757
|
const targetIsArray = isArray(target);
|
|
744
758
|
if (!isReadonly2) {
|
|
@@ -1749,13 +1763,16 @@ function queuePostFlushCb(cb) {
|
|
|
1749
1763
|
}
|
|
1750
1764
|
queueFlush();
|
|
1751
1765
|
}
|
|
1752
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1766
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1753
1767
|
{
|
|
1754
1768
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1755
1769
|
}
|
|
1756
1770
|
for (; i < queue.length; i++) {
|
|
1757
1771
|
const cb = queue[i];
|
|
1758
1772
|
if (cb && cb.pre) {
|
|
1773
|
+
if (instance && cb.id !== instance.uid) {
|
|
1774
|
+
continue;
|
|
1775
|
+
}
|
|
1759
1776
|
if (checkRecursiveUpdates(seen, cb)) {
|
|
1760
1777
|
continue;
|
|
1761
1778
|
}
|
|
@@ -3424,6 +3441,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3424
3441
|
}
|
|
3425
3442
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3426
3443
|
triggerEvent(vnode2, "onFallback");
|
|
3444
|
+
const anchor2 = next(activeBranch);
|
|
3427
3445
|
const mountFallback = () => {
|
|
3428
3446
|
if (!suspense.isInFallback) {
|
|
3429
3447
|
return;
|
|
@@ -3432,7 +3450,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3432
3450
|
null,
|
|
3433
3451
|
fallbackVNode,
|
|
3434
3452
|
container2,
|
|
3435
|
-
|
|
3453
|
+
anchor2,
|
|
3436
3454
|
parentComponent2,
|
|
3437
3455
|
null,
|
|
3438
3456
|
// fallback tree will not have suspense context
|
|
@@ -6273,7 +6291,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6273
6291
|
return vm;
|
|
6274
6292
|
}
|
|
6275
6293
|
}
|
|
6276
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6294
|
+
Vue.version = `2.6.14-compat:${"3.3.11"}`;
|
|
6277
6295
|
Vue.config = singletonApp.config;
|
|
6278
6296
|
Vue.use = (p, ...options) => {
|
|
6279
6297
|
if (p && isFunction(p.install)) {
|
|
@@ -8911,7 +8929,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8911
8929
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
8912
8930
|
updateSlots(instance, nextVNode.children, optimized);
|
|
8913
8931
|
pauseTracking();
|
|
8914
|
-
flushPreFlushCbs();
|
|
8932
|
+
flushPreFlushCbs(instance);
|
|
8915
8933
|
resetTracking();
|
|
8916
8934
|
};
|
|
8917
8935
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -10866,7 +10884,7 @@ function isMemoSame(cached, memo) {
|
|
|
10866
10884
|
return true;
|
|
10867
10885
|
}
|
|
10868
10886
|
|
|
10869
|
-
const version = "3.3.
|
|
10887
|
+
const version = "3.3.11";
|
|
10870
10888
|
const ssrUtils = null;
|
|
10871
10889
|
const resolveFilter = resolveFilter$1 ;
|
|
10872
10890
|
const _compatUtils = {
|
|
@@ -11619,7 +11637,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11619
11637
|
}
|
|
11620
11638
|
if (key === "width" || key === "height") {
|
|
11621
11639
|
const tag = el.tagName;
|
|
11622
|
-
|
|
11640
|
+
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
|
|
11641
|
+
return false;
|
|
11642
|
+
}
|
|
11623
11643
|
}
|
|
11624
11644
|
if (isNativeOn(key) && isString(value)) {
|
|
11625
11645
|
return false;
|