vue 3.5.9 → 3.5.11

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 v3.5.9
2
+ * vue v3.5.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.5.9
2
+ * vue v3.5.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -633,8 +633,14 @@ var Vue = (function (exports) {
633
633
  }
634
634
  let batchDepth = 0;
635
635
  let batchedSub;
636
- function batch(sub) {
636
+ let batchedComputed;
637
+ function batch(sub, isComputed = false) {
637
638
  sub.flags |= 8;
639
+ if (isComputed) {
640
+ sub.next = batchedComputed;
641
+ batchedComputed = sub;
642
+ return;
643
+ }
638
644
  sub.next = batchedSub;
639
645
  batchedSub = sub;
640
646
  }
@@ -645,17 +651,24 @@ var Vue = (function (exports) {
645
651
  if (--batchDepth > 0) {
646
652
  return;
647
653
  }
648
- let error;
649
- while (batchedSub) {
650
- let e = batchedSub;
651
- let next;
654
+ if (batchedComputed) {
655
+ let e = batchedComputed;
656
+ batchedComputed = void 0;
652
657
  while (e) {
658
+ const next = e.next;
659
+ e.next = void 0;
653
660
  e.flags &= ~8;
654
- e = e.next;
661
+ e = next;
655
662
  }
656
- e = batchedSub;
663
+ }
664
+ let error;
665
+ while (batchedSub) {
666
+ let e = batchedSub;
657
667
  batchedSub = void 0;
658
668
  while (e) {
669
+ const next = e.next;
670
+ e.next = void 0;
671
+ e.flags &= ~8;
659
672
  if (e.flags & 1) {
660
673
  try {
661
674
  ;
@@ -664,8 +677,6 @@ var Vue = (function (exports) {
664
677
  if (!error) error = err;
665
678
  }
666
679
  }
667
- next = e.next;
668
- e.next = void 0;
669
680
  e = next;
670
681
  }
671
682
  }
@@ -851,7 +862,6 @@ var Vue = (function (exports) {
851
862
  /**
852
863
  * For object property deps cleanup
853
864
  */
854
- this.target = void 0;
855
865
  this.map = void 0;
856
866
  this.key = void 0;
857
867
  /**
@@ -979,7 +989,6 @@ var Vue = (function (exports) {
979
989
  let dep = depsMap.get(key);
980
990
  if (!dep) {
981
991
  depsMap.set(key, dep = new Dep());
982
- dep.target = target;
983
992
  dep.map = depsMap;
984
993
  dep.key = key;
985
994
  }
@@ -1999,6 +2008,10 @@ var Vue = (function (exports) {
1999
2008
  * @internal
2000
2009
  */
2001
2010
  this.globalVersion = globalVersion - 1;
2011
+ /**
2012
+ * @internal
2013
+ */
2014
+ this.next = void 0;
2002
2015
  // for backwards compat
2003
2016
  this.effect = this;
2004
2017
  this["__v_isReadonly"] = !setter;
@@ -2011,7 +2024,7 @@ var Vue = (function (exports) {
2011
2024
  this.flags |= 16;
2012
2025
  if (!(this.flags & 8) && // avoid infinite self recursion
2013
2026
  activeSub !== this) {
2014
- batch(this);
2027
+ batch(this, true);
2015
2028
  return true;
2016
2029
  }
2017
2030
  }
@@ -2533,10 +2546,8 @@ var Vue = (function (exports) {
2533
2546
  }
2534
2547
  }
2535
2548
 
2536
- let isFlushing = false;
2537
- let isFlushPending = false;
2538
2549
  const queue = [];
2539
- let flushIndex = 0;
2550
+ let flushIndex = -1;
2540
2551
  const pendingPostFlushCbs = [];
2541
2552
  let activePostFlushCbs = null;
2542
2553
  let postFlushIndex = 0;
@@ -2548,7 +2559,7 @@ var Vue = (function (exports) {
2548
2559
  return fn ? p.then(this ? fn.bind(this) : fn) : p;
2549
2560
  }
2550
2561
  function findInsertionIndex(id) {
2551
- let start = isFlushing ? flushIndex + 1 : 0;
2562
+ let start = flushIndex + 1;
2552
2563
  let end = queue.length;
2553
2564
  while (start < end) {
2554
2565
  const middle = start + end >>> 1;
@@ -2577,8 +2588,7 @@ var Vue = (function (exports) {
2577
2588
  }
2578
2589
  }
2579
2590
  function queueFlush() {
2580
- if (!isFlushing && !isFlushPending) {
2581
- isFlushPending = true;
2591
+ if (!currentFlushPromise) {
2582
2592
  currentFlushPromise = resolvedPromise.then(flushJobs);
2583
2593
  }
2584
2594
  }
@@ -2595,7 +2605,7 @@ var Vue = (function (exports) {
2595
2605
  }
2596
2606
  queueFlush();
2597
2607
  }
2598
- function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2608
+ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
2599
2609
  {
2600
2610
  seen = seen || /* @__PURE__ */ new Map();
2601
2611
  }
@@ -2651,8 +2661,6 @@ var Vue = (function (exports) {
2651
2661
  }
2652
2662
  const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
2653
2663
  function flushJobs(seen) {
2654
- isFlushPending = false;
2655
- isFlushing = true;
2656
2664
  {
2657
2665
  seen = seen || /* @__PURE__ */ new Map();
2658
2666
  }
@@ -2684,10 +2692,9 @@ var Vue = (function (exports) {
2684
2692
  job.flags &= ~1;
2685
2693
  }
2686
2694
  }
2687
- flushIndex = 0;
2695
+ flushIndex = -1;
2688
2696
  queue.length = 0;
2689
2697
  flushPostFlushCbs(seen);
2690
- isFlushing = false;
2691
2698
  currentFlushPromise = null;
2692
2699
  if (queue.length || pendingPostFlushCbs.length) {
2693
2700
  flushJobs(seen);
@@ -10475,7 +10482,7 @@ Component that was made reactive: `,
10475
10482
  return true;
10476
10483
  }
10477
10484
 
10478
- const version = "3.5.9";
10485
+ const version = "3.5.11";
10479
10486
  const warn = warn$1 ;
10480
10487
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10481
10488
  const devtools = devtools$1 ;
@@ -11243,6 +11250,11 @@ Expected function or array of functions, received type ${typeof value}.`
11243
11250
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
11244
11251
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
11245
11252
  }
11253
+ } else if (
11254
+ // #11081 force set props for possible async custom element
11255
+ el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
11256
+ ) {
11257
+ patchDOMProp(el, camelize(key), nextValue);
11246
11258
  } else {
11247
11259
  if (key === "true-value") {
11248
11260
  el._trueValue = nextValue;
@@ -11283,13 +11295,7 @@ Expected function or array of functions, received type ${typeof value}.`
11283
11295
  if (isNativeOn(key) && isString(value)) {
11284
11296
  return false;
11285
11297
  }
11286
- if (key in el) {
11287
- return true;
11288
- }
11289
- if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
11290
- return true;
11291
- }
11292
- return false;
11298
+ return key in el;
11293
11299
  }
11294
11300
 
11295
11301
  const REMOVAL = {};