@vue/runtime-dom 3.6.0-beta.11 → 3.6.0-beta.12
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 +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +22 -14
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +22 -14
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -433,6 +433,13 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
433
433
|
const notifyBuffer = [];
|
|
434
434
|
let batchDepth = 0;
|
|
435
435
|
let activeSub = void 0;
|
|
436
|
+
let runDepth = 0;
|
|
437
|
+
function incRunDepth() {
|
|
438
|
+
++runDepth;
|
|
439
|
+
}
|
|
440
|
+
function decRunDepth() {
|
|
441
|
+
--runDepth;
|
|
442
|
+
}
|
|
436
443
|
let globalVersion = 0;
|
|
437
444
|
let notifyIndex = 0;
|
|
438
445
|
let notifyBufferLength = 0;
|
|
@@ -506,8 +513,10 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
506
513
|
const sub = link.sub;
|
|
507
514
|
let flags = sub.flags;
|
|
508
515
|
if (flags & 3) {
|
|
509
|
-
if (!(flags & 60))
|
|
510
|
-
|
|
516
|
+
if (!(flags & 60)) {
|
|
517
|
+
sub.flags = flags | 32;
|
|
518
|
+
if (runDepth) sub.flags |= 8;
|
|
519
|
+
} else if (!(flags & 12)) flags = 0;
|
|
511
520
|
else if (!(flags & 4)) sub.flags = flags & -9 | 32;
|
|
512
521
|
else if (!(flags & 48) && isValidLink(link, sub)) {
|
|
513
522
|
sub.flags = flags | 40;
|
|
@@ -576,13 +585,13 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
576
585
|
let dirty = false;
|
|
577
586
|
if (sub.flags & 16) dirty = true;
|
|
578
587
|
else if ((depFlags & 17) === 17) {
|
|
588
|
+
const subs = dep.subs;
|
|
579
589
|
if (dep.update()) {
|
|
580
|
-
const subs = dep.subs;
|
|
581
590
|
if (subs.nextSub !== void 0) shallowPropagate(subs);
|
|
582
591
|
dirty = true;
|
|
583
592
|
}
|
|
584
593
|
} else if ((depFlags & 33) === 33) {
|
|
585
|
-
|
|
594
|
+
stack = {
|
|
586
595
|
value: link,
|
|
587
596
|
prev: stack
|
|
588
597
|
};
|
|
@@ -597,15 +606,12 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
597
606
|
}
|
|
598
607
|
while (checkDepth) {
|
|
599
608
|
--checkDepth;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
if (hasMultipleSubs) {
|
|
603
|
-
link = stack.value;
|
|
604
|
-
stack = stack.prev;
|
|
605
|
-
} else link = firstSub;
|
|
609
|
+
link = stack.value;
|
|
610
|
+
stack = stack.prev;
|
|
606
611
|
if (dirty) {
|
|
612
|
+
const subs = sub.subs;
|
|
607
613
|
if (sub.update()) {
|
|
608
|
-
if (
|
|
614
|
+
if (subs.nextSub !== void 0) shallowPropagate(subs);
|
|
609
615
|
sub = link.sub;
|
|
610
616
|
continue;
|
|
611
617
|
}
|
|
@@ -617,7 +623,7 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
617
623
|
}
|
|
618
624
|
dirty = false;
|
|
619
625
|
}
|
|
620
|
-
return dirty;
|
|
626
|
+
return dirty && !!sub.flags;
|
|
621
627
|
} while (true);
|
|
622
628
|
}
|
|
623
629
|
function shallowPropagate(link) {
|
|
@@ -1769,9 +1775,11 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
1769
1775
|
if (!this.active) return this.fn();
|
|
1770
1776
|
cleanup(this);
|
|
1771
1777
|
const prevSub = startTracking(this);
|
|
1778
|
+
incRunDepth();
|
|
1772
1779
|
try {
|
|
1773
1780
|
return this.fn();
|
|
1774
1781
|
} finally {
|
|
1782
|
+
decRunDepth();
|
|
1775
1783
|
endTracking(this, prevSub);
|
|
1776
1784
|
const flags = this.flags;
|
|
1777
1785
|
if ((flags & 136) === 136) {
|
|
@@ -8358,7 +8366,7 @@ var VueRuntimeDOM = (function(exports) {
|
|
|
8358
8366
|
}
|
|
8359
8367
|
//#endregion
|
|
8360
8368
|
//#region packages/runtime-core/src/index.ts
|
|
8361
|
-
const version = "3.6.0-beta.
|
|
8369
|
+
const version = "3.6.0-beta.12";
|
|
8362
8370
|
const warn = warn$1;
|
|
8363
8371
|
/**
|
|
8364
8372
|
* Runtime error messages. Only exposed in dev or esm builds.
|