@vue/runtime-dom 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/runtime-dom.cjs.js +5 -5
- package/dist/runtime-dom.cjs.prod.js +5 -5
- package/dist/runtime-dom.d.ts +10 -1
- package/dist/runtime-dom.esm-browser.js +30 -27
- package/dist/runtime-dom.esm-browser.prod.js +2 -2
- package/dist/runtime-dom.esm-bundler.js +5 -5
- package/dist/runtime-dom.global.js +30 -27
- package/dist/runtime-dom.global.prod.js +2 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.5.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -468,11 +468,11 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
pause() {
|
|
471
|
-
this.flags |=
|
|
471
|
+
this.flags |= 64;
|
|
472
472
|
}
|
|
473
473
|
resume() {
|
|
474
|
-
if (this.flags &
|
|
475
|
-
this.flags &= ~
|
|
474
|
+
if (this.flags & 64) {
|
|
475
|
+
this.flags &= ~64;
|
|
476
476
|
if (pausedQueueEffects.has(this)) {
|
|
477
477
|
pausedQueueEffects.delete(this);
|
|
478
478
|
this.trigger();
|
|
@@ -486,9 +486,6 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
486
486
|
if (this.flags & 2 && !(this.flags & 32)) {
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
|
-
if (this.flags & 64) {
|
|
490
|
-
return this.trigger();
|
|
491
|
-
}
|
|
492
489
|
if (!(this.flags & 8)) {
|
|
493
490
|
this.flags |= 8;
|
|
494
491
|
this.nextEffect = batchedEffect;
|
|
@@ -532,7 +529,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
532
529
|
}
|
|
533
530
|
}
|
|
534
531
|
trigger() {
|
|
535
|
-
if (this.flags &
|
|
532
|
+
if (this.flags & 64) {
|
|
536
533
|
pausedQueueEffects.add(this);
|
|
537
534
|
} else if (this.scheduler) {
|
|
538
535
|
this.scheduler();
|
|
@@ -562,6 +559,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
562
559
|
batchDepth--;
|
|
563
560
|
return;
|
|
564
561
|
}
|
|
562
|
+
batchDepth--;
|
|
565
563
|
let error;
|
|
566
564
|
while (batchedEffect) {
|
|
567
565
|
let e = batchedEffect;
|
|
@@ -580,7 +578,6 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
580
578
|
e = next;
|
|
581
579
|
}
|
|
582
580
|
}
|
|
583
|
-
batchDepth--;
|
|
584
581
|
if (error) throw error;
|
|
585
582
|
}
|
|
586
583
|
function prepareDeps(sub) {
|
|
@@ -983,26 +980,26 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
983
980
|
});
|
|
984
981
|
},
|
|
985
982
|
every(fn, thisArg) {
|
|
986
|
-
return apply(this, "every", fn, thisArg);
|
|
983
|
+
return apply(this, "every", fn, thisArg, void 0, arguments);
|
|
987
984
|
},
|
|
988
985
|
filter(fn, thisArg) {
|
|
989
|
-
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
|
|
986
|
+
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
|
|
990
987
|
},
|
|
991
988
|
find(fn, thisArg) {
|
|
992
|
-
return apply(this, "find", fn, thisArg, toReactive);
|
|
989
|
+
return apply(this, "find", fn, thisArg, toReactive, arguments);
|
|
993
990
|
},
|
|
994
991
|
findIndex(fn, thisArg) {
|
|
995
|
-
return apply(this, "findIndex", fn, thisArg);
|
|
992
|
+
return apply(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
996
993
|
},
|
|
997
994
|
findLast(fn, thisArg) {
|
|
998
|
-
return apply(this, "findLast", fn, thisArg, toReactive);
|
|
995
|
+
return apply(this, "findLast", fn, thisArg, toReactive, arguments);
|
|
999
996
|
},
|
|
1000
997
|
findLastIndex(fn, thisArg) {
|
|
1001
|
-
return apply(this, "findLastIndex", fn, thisArg);
|
|
998
|
+
return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
1002
999
|
},
|
|
1003
1000
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
1004
1001
|
forEach(fn, thisArg) {
|
|
1005
|
-
return apply(this, "forEach", fn, thisArg);
|
|
1002
|
+
return apply(this, "forEach", fn, thisArg, void 0, arguments);
|
|
1006
1003
|
},
|
|
1007
1004
|
includes(...args) {
|
|
1008
1005
|
return searchProxy(this, "includes", args);
|
|
@@ -1018,7 +1015,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1018
1015
|
return searchProxy(this, "lastIndexOf", args);
|
|
1019
1016
|
},
|
|
1020
1017
|
map(fn, thisArg) {
|
|
1021
|
-
return apply(this, "map", fn, thisArg);
|
|
1018
|
+
return apply(this, "map", fn, thisArg, void 0, arguments);
|
|
1022
1019
|
},
|
|
1023
1020
|
pop() {
|
|
1024
1021
|
return noTracking(this, "pop");
|
|
@@ -1037,7 +1034,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1037
1034
|
},
|
|
1038
1035
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
1039
1036
|
some(fn, thisArg) {
|
|
1040
|
-
return apply(this, "some", fn, thisArg);
|
|
1037
|
+
return apply(this, "some", fn, thisArg, void 0, arguments);
|
|
1041
1038
|
},
|
|
1042
1039
|
splice(...args) {
|
|
1043
1040
|
return noTracking(this, "splice", args);
|
|
@@ -1073,8 +1070,13 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1073
1070
|
}
|
|
1074
1071
|
return iter;
|
|
1075
1072
|
}
|
|
1076
|
-
|
|
1073
|
+
const arrayProto = Array.prototype;
|
|
1074
|
+
function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
1077
1075
|
const arr = shallowReadArray(self);
|
|
1076
|
+
let methodFn;
|
|
1077
|
+
if ((methodFn = arr[method]) !== arrayProto[method]) {
|
|
1078
|
+
return methodFn.apply(arr, args);
|
|
1079
|
+
}
|
|
1078
1080
|
let needsWrap = false;
|
|
1079
1081
|
let wrappedFn = fn;
|
|
1080
1082
|
if (arr !== self) {
|
|
@@ -1089,7 +1091,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1089
1091
|
};
|
|
1090
1092
|
}
|
|
1091
1093
|
}
|
|
1092
|
-
const result = arr
|
|
1094
|
+
const result = methodFn.call(arr, wrappedFn, thisArg);
|
|
1093
1095
|
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
|
|
1094
1096
|
}
|
|
1095
1097
|
function reduce(self, method, fn, args) {
|
|
@@ -3494,6 +3496,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3494
3496
|
const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
|
|
3495
3497
|
const isMathMLContainer = (container) => container.namespaceURI.includes("MathML");
|
|
3496
3498
|
const getContainerType = (container) => {
|
|
3499
|
+
if (container.nodeType !== 1) return void 0;
|
|
3497
3500
|
if (isSVGContainer(container)) return "svg";
|
|
3498
3501
|
if (isMathMLContainer(container)) return "mathml";
|
|
3499
3502
|
return void 0;
|
|
@@ -4416,7 +4419,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4416
4419
|
function pruneCache(filter) {
|
|
4417
4420
|
cache.forEach((vnode, key) => {
|
|
4418
4421
|
const name = getComponentName(vnode.type);
|
|
4419
|
-
if (name &&
|
|
4422
|
+
if (name && !filter(name)) {
|
|
4420
4423
|
pruneCacheEntry(key);
|
|
4421
4424
|
}
|
|
4422
4425
|
});
|
|
@@ -4535,6 +4538,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4535
4538
|
} else if (isString(pattern)) {
|
|
4536
4539
|
return pattern.split(",").includes(name);
|
|
4537
4540
|
} else if (isRegExp(pattern)) {
|
|
4541
|
+
pattern.lastIndex = 0;
|
|
4538
4542
|
return pattern.test(name);
|
|
4539
4543
|
}
|
|
4540
4544
|
return false;
|
|
@@ -8024,7 +8028,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8024
8028
|
const effect = new ReactiveEffect(getter);
|
|
8025
8029
|
let scheduler;
|
|
8026
8030
|
if (flush === "sync") {
|
|
8027
|
-
effect.flags |= 64;
|
|
8028
8031
|
scheduler = job;
|
|
8029
8032
|
} else if (flush === "post") {
|
|
8030
8033
|
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
@@ -10254,7 +10257,7 @@ Component that was made reactive: `,
|
|
|
10254
10257
|
return true;
|
|
10255
10258
|
}
|
|
10256
10259
|
|
|
10257
|
-
const version = "3.5.0-beta.
|
|
10260
|
+
const version = "3.5.0-beta.2";
|
|
10258
10261
|
const warn = warn$1 ;
|
|
10259
10262
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10260
10263
|
const devtools = devtools$1 ;
|
|
@@ -11106,7 +11109,6 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11106
11109
|
this._ob = null;
|
|
11107
11110
|
if (this.shadowRoot && _createApp !== createApp) {
|
|
11108
11111
|
this._root = this.shadowRoot;
|
|
11109
|
-
this._mount(_def);
|
|
11110
11112
|
} else {
|
|
11111
11113
|
if (this.shadowRoot) {
|
|
11112
11114
|
warn(
|
|
@@ -11119,9 +11121,9 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11119
11121
|
} else {
|
|
11120
11122
|
this._root = this;
|
|
11121
11123
|
}
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11124
|
+
}
|
|
11125
|
+
if (!this._def.__asyncLoader) {
|
|
11126
|
+
this._resolveProps(this._def);
|
|
11125
11127
|
}
|
|
11126
11128
|
}
|
|
11127
11129
|
connectedCallback() {
|
|
@@ -11321,6 +11323,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11321
11323
|
vnode.ce = (instance) => {
|
|
11322
11324
|
this._instance = instance;
|
|
11323
11325
|
instance.ce = this;
|
|
11326
|
+
instance.isCE = true;
|
|
11324
11327
|
{
|
|
11325
11328
|
instance.ceReload = (newStyles) => {
|
|
11326
11329
|
if (this._styles) {
|