vue 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/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +22 -14
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +22 -14
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime-with-vapor.esm-browser.js +4168 -3834
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +22 -14
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +22 -14
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +7 -7
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -521,6 +521,13 @@ function warn$2(msg, ...args) {
|
|
|
521
521
|
const notifyBuffer = [];
|
|
522
522
|
let batchDepth = 0;
|
|
523
523
|
let activeSub = void 0;
|
|
524
|
+
let runDepth = 0;
|
|
525
|
+
function incRunDepth() {
|
|
526
|
+
++runDepth;
|
|
527
|
+
}
|
|
528
|
+
function decRunDepth() {
|
|
529
|
+
--runDepth;
|
|
530
|
+
}
|
|
524
531
|
let globalVersion = 0;
|
|
525
532
|
let notifyIndex = 0;
|
|
526
533
|
let notifyBufferLength = 0;
|
|
@@ -594,8 +601,10 @@ function propagate(link) {
|
|
|
594
601
|
const sub = link.sub;
|
|
595
602
|
let flags = sub.flags;
|
|
596
603
|
if (flags & 3) {
|
|
597
|
-
if (!(flags & 60))
|
|
598
|
-
|
|
604
|
+
if (!(flags & 60)) {
|
|
605
|
+
sub.flags = flags | 32;
|
|
606
|
+
if (runDepth) sub.flags |= 8;
|
|
607
|
+
} else if (!(flags & 12)) flags = 0;
|
|
599
608
|
else if (!(flags & 4)) sub.flags = flags & -9 | 32;
|
|
600
609
|
else if (!(flags & 48) && isValidLink(link, sub)) {
|
|
601
610
|
sub.flags = flags | 40;
|
|
@@ -664,13 +673,13 @@ function checkDirty(link, sub) {
|
|
|
664
673
|
let dirty = false;
|
|
665
674
|
if (sub.flags & 16) dirty = true;
|
|
666
675
|
else if ((depFlags & 17) === 17) {
|
|
676
|
+
const subs = dep.subs;
|
|
667
677
|
if (dep.update()) {
|
|
668
|
-
const subs = dep.subs;
|
|
669
678
|
if (subs.nextSub !== void 0) shallowPropagate(subs);
|
|
670
679
|
dirty = true;
|
|
671
680
|
}
|
|
672
681
|
} else if ((depFlags & 33) === 33) {
|
|
673
|
-
|
|
682
|
+
stack = {
|
|
674
683
|
value: link,
|
|
675
684
|
prev: stack
|
|
676
685
|
};
|
|
@@ -685,15 +694,12 @@ function checkDirty(link, sub) {
|
|
|
685
694
|
}
|
|
686
695
|
while (checkDepth) {
|
|
687
696
|
--checkDepth;
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
if (hasMultipleSubs) {
|
|
691
|
-
link = stack.value;
|
|
692
|
-
stack = stack.prev;
|
|
693
|
-
} else link = firstSub;
|
|
697
|
+
link = stack.value;
|
|
698
|
+
stack = stack.prev;
|
|
694
699
|
if (dirty) {
|
|
700
|
+
const subs = sub.subs;
|
|
695
701
|
if (sub.update()) {
|
|
696
|
-
if (
|
|
702
|
+
if (subs.nextSub !== void 0) shallowPropagate(subs);
|
|
697
703
|
sub = link.sub;
|
|
698
704
|
continue;
|
|
699
705
|
}
|
|
@@ -705,7 +711,7 @@ function checkDirty(link, sub) {
|
|
|
705
711
|
}
|
|
706
712
|
dirty = false;
|
|
707
713
|
}
|
|
708
|
-
return dirty;
|
|
714
|
+
return dirty && !!sub.flags;
|
|
709
715
|
} while (true);
|
|
710
716
|
}
|
|
711
717
|
function shallowPropagate(link) {
|
|
@@ -1857,9 +1863,11 @@ var ReactiveEffect = class {
|
|
|
1857
1863
|
if (!this.active) return this.fn();
|
|
1858
1864
|
cleanup(this);
|
|
1859
1865
|
const prevSub = startTracking(this);
|
|
1866
|
+
incRunDepth();
|
|
1860
1867
|
try {
|
|
1861
1868
|
return this.fn();
|
|
1862
1869
|
} finally {
|
|
1870
|
+
decRunDepth();
|
|
1863
1871
|
endTracking(this, prevSub);
|
|
1864
1872
|
const flags = this.flags;
|
|
1865
1873
|
if ((flags & 136) === 136) {
|
|
@@ -8450,7 +8458,7 @@ function isMemoSame(cached, memo) {
|
|
|
8450
8458
|
}
|
|
8451
8459
|
//#endregion
|
|
8452
8460
|
//#region packages/runtime-core/src/index.ts
|
|
8453
|
-
const version = "3.6.0-beta.
|
|
8461
|
+
const version = "3.6.0-beta.12";
|
|
8454
8462
|
const warn = warn$1;
|
|
8455
8463
|
/**
|
|
8456
8464
|
* Runtime error messages. Only exposed in dev or esm builds.
|