@vue/compat 3.5.8 → 3.5.9
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 +59 -44
- package/dist/vue.cjs.prod.js +56 -41
- package/dist/vue.esm-browser.js +59 -44
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +59 -44
- package/dist/vue.global.js +59 -44
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +52 -43
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +52 -43
- package/dist/vue.runtime.global.js +52 -43
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -572,11 +572,14 @@ function endBatch() {
|
|
|
572
572
|
let error;
|
|
573
573
|
while (batchedSub) {
|
|
574
574
|
let e = batchedSub;
|
|
575
|
-
|
|
575
|
+
let next;
|
|
576
576
|
while (e) {
|
|
577
|
-
const next = e.next;
|
|
578
|
-
e.next = void 0;
|
|
579
577
|
e.flags &= ~8;
|
|
578
|
+
e = e.next;
|
|
579
|
+
}
|
|
580
|
+
e = batchedSub;
|
|
581
|
+
batchedSub = void 0;
|
|
582
|
+
while (e) {
|
|
580
583
|
if (e.flags & 1) {
|
|
581
584
|
try {
|
|
582
585
|
;
|
|
@@ -585,6 +588,8 @@ function endBatch() {
|
|
|
585
588
|
if (!error) error = err;
|
|
586
589
|
}
|
|
587
590
|
}
|
|
591
|
+
next = e.next;
|
|
592
|
+
e.next = void 0;
|
|
588
593
|
e = next;
|
|
589
594
|
}
|
|
590
595
|
}
|
|
@@ -597,7 +602,7 @@ function prepareDeps(sub) {
|
|
|
597
602
|
link.dep.activeLink = link;
|
|
598
603
|
}
|
|
599
604
|
}
|
|
600
|
-
function cleanupDeps(sub
|
|
605
|
+
function cleanupDeps(sub) {
|
|
601
606
|
let head;
|
|
602
607
|
let tail = sub.depsTail;
|
|
603
608
|
let link = tail;
|
|
@@ -605,7 +610,7 @@ function cleanupDeps(sub, fromComputed = false) {
|
|
|
605
610
|
const prev = link.prevDep;
|
|
606
611
|
if (link.version === -1) {
|
|
607
612
|
if (link === tail) tail = prev;
|
|
608
|
-
removeSub(link
|
|
613
|
+
removeSub(link);
|
|
609
614
|
removeDep(link);
|
|
610
615
|
} else {
|
|
611
616
|
head = link;
|
|
@@ -660,11 +665,11 @@ function refreshComputed(computed) {
|
|
|
660
665
|
} finally {
|
|
661
666
|
activeSub = prevSub;
|
|
662
667
|
shouldTrack = prevShouldTrack;
|
|
663
|
-
cleanupDeps(computed
|
|
668
|
+
cleanupDeps(computed);
|
|
664
669
|
computed.flags &= ~2;
|
|
665
670
|
}
|
|
666
671
|
}
|
|
667
|
-
function removeSub(link,
|
|
672
|
+
function removeSub(link, soft = false) {
|
|
668
673
|
const { dep, prevSub, nextSub } = link;
|
|
669
674
|
if (prevSub) {
|
|
670
675
|
prevSub.nextSub = nextSub;
|
|
@@ -680,17 +685,15 @@ function removeSub(link, fromComputed = false) {
|
|
|
680
685
|
if (!!(process.env.NODE_ENV !== "production") && dep.subsHead === link) {
|
|
681
686
|
dep.subsHead = nextSub;
|
|
682
687
|
}
|
|
683
|
-
if (!dep.subs) {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
removeSub(l, true);
|
|
688
|
-
}
|
|
689
|
-
} else if (dep.map && !fromComputed) {
|
|
690
|
-
dep.map.delete(dep.key);
|
|
691
|
-
if (!dep.map.size) targetMap.delete(dep.target);
|
|
688
|
+
if (!dep.subs && dep.computed) {
|
|
689
|
+
dep.computed.flags &= ~4;
|
|
690
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
691
|
+
removeSub(l, true);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
+
if (!soft && !--dep.sc && dep.map) {
|
|
695
|
+
dep.map.delete(dep.key);
|
|
696
|
+
}
|
|
694
697
|
}
|
|
695
698
|
function removeDep(link) {
|
|
696
699
|
const { prevDep, nextDep } = link;
|
|
@@ -775,6 +778,10 @@ class Dep {
|
|
|
775
778
|
this.target = void 0;
|
|
776
779
|
this.map = void 0;
|
|
777
780
|
this.key = void 0;
|
|
781
|
+
/**
|
|
782
|
+
* Subscriber counter
|
|
783
|
+
*/
|
|
784
|
+
this.sc = 0;
|
|
778
785
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
779
786
|
this.subsHead = void 0;
|
|
780
787
|
}
|
|
@@ -793,9 +800,7 @@ class Dep {
|
|
|
793
800
|
activeSub.depsTail.nextDep = link;
|
|
794
801
|
activeSub.depsTail = link;
|
|
795
802
|
}
|
|
796
|
-
|
|
797
|
-
addSub(link);
|
|
798
|
-
}
|
|
803
|
+
addSub(link);
|
|
799
804
|
} else if (link.version === -1) {
|
|
800
805
|
link.version = this.version;
|
|
801
806
|
if (link.nextDep) {
|
|
@@ -859,22 +864,25 @@ class Dep {
|
|
|
859
864
|
}
|
|
860
865
|
}
|
|
861
866
|
function addSub(link) {
|
|
862
|
-
|
|
863
|
-
if (
|
|
864
|
-
computed
|
|
865
|
-
|
|
866
|
-
|
|
867
|
+
link.dep.sc++;
|
|
868
|
+
if (link.sub.flags & 4) {
|
|
869
|
+
const computed = link.dep.computed;
|
|
870
|
+
if (computed && !link.dep.subs) {
|
|
871
|
+
computed.flags |= 4 | 16;
|
|
872
|
+
for (let l = computed.deps; l; l = l.nextDep) {
|
|
873
|
+
addSub(l);
|
|
874
|
+
}
|
|
867
875
|
}
|
|
876
|
+
const currentTail = link.dep.subs;
|
|
877
|
+
if (currentTail !== link) {
|
|
878
|
+
link.prevSub = currentTail;
|
|
879
|
+
if (currentTail) currentTail.nextSub = link;
|
|
880
|
+
}
|
|
881
|
+
if (!!(process.env.NODE_ENV !== "production") && link.dep.subsHead === void 0) {
|
|
882
|
+
link.dep.subsHead = link;
|
|
883
|
+
}
|
|
884
|
+
link.dep.subs = link;
|
|
868
885
|
}
|
|
869
|
-
const currentTail = link.dep.subs;
|
|
870
|
-
if (currentTail !== link) {
|
|
871
|
-
link.prevSub = currentTail;
|
|
872
|
-
if (currentTail) currentTail.nextSub = link;
|
|
873
|
-
}
|
|
874
|
-
if (!!(process.env.NODE_ENV !== "production") && link.dep.subsHead === void 0) {
|
|
875
|
-
link.dep.subsHead = link;
|
|
876
|
-
}
|
|
877
|
-
link.dep.subs = link;
|
|
878
886
|
}
|
|
879
887
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
880
888
|
const ITERATE_KEY = Symbol(
|
|
@@ -982,8 +990,8 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
982
990
|
endBatch();
|
|
983
991
|
}
|
|
984
992
|
function getDepFromReactive(object, key) {
|
|
985
|
-
|
|
986
|
-
return
|
|
993
|
+
const depMap = targetMap.get(object);
|
|
994
|
+
return depMap && depMap.get(key);
|
|
987
995
|
}
|
|
988
996
|
|
|
989
997
|
function reactiveReadArray(array) {
|
|
@@ -4181,6 +4189,7 @@ function useId() {
|
|
|
4181
4189
|
`useId() is called when there is no active component instance to be associated with.`
|
|
4182
4190
|
);
|
|
4183
4191
|
}
|
|
4192
|
+
return "";
|
|
4184
4193
|
}
|
|
4185
4194
|
function markAsyncBoundary(instance) {
|
|
4186
4195
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
@@ -7115,7 +7124,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7115
7124
|
return vm;
|
|
7116
7125
|
}
|
|
7117
7126
|
}
|
|
7118
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7127
|
+
Vue.version = `2.6.14-compat:${"3.5.9"}`;
|
|
7119
7128
|
Vue.config = singletonApp.config;
|
|
7120
7129
|
Vue.use = (plugin, ...options) => {
|
|
7121
7130
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11513,7 +11522,7 @@ function normalizeVNode(child) {
|
|
|
11513
11522
|
// #3666, avoid reference pollution when reusing vnode
|
|
11514
11523
|
child.slice()
|
|
11515
11524
|
);
|
|
11516
|
-
} else if (
|
|
11525
|
+
} else if (isVNode(child)) {
|
|
11517
11526
|
return cloneIfMounted(child);
|
|
11518
11527
|
} else {
|
|
11519
11528
|
return createVNode(Text, null, String(child));
|
|
@@ -12284,7 +12293,7 @@ function isMemoSame(cached, memo) {
|
|
|
12284
12293
|
return true;
|
|
12285
12294
|
}
|
|
12286
12295
|
|
|
12287
|
-
const version = "3.5.
|
|
12296
|
+
const version = "3.5.9";
|
|
12288
12297
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12289
12298
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12290
12299
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -13891,7 +13900,7 @@ const vModelCheckbox = {
|
|
|
13891
13900
|
setChecked(el, binding, vnode);
|
|
13892
13901
|
}
|
|
13893
13902
|
};
|
|
13894
|
-
function setChecked(el, { value
|
|
13903
|
+
function setChecked(el, { value }, vnode) {
|
|
13895
13904
|
el._modelValue = value;
|
|
13896
13905
|
let checked;
|
|
13897
13906
|
if (isArray(value)) {
|
|
@@ -13941,19 +13950,19 @@ const vModelSelect = {
|
|
|
13941
13950
|
},
|
|
13942
13951
|
// set value in mounted & updated because <select> relies on its children
|
|
13943
13952
|
// <option>s.
|
|
13944
|
-
mounted(el, { value
|
|
13953
|
+
mounted(el, { value }) {
|
|
13945
13954
|
setSelected(el, value);
|
|
13946
13955
|
},
|
|
13947
13956
|
beforeUpdate(el, _binding, vnode) {
|
|
13948
13957
|
el[assignKey] = getModelAssigner(vnode);
|
|
13949
13958
|
},
|
|
13950
|
-
updated(el, { value
|
|
13959
|
+
updated(el, { value }) {
|
|
13951
13960
|
if (!el._assigning) {
|
|
13952
13961
|
setSelected(el, value);
|
|
13953
13962
|
}
|
|
13954
13963
|
}
|
|
13955
13964
|
};
|
|
13956
|
-
function setSelected(el, value
|
|
13965
|
+
function setSelected(el, value) {
|
|
13957
13966
|
const isMultiple = el.multiple;
|
|
13958
13967
|
const isArrayValue = isArray(value);
|
|
13959
13968
|
if (isMultiple && !isArrayValue && !isSet(value)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -575,11 +575,14 @@ var Vue = (function () {
|
|
|
575
575
|
let error;
|
|
576
576
|
while (batchedSub) {
|
|
577
577
|
let e = batchedSub;
|
|
578
|
-
|
|
578
|
+
let next;
|
|
579
579
|
while (e) {
|
|
580
|
-
const next = e.next;
|
|
581
|
-
e.next = void 0;
|
|
582
580
|
e.flags &= ~8;
|
|
581
|
+
e = e.next;
|
|
582
|
+
}
|
|
583
|
+
e = batchedSub;
|
|
584
|
+
batchedSub = void 0;
|
|
585
|
+
while (e) {
|
|
583
586
|
if (e.flags & 1) {
|
|
584
587
|
try {
|
|
585
588
|
;
|
|
@@ -588,6 +591,8 @@ var Vue = (function () {
|
|
|
588
591
|
if (!error) error = err;
|
|
589
592
|
}
|
|
590
593
|
}
|
|
594
|
+
next = e.next;
|
|
595
|
+
e.next = void 0;
|
|
591
596
|
e = next;
|
|
592
597
|
}
|
|
593
598
|
}
|
|
@@ -600,7 +605,7 @@ var Vue = (function () {
|
|
|
600
605
|
link.dep.activeLink = link;
|
|
601
606
|
}
|
|
602
607
|
}
|
|
603
|
-
function cleanupDeps(sub
|
|
608
|
+
function cleanupDeps(sub) {
|
|
604
609
|
let head;
|
|
605
610
|
let tail = sub.depsTail;
|
|
606
611
|
let link = tail;
|
|
@@ -608,7 +613,7 @@ var Vue = (function () {
|
|
|
608
613
|
const prev = link.prevDep;
|
|
609
614
|
if (link.version === -1) {
|
|
610
615
|
if (link === tail) tail = prev;
|
|
611
|
-
removeSub(link
|
|
616
|
+
removeSub(link);
|
|
612
617
|
removeDep(link);
|
|
613
618
|
} else {
|
|
614
619
|
head = link;
|
|
@@ -663,11 +668,11 @@ var Vue = (function () {
|
|
|
663
668
|
} finally {
|
|
664
669
|
activeSub = prevSub;
|
|
665
670
|
shouldTrack = prevShouldTrack;
|
|
666
|
-
cleanupDeps(computed
|
|
671
|
+
cleanupDeps(computed);
|
|
667
672
|
computed.flags &= ~2;
|
|
668
673
|
}
|
|
669
674
|
}
|
|
670
|
-
function removeSub(link,
|
|
675
|
+
function removeSub(link, soft = false) {
|
|
671
676
|
const { dep, prevSub, nextSub } = link;
|
|
672
677
|
if (prevSub) {
|
|
673
678
|
prevSub.nextSub = nextSub;
|
|
@@ -683,17 +688,15 @@ var Vue = (function () {
|
|
|
683
688
|
if (dep.subsHead === link) {
|
|
684
689
|
dep.subsHead = nextSub;
|
|
685
690
|
}
|
|
686
|
-
if (!dep.subs) {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
removeSub(l, true);
|
|
691
|
-
}
|
|
692
|
-
} else if (dep.map && !fromComputed) {
|
|
693
|
-
dep.map.delete(dep.key);
|
|
694
|
-
if (!dep.map.size) targetMap.delete(dep.target);
|
|
691
|
+
if (!dep.subs && dep.computed) {
|
|
692
|
+
dep.computed.flags &= ~4;
|
|
693
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
694
|
+
removeSub(l, true);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
+
if (!soft && !--dep.sc && dep.map) {
|
|
698
|
+
dep.map.delete(dep.key);
|
|
699
|
+
}
|
|
697
700
|
}
|
|
698
701
|
function removeDep(link) {
|
|
699
702
|
const { prevDep, nextDep } = link;
|
|
@@ -778,6 +781,10 @@ var Vue = (function () {
|
|
|
778
781
|
this.target = void 0;
|
|
779
782
|
this.map = void 0;
|
|
780
783
|
this.key = void 0;
|
|
784
|
+
/**
|
|
785
|
+
* Subscriber counter
|
|
786
|
+
*/
|
|
787
|
+
this.sc = 0;
|
|
781
788
|
{
|
|
782
789
|
this.subsHead = void 0;
|
|
783
790
|
}
|
|
@@ -796,9 +803,7 @@ var Vue = (function () {
|
|
|
796
803
|
activeSub.depsTail.nextDep = link;
|
|
797
804
|
activeSub.depsTail = link;
|
|
798
805
|
}
|
|
799
|
-
|
|
800
|
-
addSub(link);
|
|
801
|
-
}
|
|
806
|
+
addSub(link);
|
|
802
807
|
} else if (link.version === -1) {
|
|
803
808
|
link.version = this.version;
|
|
804
809
|
if (link.nextDep) {
|
|
@@ -862,22 +867,25 @@ var Vue = (function () {
|
|
|
862
867
|
}
|
|
863
868
|
}
|
|
864
869
|
function addSub(link) {
|
|
865
|
-
|
|
866
|
-
if (
|
|
867
|
-
computed
|
|
868
|
-
|
|
869
|
-
|
|
870
|
+
link.dep.sc++;
|
|
871
|
+
if (link.sub.flags & 4) {
|
|
872
|
+
const computed = link.dep.computed;
|
|
873
|
+
if (computed && !link.dep.subs) {
|
|
874
|
+
computed.flags |= 4 | 16;
|
|
875
|
+
for (let l = computed.deps; l; l = l.nextDep) {
|
|
876
|
+
addSub(l);
|
|
877
|
+
}
|
|
870
878
|
}
|
|
879
|
+
const currentTail = link.dep.subs;
|
|
880
|
+
if (currentTail !== link) {
|
|
881
|
+
link.prevSub = currentTail;
|
|
882
|
+
if (currentTail) currentTail.nextSub = link;
|
|
883
|
+
}
|
|
884
|
+
if (link.dep.subsHead === void 0) {
|
|
885
|
+
link.dep.subsHead = link;
|
|
886
|
+
}
|
|
887
|
+
link.dep.subs = link;
|
|
871
888
|
}
|
|
872
|
-
const currentTail = link.dep.subs;
|
|
873
|
-
if (currentTail !== link) {
|
|
874
|
-
link.prevSub = currentTail;
|
|
875
|
-
if (currentTail) currentTail.nextSub = link;
|
|
876
|
-
}
|
|
877
|
-
if (link.dep.subsHead === void 0) {
|
|
878
|
-
link.dep.subsHead = link;
|
|
879
|
-
}
|
|
880
|
-
link.dep.subs = link;
|
|
881
889
|
}
|
|
882
890
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
883
891
|
const ITERATE_KEY = Symbol(
|
|
@@ -981,8 +989,8 @@ var Vue = (function () {
|
|
|
981
989
|
endBatch();
|
|
982
990
|
}
|
|
983
991
|
function getDepFromReactive(object, key) {
|
|
984
|
-
|
|
985
|
-
return
|
|
992
|
+
const depMap = targetMap.get(object);
|
|
993
|
+
return depMap && depMap.get(key);
|
|
986
994
|
}
|
|
987
995
|
|
|
988
996
|
function reactiveReadArray(array) {
|
|
@@ -4165,6 +4173,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4165
4173
|
`useId() is called when there is no active component instance to be associated with.`
|
|
4166
4174
|
);
|
|
4167
4175
|
}
|
|
4176
|
+
return "";
|
|
4168
4177
|
}
|
|
4169
4178
|
function markAsyncBoundary(instance) {
|
|
4170
4179
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
@@ -7077,7 +7086,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7077
7086
|
return vm;
|
|
7078
7087
|
}
|
|
7079
7088
|
}
|
|
7080
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7089
|
+
Vue.version = `2.6.14-compat:${"3.5.9"}`;
|
|
7081
7090
|
Vue.config = singletonApp.config;
|
|
7082
7091
|
Vue.use = (plugin, ...options) => {
|
|
7083
7092
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11412,7 +11421,7 @@ Component that was made reactive: `,
|
|
|
11412
11421
|
// #3666, avoid reference pollution when reusing vnode
|
|
11413
11422
|
child.slice()
|
|
11414
11423
|
);
|
|
11415
|
-
} else if (
|
|
11424
|
+
} else if (isVNode(child)) {
|
|
11416
11425
|
return cloneIfMounted(child);
|
|
11417
11426
|
} else {
|
|
11418
11427
|
return createVNode(Text, null, String(child));
|
|
@@ -12155,7 +12164,7 @@ Component that was made reactive: `,
|
|
|
12155
12164
|
return true;
|
|
12156
12165
|
}
|
|
12157
12166
|
|
|
12158
|
-
const version = "3.5.
|
|
12167
|
+
const version = "3.5.9";
|
|
12159
12168
|
const warn = warn$1 ;
|
|
12160
12169
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12161
12170
|
const devtools = devtools$1 ;
|
|
@@ -13731,7 +13740,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13731
13740
|
setChecked(el, binding, vnode);
|
|
13732
13741
|
}
|
|
13733
13742
|
};
|
|
13734
|
-
function setChecked(el, { value
|
|
13743
|
+
function setChecked(el, { value }, vnode) {
|
|
13735
13744
|
el._modelValue = value;
|
|
13736
13745
|
let checked;
|
|
13737
13746
|
if (isArray(value)) {
|
|
@@ -13781,19 +13790,19 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13781
13790
|
},
|
|
13782
13791
|
// set value in mounted & updated because <select> relies on its children
|
|
13783
13792
|
// <option>s.
|
|
13784
|
-
mounted(el, { value
|
|
13793
|
+
mounted(el, { value }) {
|
|
13785
13794
|
setSelected(el, value);
|
|
13786
13795
|
},
|
|
13787
13796
|
beforeUpdate(el, _binding, vnode) {
|
|
13788
13797
|
el[assignKey] = getModelAssigner(vnode);
|
|
13789
13798
|
},
|
|
13790
|
-
updated(el, { value
|
|
13799
|
+
updated(el, { value }) {
|
|
13791
13800
|
if (!el._assigning) {
|
|
13792
13801
|
setSelected(el, value);
|
|
13793
13802
|
}
|
|
13794
13803
|
}
|
|
13795
13804
|
};
|
|
13796
|
-
function setSelected(el, value
|
|
13805
|
+
function setSelected(el, value) {
|
|
13797
13806
|
const isMultiple = el.multiple;
|
|
13798
13807
|
const isArrayValue = isArray(value);
|
|
13799
13808
|
if (isMultiple && !isArrayValue && !isSet(value)) {
|