@vue/compat 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 +23 -15
- package/dist/vue.cjs.prod.js +23 -15
- package/dist/vue.esm-browser.js +23 -15
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +23 -15
- package/dist/vue.global.js +23 -15
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +23 -15
- package/dist/vue.runtime.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-bundler.js +23 -15
- package/dist/vue.runtime.global.js +23 -15
- package/dist/vue.runtime.global.prod.js +6 -6
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat 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) {
|
|
@@ -6255,7 +6263,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6255
6263
|
if (options.el) return vm.$mount(options.el);
|
|
6256
6264
|
else return vm;
|
|
6257
6265
|
}
|
|
6258
|
-
Vue.version = `2.6.14-compat:3.6.0-beta.
|
|
6266
|
+
Vue.version = `2.6.14-compat:3.6.0-beta.12`;
|
|
6259
6267
|
Vue.config = singletonApp.config;
|
|
6260
6268
|
Vue.use = (plugin, ...options) => {
|
|
6261
6269
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -9709,7 +9717,7 @@ function isMemoSame(cached, memo) {
|
|
|
9709
9717
|
}
|
|
9710
9718
|
//#endregion
|
|
9711
9719
|
//#region packages/runtime-core/src/index.ts
|
|
9712
|
-
const version = "3.6.0-beta.
|
|
9720
|
+
const version = "3.6.0-beta.12";
|
|
9713
9721
|
const warn = warn$1;
|
|
9714
9722
|
/**
|
|
9715
9723
|
* Runtime error messages. Only exposed in dev or esm builds.
|