@vue/compat 3.5.9 → 3.5.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 +39 -33
- package/dist/vue.cjs.prod.js +39 -33
- package/dist/vue.esm-browser.js +39 -33
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +39 -33
- package/dist/vue.global.js +39 -33
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +39 -33
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +39 -33
- package/dist/vue.runtime.global.js +39 -33
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -630,8 +630,14 @@ class ReactiveEffect {
|
|
|
630
630
|
}
|
|
631
631
|
let batchDepth = 0;
|
|
632
632
|
let batchedSub;
|
|
633
|
-
|
|
633
|
+
let batchedComputed;
|
|
634
|
+
function batch(sub, isComputed = false) {
|
|
634
635
|
sub.flags |= 8;
|
|
636
|
+
if (isComputed) {
|
|
637
|
+
sub.next = batchedComputed;
|
|
638
|
+
batchedComputed = sub;
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
635
641
|
sub.next = batchedSub;
|
|
636
642
|
batchedSub = sub;
|
|
637
643
|
}
|
|
@@ -642,17 +648,24 @@ function endBatch() {
|
|
|
642
648
|
if (--batchDepth > 0) {
|
|
643
649
|
return;
|
|
644
650
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
let next;
|
|
651
|
+
if (batchedComputed) {
|
|
652
|
+
let e = batchedComputed;
|
|
653
|
+
batchedComputed = void 0;
|
|
649
654
|
while (e) {
|
|
655
|
+
const next = e.next;
|
|
656
|
+
e.next = void 0;
|
|
650
657
|
e.flags &= ~8;
|
|
651
|
-
e =
|
|
658
|
+
e = next;
|
|
652
659
|
}
|
|
653
|
-
|
|
660
|
+
}
|
|
661
|
+
let error;
|
|
662
|
+
while (batchedSub) {
|
|
663
|
+
let e = batchedSub;
|
|
654
664
|
batchedSub = void 0;
|
|
655
665
|
while (e) {
|
|
666
|
+
const next = e.next;
|
|
667
|
+
e.next = void 0;
|
|
668
|
+
e.flags &= ~8;
|
|
656
669
|
if (e.flags & 1) {
|
|
657
670
|
try {
|
|
658
671
|
;
|
|
@@ -661,8 +674,6 @@ function endBatch() {
|
|
|
661
674
|
if (!error) error = err;
|
|
662
675
|
}
|
|
663
676
|
}
|
|
664
|
-
next = e.next;
|
|
665
|
-
e.next = void 0;
|
|
666
677
|
e = next;
|
|
667
678
|
}
|
|
668
679
|
}
|
|
@@ -848,7 +859,6 @@ class Dep {
|
|
|
848
859
|
/**
|
|
849
860
|
* For object property deps cleanup
|
|
850
861
|
*/
|
|
851
|
-
this.target = void 0;
|
|
852
862
|
this.map = void 0;
|
|
853
863
|
this.key = void 0;
|
|
854
864
|
/**
|
|
@@ -976,7 +986,6 @@ function track(target, type, key) {
|
|
|
976
986
|
let dep = depsMap.get(key);
|
|
977
987
|
if (!dep) {
|
|
978
988
|
depsMap.set(key, dep = new Dep());
|
|
979
|
-
dep.target = target;
|
|
980
989
|
dep.map = depsMap;
|
|
981
990
|
dep.key = key;
|
|
982
991
|
}
|
|
@@ -2006,6 +2015,10 @@ class ComputedRefImpl {
|
|
|
2006
2015
|
* @internal
|
|
2007
2016
|
*/
|
|
2008
2017
|
this.globalVersion = globalVersion - 1;
|
|
2018
|
+
/**
|
|
2019
|
+
* @internal
|
|
2020
|
+
*/
|
|
2021
|
+
this.next = void 0;
|
|
2009
2022
|
// for backwards compat
|
|
2010
2023
|
this.effect = this;
|
|
2011
2024
|
this["__v_isReadonly"] = !setter;
|
|
@@ -2018,7 +2031,7 @@ class ComputedRefImpl {
|
|
|
2018
2031
|
this.flags |= 16;
|
|
2019
2032
|
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
2020
2033
|
activeSub !== this) {
|
|
2021
|
-
batch(this);
|
|
2034
|
+
batch(this, true);
|
|
2022
2035
|
return true;
|
|
2023
2036
|
} else if (!!(process.env.NODE_ENV !== "production")) ;
|
|
2024
2037
|
}
|
|
@@ -2545,10 +2558,8 @@ function logError(err, type, contextVNode, throwInDev = true, throwInProd = fals
|
|
|
2545
2558
|
}
|
|
2546
2559
|
}
|
|
2547
2560
|
|
|
2548
|
-
let isFlushing = false;
|
|
2549
|
-
let isFlushPending = false;
|
|
2550
2561
|
const queue = [];
|
|
2551
|
-
let flushIndex =
|
|
2562
|
+
let flushIndex = -1;
|
|
2552
2563
|
const pendingPostFlushCbs = [];
|
|
2553
2564
|
let activePostFlushCbs = null;
|
|
2554
2565
|
let postFlushIndex = 0;
|
|
@@ -2560,7 +2571,7 @@ function nextTick(fn) {
|
|
|
2560
2571
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
2561
2572
|
}
|
|
2562
2573
|
function findInsertionIndex(id) {
|
|
2563
|
-
let start =
|
|
2574
|
+
let start = flushIndex + 1;
|
|
2564
2575
|
let end = queue.length;
|
|
2565
2576
|
while (start < end) {
|
|
2566
2577
|
const middle = start + end >>> 1;
|
|
@@ -2589,8 +2600,7 @@ function queueJob(job) {
|
|
|
2589
2600
|
}
|
|
2590
2601
|
}
|
|
2591
2602
|
function queueFlush() {
|
|
2592
|
-
if (!
|
|
2593
|
-
isFlushPending = true;
|
|
2603
|
+
if (!currentFlushPromise) {
|
|
2594
2604
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
2595
2605
|
}
|
|
2596
2606
|
}
|
|
@@ -2607,7 +2617,7 @@ function queuePostFlushCb(cb) {
|
|
|
2607
2617
|
}
|
|
2608
2618
|
queueFlush();
|
|
2609
2619
|
}
|
|
2610
|
-
function flushPreFlushCbs(instance, seen, i =
|
|
2620
|
+
function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
|
|
2611
2621
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2612
2622
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2613
2623
|
}
|
|
@@ -2663,8 +2673,6 @@ function flushPostFlushCbs(seen) {
|
|
|
2663
2673
|
}
|
|
2664
2674
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
2665
2675
|
function flushJobs(seen) {
|
|
2666
|
-
isFlushPending = false;
|
|
2667
|
-
isFlushing = true;
|
|
2668
2676
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2669
2677
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2670
2678
|
}
|
|
@@ -2696,10 +2704,9 @@ function flushJobs(seen) {
|
|
|
2696
2704
|
job.flags &= ~1;
|
|
2697
2705
|
}
|
|
2698
2706
|
}
|
|
2699
|
-
flushIndex =
|
|
2707
|
+
flushIndex = -1;
|
|
2700
2708
|
queue.length = 0;
|
|
2701
2709
|
flushPostFlushCbs(seen);
|
|
2702
|
-
isFlushing = false;
|
|
2703
2710
|
currentFlushPromise = null;
|
|
2704
2711
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
2705
2712
|
flushJobs(seen);
|
|
@@ -7197,7 +7204,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7197
7204
|
return vm;
|
|
7198
7205
|
}
|
|
7199
7206
|
}
|
|
7200
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7207
|
+
Vue.version = `2.6.14-compat:${"3.5.11"}`;
|
|
7201
7208
|
Vue.config = singletonApp.config;
|
|
7202
7209
|
Vue.use = (plugin, ...options) => {
|
|
7203
7210
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12366,7 +12373,7 @@ function isMemoSame(cached, memo) {
|
|
|
12366
12373
|
return true;
|
|
12367
12374
|
}
|
|
12368
12375
|
|
|
12369
|
-
const version = "3.5.
|
|
12376
|
+
const version = "3.5.11";
|
|
12370
12377
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12371
12378
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12372
12379
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -13241,6 +13248,11 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
13241
13248
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
13242
13249
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
13243
13250
|
}
|
|
13251
|
+
} else if (
|
|
13252
|
+
// #11081 force set props for possible async custom element
|
|
13253
|
+
el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
|
|
13254
|
+
) {
|
|
13255
|
+
patchDOMProp(el, camelize(key), nextValue, parentComponent);
|
|
13244
13256
|
} else {
|
|
13245
13257
|
if (key === "true-value") {
|
|
13246
13258
|
el._trueValue = nextValue;
|
|
@@ -13281,13 +13293,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
13281
13293
|
if (isNativeOn(key) && isString(value)) {
|
|
13282
13294
|
return false;
|
|
13283
13295
|
}
|
|
13284
|
-
|
|
13285
|
-
return true;
|
|
13286
|
-
}
|
|
13287
|
-
if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
|
|
13288
|
-
return true;
|
|
13289
|
-
}
|
|
13290
|
-
return false;
|
|
13296
|
+
return key in el;
|
|
13291
13297
|
}
|
|
13292
13298
|
|
|
13293
13299
|
const REMOVAL = {};
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -633,8 +633,14 @@ var Vue = (function () {
|
|
|
633
633
|
}
|
|
634
634
|
let batchDepth = 0;
|
|
635
635
|
let batchedSub;
|
|
636
|
-
|
|
636
|
+
let batchedComputed;
|
|
637
|
+
function batch(sub, isComputed = false) {
|
|
637
638
|
sub.flags |= 8;
|
|
639
|
+
if (isComputed) {
|
|
640
|
+
sub.next = batchedComputed;
|
|
641
|
+
batchedComputed = sub;
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
638
644
|
sub.next = batchedSub;
|
|
639
645
|
batchedSub = sub;
|
|
640
646
|
}
|
|
@@ -645,17 +651,24 @@ var Vue = (function () {
|
|
|
645
651
|
if (--batchDepth > 0) {
|
|
646
652
|
return;
|
|
647
653
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
let next;
|
|
654
|
+
if (batchedComputed) {
|
|
655
|
+
let e = batchedComputed;
|
|
656
|
+
batchedComputed = void 0;
|
|
652
657
|
while (e) {
|
|
658
|
+
const next = e.next;
|
|
659
|
+
e.next = void 0;
|
|
653
660
|
e.flags &= ~8;
|
|
654
|
-
e =
|
|
661
|
+
e = next;
|
|
655
662
|
}
|
|
656
|
-
|
|
663
|
+
}
|
|
664
|
+
let error;
|
|
665
|
+
while (batchedSub) {
|
|
666
|
+
let e = batchedSub;
|
|
657
667
|
batchedSub = void 0;
|
|
658
668
|
while (e) {
|
|
669
|
+
const next = e.next;
|
|
670
|
+
e.next = void 0;
|
|
671
|
+
e.flags &= ~8;
|
|
659
672
|
if (e.flags & 1) {
|
|
660
673
|
try {
|
|
661
674
|
;
|
|
@@ -664,8 +677,6 @@ var Vue = (function () {
|
|
|
664
677
|
if (!error) error = err;
|
|
665
678
|
}
|
|
666
679
|
}
|
|
667
|
-
next = e.next;
|
|
668
|
-
e.next = void 0;
|
|
669
680
|
e = next;
|
|
670
681
|
}
|
|
671
682
|
}
|
|
@@ -851,7 +862,6 @@ var Vue = (function () {
|
|
|
851
862
|
/**
|
|
852
863
|
* For object property deps cleanup
|
|
853
864
|
*/
|
|
854
|
-
this.target = void 0;
|
|
855
865
|
this.map = void 0;
|
|
856
866
|
this.key = void 0;
|
|
857
867
|
/**
|
|
@@ -979,7 +989,6 @@ var Vue = (function () {
|
|
|
979
989
|
let dep = depsMap.get(key);
|
|
980
990
|
if (!dep) {
|
|
981
991
|
depsMap.set(key, dep = new Dep());
|
|
982
|
-
dep.target = target;
|
|
983
992
|
dep.map = depsMap;
|
|
984
993
|
dep.key = key;
|
|
985
994
|
}
|
|
@@ -1999,6 +2008,10 @@ var Vue = (function () {
|
|
|
1999
2008
|
* @internal
|
|
2000
2009
|
*/
|
|
2001
2010
|
this.globalVersion = globalVersion - 1;
|
|
2011
|
+
/**
|
|
2012
|
+
* @internal
|
|
2013
|
+
*/
|
|
2014
|
+
this.next = void 0;
|
|
2002
2015
|
// for backwards compat
|
|
2003
2016
|
this.effect = this;
|
|
2004
2017
|
this["__v_isReadonly"] = !setter;
|
|
@@ -2011,7 +2024,7 @@ var Vue = (function () {
|
|
|
2011
2024
|
this.flags |= 16;
|
|
2012
2025
|
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
2013
2026
|
activeSub !== this) {
|
|
2014
|
-
batch(this);
|
|
2027
|
+
batch(this, true);
|
|
2015
2028
|
return true;
|
|
2016
2029
|
}
|
|
2017
2030
|
}
|
|
@@ -2533,10 +2546,8 @@ var Vue = (function () {
|
|
|
2533
2546
|
}
|
|
2534
2547
|
}
|
|
2535
2548
|
|
|
2536
|
-
let isFlushing = false;
|
|
2537
|
-
let isFlushPending = false;
|
|
2538
2549
|
const queue = [];
|
|
2539
|
-
let flushIndex =
|
|
2550
|
+
let flushIndex = -1;
|
|
2540
2551
|
const pendingPostFlushCbs = [];
|
|
2541
2552
|
let activePostFlushCbs = null;
|
|
2542
2553
|
let postFlushIndex = 0;
|
|
@@ -2548,7 +2559,7 @@ var Vue = (function () {
|
|
|
2548
2559
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
2549
2560
|
}
|
|
2550
2561
|
function findInsertionIndex(id) {
|
|
2551
|
-
let start =
|
|
2562
|
+
let start = flushIndex + 1;
|
|
2552
2563
|
let end = queue.length;
|
|
2553
2564
|
while (start < end) {
|
|
2554
2565
|
const middle = start + end >>> 1;
|
|
@@ -2577,8 +2588,7 @@ var Vue = (function () {
|
|
|
2577
2588
|
}
|
|
2578
2589
|
}
|
|
2579
2590
|
function queueFlush() {
|
|
2580
|
-
if (!
|
|
2581
|
-
isFlushPending = true;
|
|
2591
|
+
if (!currentFlushPromise) {
|
|
2582
2592
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
2583
2593
|
}
|
|
2584
2594
|
}
|
|
@@ -2595,7 +2605,7 @@ var Vue = (function () {
|
|
|
2595
2605
|
}
|
|
2596
2606
|
queueFlush();
|
|
2597
2607
|
}
|
|
2598
|
-
function flushPreFlushCbs(instance, seen, i =
|
|
2608
|
+
function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
|
|
2599
2609
|
{
|
|
2600
2610
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2601
2611
|
}
|
|
@@ -2651,8 +2661,6 @@ var Vue = (function () {
|
|
|
2651
2661
|
}
|
|
2652
2662
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
2653
2663
|
function flushJobs(seen) {
|
|
2654
|
-
isFlushPending = false;
|
|
2655
|
-
isFlushing = true;
|
|
2656
2664
|
{
|
|
2657
2665
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2658
2666
|
}
|
|
@@ -2684,10 +2692,9 @@ var Vue = (function () {
|
|
|
2684
2692
|
job.flags &= ~1;
|
|
2685
2693
|
}
|
|
2686
2694
|
}
|
|
2687
|
-
flushIndex =
|
|
2695
|
+
flushIndex = -1;
|
|
2688
2696
|
queue.length = 0;
|
|
2689
2697
|
flushPostFlushCbs(seen);
|
|
2690
|
-
isFlushing = false;
|
|
2691
2698
|
currentFlushPromise = null;
|
|
2692
2699
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
2693
2700
|
flushJobs(seen);
|
|
@@ -7159,7 +7166,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7159
7166
|
return vm;
|
|
7160
7167
|
}
|
|
7161
7168
|
}
|
|
7162
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7169
|
+
Vue.version = `2.6.14-compat:${"3.5.11"}`;
|
|
7163
7170
|
Vue.config = singletonApp.config;
|
|
7164
7171
|
Vue.use = (plugin, ...options) => {
|
|
7165
7172
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12237,7 +12244,7 @@ Component that was made reactive: `,
|
|
|
12237
12244
|
return true;
|
|
12238
12245
|
}
|
|
12239
12246
|
|
|
12240
|
-
const version = "3.5.
|
|
12247
|
+
const version = "3.5.11";
|
|
12241
12248
|
const warn = warn$1 ;
|
|
12242
12249
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12243
12250
|
const devtools = devtools$1 ;
|
|
@@ -13093,6 +13100,11 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13093
13100
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
13094
13101
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
13095
13102
|
}
|
|
13103
|
+
} else if (
|
|
13104
|
+
// #11081 force set props for possible async custom element
|
|
13105
|
+
el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
|
|
13106
|
+
) {
|
|
13107
|
+
patchDOMProp(el, camelize(key), nextValue, parentComponent);
|
|
13096
13108
|
} else {
|
|
13097
13109
|
if (key === "true-value") {
|
|
13098
13110
|
el._trueValue = nextValue;
|
|
@@ -13133,13 +13145,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13133
13145
|
if (isNativeOn(key) && isString(value)) {
|
|
13134
13146
|
return false;
|
|
13135
13147
|
}
|
|
13136
|
-
|
|
13137
|
-
return true;
|
|
13138
|
-
}
|
|
13139
|
-
if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
|
|
13140
|
-
return true;
|
|
13141
|
-
}
|
|
13142
|
-
return false;
|
|
13148
|
+
return key in el;
|
|
13143
13149
|
}
|
|
13144
13150
|
|
|
13145
13151
|
const REMOVAL = {};
|