vue 3.5.7 → 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 +5 -14
- package/dist/vue.cjs.prod.js +5 -14
- package/dist/vue.esm-browser.js +58 -52
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +6 -15
- package/dist/vue.global.js +58 -52
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +48 -39
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +48 -39
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -24,15 +24,7 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
|
|
25
25
|
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
|
26
26
|
|
|
27
|
-
const compileCache = /* @__PURE__ */
|
|
28
|
-
function getCache(options) {
|
|
29
|
-
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
|
|
30
|
-
if (!c) {
|
|
31
|
-
c = /* @__PURE__ */ Object.create(null);
|
|
32
|
-
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
|
|
33
|
-
}
|
|
34
|
-
return c;
|
|
35
|
-
}
|
|
27
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
36
28
|
function compileToFunction(template, options) {
|
|
37
29
|
if (!shared.isString(template)) {
|
|
38
30
|
if (template.nodeType) {
|
|
@@ -42,9 +34,8 @@ function compileToFunction(template, options) {
|
|
|
42
34
|
return shared.NOOP;
|
|
43
35
|
}
|
|
44
36
|
}
|
|
45
|
-
const key = template;
|
|
46
|
-
const
|
|
47
|
-
const cached = cache[key];
|
|
37
|
+
const key = shared.genCacheKey(template, options);
|
|
38
|
+
const cached = compileCache[key];
|
|
48
39
|
if (cached) {
|
|
49
40
|
return cached;
|
|
50
41
|
}
|
|
@@ -79,7 +70,7 @@ ${codeFrame}` : message);
|
|
|
79
70
|
}
|
|
80
71
|
const render = new Function("Vue", code)(runtimeDom__namespace);
|
|
81
72
|
render._rc = true;
|
|
82
|
-
return
|
|
73
|
+
return compileCache[key] = render;
|
|
83
74
|
}
|
|
84
75
|
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
|
85
76
|
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -24,15 +24,7 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
|
|
25
25
|
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
|
26
26
|
|
|
27
|
-
const compileCache = /* @__PURE__ */
|
|
28
|
-
function getCache(options) {
|
|
29
|
-
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
|
|
30
|
-
if (!c) {
|
|
31
|
-
c = /* @__PURE__ */ Object.create(null);
|
|
32
|
-
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
|
|
33
|
-
}
|
|
34
|
-
return c;
|
|
35
|
-
}
|
|
27
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
36
28
|
function compileToFunction(template, options) {
|
|
37
29
|
if (!shared.isString(template)) {
|
|
38
30
|
if (template.nodeType) {
|
|
@@ -41,9 +33,8 @@ function compileToFunction(template, options) {
|
|
|
41
33
|
return shared.NOOP;
|
|
42
34
|
}
|
|
43
35
|
}
|
|
44
|
-
const key = template;
|
|
45
|
-
const
|
|
46
|
-
const cached = cache[key];
|
|
36
|
+
const key = shared.genCacheKey(template, options);
|
|
37
|
+
const cached = compileCache[key];
|
|
47
38
|
if (cached) {
|
|
48
39
|
return cached;
|
|
49
40
|
}
|
|
@@ -65,7 +56,7 @@ function compileToFunction(template, options) {
|
|
|
65
56
|
const { code } = compilerDom.compile(template, opts);
|
|
66
57
|
const render = new Function("Vue", code)(runtimeDom__namespace);
|
|
67
58
|
render._rc = true;
|
|
68
|
-
return
|
|
59
|
+
return compileCache[key] = render;
|
|
69
60
|
}
|
|
70
61
|
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
|
71
62
|
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -106,6 +106,12 @@ let _globalThis;
|
|
|
106
106
|
const getGlobalThis = () => {
|
|
107
107
|
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
108
108
|
};
|
|
109
|
+
function genCacheKey(source, options) {
|
|
110
|
+
return source + JSON.stringify(
|
|
111
|
+
options,
|
|
112
|
+
(_, val) => typeof val === "function" ? val.toString() : val
|
|
113
|
+
);
|
|
114
|
+
}
|
|
109
115
|
|
|
110
116
|
const PatchFlagNames = {
|
|
111
117
|
[1]: `TEXT`,
|
|
@@ -639,11 +645,14 @@ function endBatch() {
|
|
|
639
645
|
let error;
|
|
640
646
|
while (batchedSub) {
|
|
641
647
|
let e = batchedSub;
|
|
642
|
-
|
|
648
|
+
let next;
|
|
643
649
|
while (e) {
|
|
644
|
-
const next = e.next;
|
|
645
|
-
e.next = void 0;
|
|
646
650
|
e.flags &= ~8;
|
|
651
|
+
e = e.next;
|
|
652
|
+
}
|
|
653
|
+
e = batchedSub;
|
|
654
|
+
batchedSub = void 0;
|
|
655
|
+
while (e) {
|
|
647
656
|
if (e.flags & 1) {
|
|
648
657
|
try {
|
|
649
658
|
;
|
|
@@ -652,6 +661,8 @@ function endBatch() {
|
|
|
652
661
|
if (!error) error = err;
|
|
653
662
|
}
|
|
654
663
|
}
|
|
664
|
+
next = e.next;
|
|
665
|
+
e.next = void 0;
|
|
655
666
|
e = next;
|
|
656
667
|
}
|
|
657
668
|
}
|
|
@@ -731,7 +742,7 @@ function refreshComputed(computed) {
|
|
|
731
742
|
computed.flags &= ~2;
|
|
732
743
|
}
|
|
733
744
|
}
|
|
734
|
-
function removeSub(link,
|
|
745
|
+
function removeSub(link, soft = false) {
|
|
735
746
|
const { dep, prevSub, nextSub } = link;
|
|
736
747
|
if (prevSub) {
|
|
737
748
|
prevSub.nextSub = nextSub;
|
|
@@ -747,17 +758,15 @@ function removeSub(link, fromComputed = false) {
|
|
|
747
758
|
if (dep.subsHead === link) {
|
|
748
759
|
dep.subsHead = nextSub;
|
|
749
760
|
}
|
|
750
|
-
if (!dep.subs) {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
removeSub(l, true);
|
|
755
|
-
}
|
|
756
|
-
} else if (dep.map && !fromComputed) {
|
|
757
|
-
dep.map.delete(dep.key);
|
|
758
|
-
if (!dep.map.size) targetMap.delete(dep.target);
|
|
761
|
+
if (!dep.subs && dep.computed) {
|
|
762
|
+
dep.computed.flags &= ~4;
|
|
763
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
764
|
+
removeSub(l, true);
|
|
759
765
|
}
|
|
760
766
|
}
|
|
767
|
+
if (!soft && !--dep.sc && dep.map) {
|
|
768
|
+
dep.map.delete(dep.key);
|
|
769
|
+
}
|
|
761
770
|
}
|
|
762
771
|
function removeDep(link) {
|
|
763
772
|
const { prevDep, nextDep } = link;
|
|
@@ -842,6 +851,10 @@ class Dep {
|
|
|
842
851
|
this.target = void 0;
|
|
843
852
|
this.map = void 0;
|
|
844
853
|
this.key = void 0;
|
|
854
|
+
/**
|
|
855
|
+
* Subscriber counter
|
|
856
|
+
*/
|
|
857
|
+
this.sc = 0;
|
|
845
858
|
{
|
|
846
859
|
this.subsHead = void 0;
|
|
847
860
|
}
|
|
@@ -860,9 +873,7 @@ class Dep {
|
|
|
860
873
|
activeSub.depsTail.nextDep = link;
|
|
861
874
|
activeSub.depsTail = link;
|
|
862
875
|
}
|
|
863
|
-
|
|
864
|
-
addSub(link);
|
|
865
|
-
}
|
|
876
|
+
addSub(link);
|
|
866
877
|
} else if (link.version === -1) {
|
|
867
878
|
link.version = this.version;
|
|
868
879
|
if (link.nextDep) {
|
|
@@ -926,22 +937,25 @@ class Dep {
|
|
|
926
937
|
}
|
|
927
938
|
}
|
|
928
939
|
function addSub(link) {
|
|
929
|
-
|
|
930
|
-
if (
|
|
931
|
-
computed
|
|
932
|
-
|
|
933
|
-
|
|
940
|
+
link.dep.sc++;
|
|
941
|
+
if (link.sub.flags & 4) {
|
|
942
|
+
const computed = link.dep.computed;
|
|
943
|
+
if (computed && !link.dep.subs) {
|
|
944
|
+
computed.flags |= 4 | 16;
|
|
945
|
+
for (let l = computed.deps; l; l = l.nextDep) {
|
|
946
|
+
addSub(l);
|
|
947
|
+
}
|
|
934
948
|
}
|
|
949
|
+
const currentTail = link.dep.subs;
|
|
950
|
+
if (currentTail !== link) {
|
|
951
|
+
link.prevSub = currentTail;
|
|
952
|
+
if (currentTail) currentTail.nextSub = link;
|
|
953
|
+
}
|
|
954
|
+
if (link.dep.subsHead === void 0) {
|
|
955
|
+
link.dep.subsHead = link;
|
|
956
|
+
}
|
|
957
|
+
link.dep.subs = link;
|
|
935
958
|
}
|
|
936
|
-
const currentTail = link.dep.subs;
|
|
937
|
-
if (currentTail !== link) {
|
|
938
|
-
link.prevSub = currentTail;
|
|
939
|
-
if (currentTail) currentTail.nextSub = link;
|
|
940
|
-
}
|
|
941
|
-
if (link.dep.subsHead === void 0) {
|
|
942
|
-
link.dep.subsHead = link;
|
|
943
|
-
}
|
|
944
|
-
link.dep.subs = link;
|
|
945
959
|
}
|
|
946
960
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
947
961
|
const ITERATE_KEY = Symbol(
|
|
@@ -1045,8 +1059,8 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
1045
1059
|
endBatch();
|
|
1046
1060
|
}
|
|
1047
1061
|
function getDepFromReactive(object, key) {
|
|
1048
|
-
|
|
1049
|
-
return
|
|
1062
|
+
const depMap = targetMap.get(object);
|
|
1063
|
+
return depMap && depMap.get(key);
|
|
1050
1064
|
}
|
|
1051
1065
|
|
|
1052
1066
|
function reactiveReadArray(array) {
|
|
@@ -3698,6 +3712,7 @@ function useId() {
|
|
|
3698
3712
|
`useId() is called when there is no active component instance to be associated with.`
|
|
3699
3713
|
);
|
|
3700
3714
|
}
|
|
3715
|
+
return "";
|
|
3701
3716
|
}
|
|
3702
3717
|
function markAsyncBoundary(instance) {
|
|
3703
3718
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
@@ -9758,7 +9773,7 @@ function normalizeVNode(child) {
|
|
|
9758
9773
|
// #3666, avoid reference pollution when reusing vnode
|
|
9759
9774
|
child.slice()
|
|
9760
9775
|
);
|
|
9761
|
-
} else if (
|
|
9776
|
+
} else if (isVNode(child)) {
|
|
9762
9777
|
return cloneIfMounted(child);
|
|
9763
9778
|
} else {
|
|
9764
9779
|
return createVNode(Text, null, String(child));
|
|
@@ -10503,7 +10518,7 @@ function isMemoSame(cached, memo) {
|
|
|
10503
10518
|
return true;
|
|
10504
10519
|
}
|
|
10505
10520
|
|
|
10506
|
-
const version = "3.5.
|
|
10521
|
+
const version = "3.5.9";
|
|
10507
10522
|
const warn = warn$1 ;
|
|
10508
10523
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10509
10524
|
const devtools = devtools$1 ;
|
|
@@ -12013,7 +12028,7 @@ const vModelCheckbox = {
|
|
|
12013
12028
|
setChecked(el, binding, vnode);
|
|
12014
12029
|
}
|
|
12015
12030
|
};
|
|
12016
|
-
function setChecked(el, { value
|
|
12031
|
+
function setChecked(el, { value }, vnode) {
|
|
12017
12032
|
el._modelValue = value;
|
|
12018
12033
|
let checked;
|
|
12019
12034
|
if (isArray(value)) {
|
|
@@ -12063,19 +12078,19 @@ const vModelSelect = {
|
|
|
12063
12078
|
},
|
|
12064
12079
|
// set value in mounted & updated because <select> relies on its children
|
|
12065
12080
|
// <option>s.
|
|
12066
|
-
mounted(el, { value
|
|
12081
|
+
mounted(el, { value }) {
|
|
12067
12082
|
setSelected(el, value);
|
|
12068
12083
|
},
|
|
12069
12084
|
beforeUpdate(el, _binding, vnode) {
|
|
12070
12085
|
el[assignKey] = getModelAssigner(vnode);
|
|
12071
12086
|
},
|
|
12072
|
-
updated(el, { value
|
|
12087
|
+
updated(el, { value }) {
|
|
12073
12088
|
if (!el._assigning) {
|
|
12074
12089
|
setSelected(el, value);
|
|
12075
12090
|
}
|
|
12076
12091
|
}
|
|
12077
12092
|
};
|
|
12078
|
-
function setSelected(el, value
|
|
12093
|
+
function setSelected(el, value) {
|
|
12079
12094
|
const isMultiple = el.multiple;
|
|
12080
12095
|
const isArrayValue = isArray(value);
|
|
12081
12096
|
if (isMultiple && !isArrayValue && !isSet(value)) {
|
|
@@ -18116,15 +18131,7 @@ function compile(src, options = {}) {
|
|
|
18116
18131
|
{
|
|
18117
18132
|
initDev();
|
|
18118
18133
|
}
|
|
18119
|
-
const compileCache = /* @__PURE__ */
|
|
18120
|
-
function getCache(options) {
|
|
18121
|
-
let c = compileCache.get(options != null ? options : EMPTY_OBJ);
|
|
18122
|
-
if (!c) {
|
|
18123
|
-
c = /* @__PURE__ */ Object.create(null);
|
|
18124
|
-
compileCache.set(options != null ? options : EMPTY_OBJ, c);
|
|
18125
|
-
}
|
|
18126
|
-
return c;
|
|
18127
|
-
}
|
|
18134
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
18128
18135
|
function compileToFunction(template, options) {
|
|
18129
18136
|
if (!isString(template)) {
|
|
18130
18137
|
if (template.nodeType) {
|
|
@@ -18134,9 +18141,8 @@ function compileToFunction(template, options) {
|
|
|
18134
18141
|
return NOOP;
|
|
18135
18142
|
}
|
|
18136
18143
|
}
|
|
18137
|
-
const key = template;
|
|
18138
|
-
const
|
|
18139
|
-
const cached = cache[key];
|
|
18144
|
+
const key = genCacheKey(template, options);
|
|
18145
|
+
const cached = compileCache[key];
|
|
18140
18146
|
if (cached) {
|
|
18141
18147
|
return cached;
|
|
18142
18148
|
}
|
|
@@ -18171,7 +18177,7 @@ ${codeFrame}` : message);
|
|
|
18171
18177
|
}
|
|
18172
18178
|
const render = new Function("Vue", code)(runtimeDom);
|
|
18173
18179
|
render._rc = true;
|
|
18174
|
-
return
|
|
18180
|
+
return compileCache[key] = render;
|
|
18175
18181
|
}
|
|
18176
18182
|
registerRuntimeCompiler(compileToFunction);
|
|
18177
18183
|
|