@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.esm-bundler.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);
|
|
@@ -741,8 +750,13 @@ class BaseReactiveHandler {
|
|
|
741
750
|
return isReadonly2;
|
|
742
751
|
} else if (key === "__v_isShallow") {
|
|
743
752
|
return shallow;
|
|
744
|
-
} else if (key === "__v_raw"
|
|
745
|
-
|
|
753
|
+
} else if (key === "__v_raw") {
|
|
754
|
+
if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
755
|
+
// this means the reciever is a user proxy of the reactive proxy
|
|
756
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
757
|
+
return target;
|
|
758
|
+
}
|
|
759
|
+
return;
|
|
746
760
|
}
|
|
747
761
|
const targetIsArray = isArray(target);
|
|
748
762
|
if (!isReadonly2) {
|
|
@@ -1763,13 +1777,16 @@ function queuePostFlushCb(cb) {
|
|
|
1763
1777
|
}
|
|
1764
1778
|
queueFlush();
|
|
1765
1779
|
}
|
|
1766
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1780
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1767
1781
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1768
1782
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1769
1783
|
}
|
|
1770
1784
|
for (; i < queue.length; i++) {
|
|
1771
1785
|
const cb = queue[i];
|
|
1772
1786
|
if (cb && cb.pre) {
|
|
1787
|
+
if (instance && cb.id !== instance.uid) {
|
|
1788
|
+
continue;
|
|
1789
|
+
}
|
|
1773
1790
|
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
|
|
1774
1791
|
continue;
|
|
1775
1792
|
}
|
|
@@ -3441,6 +3458,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3441
3458
|
}
|
|
3442
3459
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3443
3460
|
triggerEvent(vnode2, "onFallback");
|
|
3461
|
+
const anchor2 = next(activeBranch);
|
|
3444
3462
|
const mountFallback = () => {
|
|
3445
3463
|
if (!suspense.isInFallback) {
|
|
3446
3464
|
return;
|
|
@@ -3449,7 +3467,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3449
3467
|
null,
|
|
3450
3468
|
fallbackVNode,
|
|
3451
3469
|
container2,
|
|
3452
|
-
|
|
3470
|
+
anchor2,
|
|
3453
3471
|
parentComponent2,
|
|
3454
3472
|
null,
|
|
3455
3473
|
// fallback tree will not have suspense context
|
|
@@ -6321,7 +6339,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6321
6339
|
return vm;
|
|
6322
6340
|
}
|
|
6323
6341
|
}
|
|
6324
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6342
|
+
Vue.version = `2.6.14-compat:${"3.3.11"}`;
|
|
6325
6343
|
Vue.config = singletonApp.config;
|
|
6326
6344
|
Vue.use = (p, ...options) => {
|
|
6327
6345
|
if (p && isFunction(p.install)) {
|
|
@@ -8996,7 +9014,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8996
9014
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
8997
9015
|
updateSlots(instance, nextVNode.children, optimized);
|
|
8998
9016
|
pauseTracking();
|
|
8999
|
-
flushPreFlushCbs();
|
|
9017
|
+
flushPreFlushCbs(instance);
|
|
9000
9018
|
resetTracking();
|
|
9001
9019
|
};
|
|
9002
9020
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -10979,7 +10997,7 @@ function isMemoSame(cached, memo) {
|
|
|
10979
10997
|
return true;
|
|
10980
10998
|
}
|
|
10981
10999
|
|
|
10982
|
-
const version = "3.3.
|
|
11000
|
+
const version = "3.3.11";
|
|
10983
11001
|
const _ssrUtils = {
|
|
10984
11002
|
createComponentInstance,
|
|
10985
11003
|
setupComponent,
|
|
@@ -11747,7 +11765,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11747
11765
|
}
|
|
11748
11766
|
if (key === "width" || key === "height") {
|
|
11749
11767
|
const tag = el.tagName;
|
|
11750
|
-
|
|
11768
|
+
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
|
|
11769
|
+
return false;
|
|
11770
|
+
}
|
|
11751
11771
|
}
|
|
11752
11772
|
if (isNativeOn(key) && isString(value)) {
|
|
11753
11773
|
return false;
|
package/dist/vue.global.js
CHANGED
|
@@ -303,20 +303,29 @@ var Vue = (function () {
|
|
|
303
303
|
return replacer(_key, val.value);
|
|
304
304
|
} else if (isMap(val)) {
|
|
305
305
|
return {
|
|
306
|
-
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
307
|
-
entries[
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
307
|
+
(entries, [key, val2], i) => {
|
|
308
|
+
entries[stringifySymbol(key, i) + " =>"] = val2;
|
|
309
|
+
return entries;
|
|
310
|
+
},
|
|
311
|
+
{}
|
|
312
|
+
)
|
|
310
313
|
};
|
|
311
314
|
} else if (isSet(val)) {
|
|
312
315
|
return {
|
|
313
|
-
[`Set(${val.size})`]: [...val.values()]
|
|
316
|
+
[`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
|
|
314
317
|
};
|
|
318
|
+
} else if (isSymbol(val)) {
|
|
319
|
+
return stringifySymbol(val);
|
|
315
320
|
} else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
|
|
316
321
|
return String(val);
|
|
317
322
|
}
|
|
318
323
|
return val;
|
|
319
324
|
};
|
|
325
|
+
const stringifySymbol = (v, i = "") => {
|
|
326
|
+
var _a;
|
|
327
|
+
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
328
|
+
};
|
|
320
329
|
|
|
321
330
|
function warn$1(msg, ...args) {
|
|
322
331
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
@@ -740,8 +749,13 @@ var Vue = (function () {
|
|
|
740
749
|
return isReadonly2;
|
|
741
750
|
} else if (key === "__v_isShallow") {
|
|
742
751
|
return shallow;
|
|
743
|
-
} else if (key === "__v_raw"
|
|
744
|
-
|
|
752
|
+
} else if (key === "__v_raw") {
|
|
753
|
+
if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
754
|
+
// this means the reciever is a user proxy of the reactive proxy
|
|
755
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
756
|
+
return target;
|
|
757
|
+
}
|
|
758
|
+
return;
|
|
745
759
|
}
|
|
746
760
|
const targetIsArray = isArray(target);
|
|
747
761
|
if (!isReadonly2) {
|
|
@@ -1752,13 +1766,16 @@ var Vue = (function () {
|
|
|
1752
1766
|
}
|
|
1753
1767
|
queueFlush();
|
|
1754
1768
|
}
|
|
1755
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1769
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1756
1770
|
{
|
|
1757
1771
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1758
1772
|
}
|
|
1759
1773
|
for (; i < queue.length; i++) {
|
|
1760
1774
|
const cb = queue[i];
|
|
1761
1775
|
if (cb && cb.pre) {
|
|
1776
|
+
if (instance && cb.id !== instance.uid) {
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1762
1779
|
if (checkRecursiveUpdates(seen, cb)) {
|
|
1763
1780
|
continue;
|
|
1764
1781
|
}
|
|
@@ -3427,6 +3444,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3427
3444
|
}
|
|
3428
3445
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3429
3446
|
triggerEvent(vnode2, "onFallback");
|
|
3447
|
+
const anchor2 = next(activeBranch);
|
|
3430
3448
|
const mountFallback = () => {
|
|
3431
3449
|
if (!suspense.isInFallback) {
|
|
3432
3450
|
return;
|
|
@@ -3435,7 +3453,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3435
3453
|
null,
|
|
3436
3454
|
fallbackVNode,
|
|
3437
3455
|
container2,
|
|
3438
|
-
|
|
3456
|
+
anchor2,
|
|
3439
3457
|
parentComponent2,
|
|
3440
3458
|
null,
|
|
3441
3459
|
// fallback tree will not have suspense context
|
|
@@ -6276,7 +6294,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6276
6294
|
return vm;
|
|
6277
6295
|
}
|
|
6278
6296
|
}
|
|
6279
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6297
|
+
Vue.version = `2.6.14-compat:${"3.3.11"}`;
|
|
6280
6298
|
Vue.config = singletonApp.config;
|
|
6281
6299
|
Vue.use = (p, ...options) => {
|
|
6282
6300
|
if (p && isFunction(p.install)) {
|
|
@@ -8914,7 +8932,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8914
8932
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
8915
8933
|
updateSlots(instance, nextVNode.children, optimized);
|
|
8916
8934
|
pauseTracking();
|
|
8917
|
-
flushPreFlushCbs();
|
|
8935
|
+
flushPreFlushCbs(instance);
|
|
8918
8936
|
resetTracking();
|
|
8919
8937
|
};
|
|
8920
8938
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -10863,7 +10881,7 @@ Component that was made reactive: `,
|
|
|
10863
10881
|
return true;
|
|
10864
10882
|
}
|
|
10865
10883
|
|
|
10866
|
-
const version = "3.3.
|
|
10884
|
+
const version = "3.3.11";
|
|
10867
10885
|
const ssrUtils = null;
|
|
10868
10886
|
const resolveFilter = resolveFilter$1 ;
|
|
10869
10887
|
const _compatUtils = {
|
|
@@ -11616,7 +11634,9 @@ Component that was made reactive: `,
|
|
|
11616
11634
|
}
|
|
11617
11635
|
if (key === "width" || key === "height") {
|
|
11618
11636
|
const tag = el.tagName;
|
|
11619
|
-
|
|
11637
|
+
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
|
|
11638
|
+
return false;
|
|
11639
|
+
}
|
|
11620
11640
|
}
|
|
11621
11641
|
if (isNativeOn(key) && isString(value)) {
|
|
11622
11642
|
return false;
|