@vue/compat 3.5.0-beta.1 → 3.5.0-beta.2
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 +57 -36
- package/dist/vue.cjs.prod.js +57 -36
- package/dist/vue.esm-browser.js +40 -34
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +40 -34
- package/dist/vue.global.js +40 -34
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +31 -28
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +31 -28
- package/dist/vue.runtime.global.js +31 -28
- 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.0-beta.
|
|
2
|
+
* @vue/compat v3.5.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -465,11 +465,11 @@ class ReactiveEffect {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
pause() {
|
|
468
|
-
this.flags |=
|
|
468
|
+
this.flags |= 64;
|
|
469
469
|
}
|
|
470
470
|
resume() {
|
|
471
|
-
if (this.flags &
|
|
472
|
-
this.flags &= ~
|
|
471
|
+
if (this.flags & 64) {
|
|
472
|
+
this.flags &= ~64;
|
|
473
473
|
if (pausedQueueEffects.has(this)) {
|
|
474
474
|
pausedQueueEffects.delete(this);
|
|
475
475
|
this.trigger();
|
|
@@ -483,9 +483,6 @@ class ReactiveEffect {
|
|
|
483
483
|
if (this.flags & 2 && !(this.flags & 32)) {
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
if (this.flags & 64) {
|
|
487
|
-
return this.trigger();
|
|
488
|
-
}
|
|
489
486
|
if (!(this.flags & 8)) {
|
|
490
487
|
this.flags |= 8;
|
|
491
488
|
this.nextEffect = batchedEffect;
|
|
@@ -529,7 +526,7 @@ class ReactiveEffect {
|
|
|
529
526
|
}
|
|
530
527
|
}
|
|
531
528
|
trigger() {
|
|
532
|
-
if (this.flags &
|
|
529
|
+
if (this.flags & 64) {
|
|
533
530
|
pausedQueueEffects.add(this);
|
|
534
531
|
} else if (this.scheduler) {
|
|
535
532
|
this.scheduler();
|
|
@@ -559,6 +556,7 @@ function endBatch() {
|
|
|
559
556
|
batchDepth--;
|
|
560
557
|
return;
|
|
561
558
|
}
|
|
559
|
+
batchDepth--;
|
|
562
560
|
let error;
|
|
563
561
|
while (batchedEffect) {
|
|
564
562
|
let e = batchedEffect;
|
|
@@ -577,7 +575,6 @@ function endBatch() {
|
|
|
577
575
|
e = next;
|
|
578
576
|
}
|
|
579
577
|
}
|
|
580
|
-
batchDepth--;
|
|
581
578
|
if (error) throw error;
|
|
582
579
|
}
|
|
583
580
|
function prepareDeps(sub) {
|
|
@@ -980,26 +977,26 @@ const arrayInstrumentations = {
|
|
|
980
977
|
});
|
|
981
978
|
},
|
|
982
979
|
every(fn, thisArg) {
|
|
983
|
-
return apply(this, "every", fn, thisArg);
|
|
980
|
+
return apply(this, "every", fn, thisArg, void 0, arguments);
|
|
984
981
|
},
|
|
985
982
|
filter(fn, thisArg) {
|
|
986
|
-
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
|
|
983
|
+
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
|
|
987
984
|
},
|
|
988
985
|
find(fn, thisArg) {
|
|
989
|
-
return apply(this, "find", fn, thisArg, toReactive);
|
|
986
|
+
return apply(this, "find", fn, thisArg, toReactive, arguments);
|
|
990
987
|
},
|
|
991
988
|
findIndex(fn, thisArg) {
|
|
992
|
-
return apply(this, "findIndex", fn, thisArg);
|
|
989
|
+
return apply(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
993
990
|
},
|
|
994
991
|
findLast(fn, thisArg) {
|
|
995
|
-
return apply(this, "findLast", fn, thisArg, toReactive);
|
|
992
|
+
return apply(this, "findLast", fn, thisArg, toReactive, arguments);
|
|
996
993
|
},
|
|
997
994
|
findLastIndex(fn, thisArg) {
|
|
998
|
-
return apply(this, "findLastIndex", fn, thisArg);
|
|
995
|
+
return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
999
996
|
},
|
|
1000
997
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
1001
998
|
forEach(fn, thisArg) {
|
|
1002
|
-
return apply(this, "forEach", fn, thisArg);
|
|
999
|
+
return apply(this, "forEach", fn, thisArg, void 0, arguments);
|
|
1003
1000
|
},
|
|
1004
1001
|
includes(...args) {
|
|
1005
1002
|
return searchProxy(this, "includes", args);
|
|
@@ -1015,7 +1012,7 @@ const arrayInstrumentations = {
|
|
|
1015
1012
|
return searchProxy(this, "lastIndexOf", args);
|
|
1016
1013
|
},
|
|
1017
1014
|
map(fn, thisArg) {
|
|
1018
|
-
return apply(this, "map", fn, thisArg);
|
|
1015
|
+
return apply(this, "map", fn, thisArg, void 0, arguments);
|
|
1019
1016
|
},
|
|
1020
1017
|
pop() {
|
|
1021
1018
|
return noTracking(this, "pop");
|
|
@@ -1034,7 +1031,7 @@ const arrayInstrumentations = {
|
|
|
1034
1031
|
},
|
|
1035
1032
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
1036
1033
|
some(fn, thisArg) {
|
|
1037
|
-
return apply(this, "some", fn, thisArg);
|
|
1034
|
+
return apply(this, "some", fn, thisArg, void 0, arguments);
|
|
1038
1035
|
},
|
|
1039
1036
|
splice(...args) {
|
|
1040
1037
|
return noTracking(this, "splice", args);
|
|
@@ -1070,8 +1067,13 @@ function iterator(self, method, wrapValue) {
|
|
|
1070
1067
|
}
|
|
1071
1068
|
return iter;
|
|
1072
1069
|
}
|
|
1073
|
-
|
|
1070
|
+
const arrayProto = Array.prototype;
|
|
1071
|
+
function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
1074
1072
|
const arr = shallowReadArray(self);
|
|
1073
|
+
let methodFn;
|
|
1074
|
+
if ((methodFn = arr[method]) !== arrayProto[method]) {
|
|
1075
|
+
return methodFn.apply(arr, args);
|
|
1076
|
+
}
|
|
1075
1077
|
let needsWrap = false;
|
|
1076
1078
|
let wrappedFn = fn;
|
|
1077
1079
|
if (arr !== self) {
|
|
@@ -1086,7 +1088,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn) {
|
|
|
1086
1088
|
};
|
|
1087
1089
|
}
|
|
1088
1090
|
}
|
|
1089
|
-
const result = arr
|
|
1091
|
+
const result = methodFn.call(arr, wrappedFn, thisArg);
|
|
1090
1092
|
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
|
|
1091
1093
|
}
|
|
1092
1094
|
function reduce(self, method, fn, args) {
|
|
@@ -4022,6 +4024,7 @@ const logMismatchError = () => {
|
|
|
4022
4024
|
const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
|
|
4023
4025
|
const isMathMLContainer = (container) => container.namespaceURI.includes("MathML");
|
|
4024
4026
|
const getContainerType = (container) => {
|
|
4027
|
+
if (container.nodeType !== 1) return void 0;
|
|
4025
4028
|
if (isSVGContainer(container)) return "svg";
|
|
4026
4029
|
if (isMathMLContainer(container)) return "mathml";
|
|
4027
4030
|
return void 0;
|
|
@@ -4950,7 +4953,7 @@ const KeepAliveImpl = {
|
|
|
4950
4953
|
function pruneCache(filter) {
|
|
4951
4954
|
cache.forEach((vnode, key) => {
|
|
4952
4955
|
const name = getComponentName(vnode.type);
|
|
4953
|
-
if (name &&
|
|
4956
|
+
if (name && !filter(name)) {
|
|
4954
4957
|
pruneCacheEntry(key);
|
|
4955
4958
|
}
|
|
4956
4959
|
});
|
|
@@ -5072,6 +5075,7 @@ function matches(pattern, name) {
|
|
|
5072
5075
|
} else if (isString(pattern)) {
|
|
5073
5076
|
return pattern.split(",").includes(name);
|
|
5074
5077
|
} else if (isRegExp(pattern)) {
|
|
5078
|
+
pattern.lastIndex = 0;
|
|
5075
5079
|
return pattern.test(name);
|
|
5076
5080
|
}
|
|
5077
5081
|
return false;
|
|
@@ -6756,7 +6760,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6756
6760
|
return vm;
|
|
6757
6761
|
}
|
|
6758
6762
|
}
|
|
6759
|
-
Vue.version = `2.6.14-compat:${"3.5.0-beta.
|
|
6763
|
+
Vue.version = `2.6.14-compat:${"3.5.0-beta.2"}`;
|
|
6760
6764
|
Vue.config = singletonApp.config;
|
|
6761
6765
|
Vue.use = (plugin, ...options) => {
|
|
6762
6766
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9708,7 +9712,6 @@ function doWatch(source, cb, {
|
|
|
9708
9712
|
const effect = new ReactiveEffect(getter);
|
|
9709
9713
|
let scheduler;
|
|
9710
9714
|
if (flush === "sync") {
|
|
9711
|
-
effect.flags |= 64;
|
|
9712
9715
|
scheduler = job;
|
|
9713
9716
|
} else if (flush === "post") {
|
|
9714
9717
|
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
@@ -12060,7 +12063,7 @@ function isMemoSame(cached, memo) {
|
|
|
12060
12063
|
return true;
|
|
12061
12064
|
}
|
|
12062
12065
|
|
|
12063
|
-
const version = "3.5.0-beta.
|
|
12066
|
+
const version = "3.5.0-beta.2";
|
|
12064
12067
|
const warn = warn$1 ;
|
|
12065
12068
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12066
12069
|
const devtools = devtools$1 ;
|
|
@@ -13017,7 +13020,6 @@ class VueElement extends BaseClass {
|
|
|
13017
13020
|
this._ob = null;
|
|
13018
13021
|
if (this.shadowRoot && _createApp !== createApp) {
|
|
13019
13022
|
this._root = this.shadowRoot;
|
|
13020
|
-
this._mount(_def);
|
|
13021
13023
|
} else {
|
|
13022
13024
|
if (this.shadowRoot) {
|
|
13023
13025
|
warn(
|
|
@@ -13030,9 +13032,9 @@ class VueElement extends BaseClass {
|
|
|
13030
13032
|
} else {
|
|
13031
13033
|
this._root = this;
|
|
13032
13034
|
}
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13035
|
+
}
|
|
13036
|
+
if (!this._def.__asyncLoader) {
|
|
13037
|
+
this._resolveProps(this._def);
|
|
13036
13038
|
}
|
|
13037
13039
|
}
|
|
13038
13040
|
connectedCallback() {
|
|
@@ -13232,6 +13234,7 @@ class VueElement extends BaseClass {
|
|
|
13232
13234
|
vnode.ce = (instance) => {
|
|
13233
13235
|
this._instance = instance;
|
|
13234
13236
|
instance.ce = this;
|
|
13237
|
+
instance.isCE = true;
|
|
13235
13238
|
{
|
|
13236
13239
|
instance.ceReload = (newStyles) => {
|
|
13237
13240
|
if (this._styles) {
|