@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.6.0-beta.11
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
  **/
@@ -526,6 +526,13 @@ function warn$2(msg, ...args) {
526
526
  const notifyBuffer = [];
527
527
  let batchDepth = 0;
528
528
  let activeSub = void 0;
529
+ let runDepth = 0;
530
+ function incRunDepth() {
531
+ ++runDepth;
532
+ }
533
+ function decRunDepth() {
534
+ --runDepth;
535
+ }
529
536
  let globalVersion = 0;
530
537
  let notifyIndex = 0;
531
538
  let notifyBufferLength = 0;
@@ -599,8 +606,10 @@ function propagate(link) {
599
606
  const sub = link.sub;
600
607
  let flags = sub.flags;
601
608
  if (flags & 3) {
602
- if (!(flags & 60)) sub.flags = flags | 32;
603
- else if (!(flags & 12)) flags = 0;
609
+ if (!(flags & 60)) {
610
+ sub.flags = flags | 32;
611
+ if (runDepth) sub.flags |= 8;
612
+ } else if (!(flags & 12)) flags = 0;
604
613
  else if (!(flags & 4)) sub.flags = flags & -9 | 32;
605
614
  else if (!(flags & 48) && isValidLink(link, sub)) {
606
615
  sub.flags = flags | 40;
@@ -669,13 +678,13 @@ function checkDirty(link, sub) {
669
678
  let dirty = false;
670
679
  if (sub.flags & 16) dirty = true;
671
680
  else if ((depFlags & 17) === 17) {
681
+ const subs = dep.subs;
672
682
  if (dep.update()) {
673
- const subs = dep.subs;
674
683
  if (subs.nextSub !== void 0) shallowPropagate(subs);
675
684
  dirty = true;
676
685
  }
677
686
  } else if ((depFlags & 33) === 33) {
678
- if (link.nextSub !== void 0 || link.prevSub !== void 0) stack = {
687
+ stack = {
679
688
  value: link,
680
689
  prev: stack
681
690
  };
@@ -690,15 +699,12 @@ function checkDirty(link, sub) {
690
699
  }
691
700
  while (checkDepth) {
692
701
  --checkDepth;
693
- const firstSub = sub.subs;
694
- const hasMultipleSubs = firstSub.nextSub !== void 0;
695
- if (hasMultipleSubs) {
696
- link = stack.value;
697
- stack = stack.prev;
698
- } else link = firstSub;
702
+ link = stack.value;
703
+ stack = stack.prev;
699
704
  if (dirty) {
705
+ const subs = sub.subs;
700
706
  if (sub.update()) {
701
- if (hasMultipleSubs) shallowPropagate(firstSub);
707
+ if (subs.nextSub !== void 0) shallowPropagate(subs);
702
708
  sub = link.sub;
703
709
  continue;
704
710
  }
@@ -710,7 +716,7 @@ function checkDirty(link, sub) {
710
716
  }
711
717
  dirty = false;
712
718
  }
713
- return dirty;
719
+ return dirty && !!sub.flags;
714
720
  } while (true);
715
721
  }
716
722
  function shallowPropagate(link) {
@@ -1862,9 +1868,11 @@ var ReactiveEffect = class {
1862
1868
  if (!this.active) return this.fn();
1863
1869
  cleanup(this);
1864
1870
  const prevSub = startTracking(this);
1871
+ incRunDepth();
1865
1872
  try {
1866
1873
  return this.fn();
1867
1874
  } finally {
1875
+ decRunDepth();
1868
1876
  endTracking(this, prevSub);
1869
1877
  const flags = this.flags;
1870
1878
  if ((flags & 136) === 136) {
@@ -6328,7 +6336,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6328
6336
  if (options.el) return vm.$mount(options.el);
6329
6337
  else return vm;
6330
6338
  }
6331
- Vue.version = `2.6.14-compat:3.6.0-beta.11`;
6339
+ Vue.version = `2.6.14-compat:3.6.0-beta.12`;
6332
6340
  Vue.config = singletonApp.config;
6333
6341
  Vue.use = (plugin, ...options) => {
6334
6342
  if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
@@ -9862,7 +9870,7 @@ function isMemoSame(cached, memo) {
9862
9870
  }
9863
9871
  //#endregion
9864
9872
  //#region packages/runtime-core/src/index.ts
9865
- const version = "3.6.0-beta.11";
9873
+ const version = "3.6.0-beta.12";
9866
9874
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
9867
9875
  /**
9868
9876
  * Runtime error messages. Only exposed in dev or esm builds.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.6.0-beta.11
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
  **/
@@ -522,6 +522,13 @@ var Vue = (function() {
522
522
  const notifyBuffer = [];
523
523
  let batchDepth = 0;
524
524
  let activeSub = void 0;
525
+ let runDepth = 0;
526
+ function incRunDepth() {
527
+ ++runDepth;
528
+ }
529
+ function decRunDepth() {
530
+ --runDepth;
531
+ }
525
532
  let globalVersion = 0;
526
533
  let notifyIndex = 0;
527
534
  let notifyBufferLength = 0;
@@ -595,8 +602,10 @@ var Vue = (function() {
595
602
  const sub = link.sub;
596
603
  let flags = sub.flags;
597
604
  if (flags & 3) {
598
- if (!(flags & 60)) sub.flags = flags | 32;
599
- else if (!(flags & 12)) flags = 0;
605
+ if (!(flags & 60)) {
606
+ sub.flags = flags | 32;
607
+ if (runDepth) sub.flags |= 8;
608
+ } else if (!(flags & 12)) flags = 0;
600
609
  else if (!(flags & 4)) sub.flags = flags & -9 | 32;
601
610
  else if (!(flags & 48) && isValidLink(link, sub)) {
602
611
  sub.flags = flags | 40;
@@ -665,13 +674,13 @@ var Vue = (function() {
665
674
  let dirty = false;
666
675
  if (sub.flags & 16) dirty = true;
667
676
  else if ((depFlags & 17) === 17) {
677
+ const subs = dep.subs;
668
678
  if (dep.update()) {
669
- const subs = dep.subs;
670
679
  if (subs.nextSub !== void 0) shallowPropagate(subs);
671
680
  dirty = true;
672
681
  }
673
682
  } else if ((depFlags & 33) === 33) {
674
- if (link.nextSub !== void 0 || link.prevSub !== void 0) stack = {
683
+ stack = {
675
684
  value: link,
676
685
  prev: stack
677
686
  };
@@ -686,15 +695,12 @@ var Vue = (function() {
686
695
  }
687
696
  while (checkDepth) {
688
697
  --checkDepth;
689
- const firstSub = sub.subs;
690
- const hasMultipleSubs = firstSub.nextSub !== void 0;
691
- if (hasMultipleSubs) {
692
- link = stack.value;
693
- stack = stack.prev;
694
- } else link = firstSub;
698
+ link = stack.value;
699
+ stack = stack.prev;
695
700
  if (dirty) {
701
+ const subs = sub.subs;
696
702
  if (sub.update()) {
697
- if (hasMultipleSubs) shallowPropagate(firstSub);
703
+ if (subs.nextSub !== void 0) shallowPropagate(subs);
698
704
  sub = link.sub;
699
705
  continue;
700
706
  }
@@ -706,7 +712,7 @@ var Vue = (function() {
706
712
  }
707
713
  dirty = false;
708
714
  }
709
- return dirty;
715
+ return dirty && !!sub.flags;
710
716
  } while (true);
711
717
  }
712
718
  function shallowPropagate(link) {
@@ -1858,9 +1864,11 @@ var Vue = (function() {
1858
1864
  if (!this.active) return this.fn();
1859
1865
  cleanup(this);
1860
1866
  const prevSub = startTracking(this);
1867
+ incRunDepth();
1861
1868
  try {
1862
1869
  return this.fn();
1863
1870
  } finally {
1871
+ decRunDepth();
1864
1872
  endTracking(this, prevSub);
1865
1873
  const flags = this.flags;
1866
1874
  if ((flags & 136) === 136) {
@@ -6252,7 +6260,7 @@ var Vue = (function() {
6252
6260
  if (options.el) return vm.$mount(options.el);
6253
6261
  else return vm;
6254
6262
  }
6255
- Vue.version = `2.6.14-compat:3.6.0-beta.11`;
6263
+ Vue.version = `2.6.14-compat:3.6.0-beta.12`;
6256
6264
  Vue.config = singletonApp.config;
6257
6265
  Vue.use = (plugin, ...options) => {
6258
6266
  if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
@@ -9706,7 +9714,7 @@ var Vue = (function() {
9706
9714
  }
9707
9715
  //#endregion
9708
9716
  //#region packages/runtime-core/src/index.ts
9709
- const version = "3.6.0-beta.11";
9717
+ const version = "3.6.0-beta.12";
9710
9718
  const warn = warn$1;
9711
9719
  /**
9712
9720
  * Runtime error messages. Only exposed in dev or esm builds.