@vue/runtime-dom 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/runtime-dom v3.5.9
2
+ * @vue/runtime-dom v3.5.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -560,8 +560,14 @@ var VueRuntimeDOM = (function (exports) {
560
560
  }
561
561
  let batchDepth = 0;
562
562
  let batchedSub;
563
- function batch(sub) {
563
+ let batchedComputed;
564
+ function batch(sub, isComputed = false) {
564
565
  sub.flags |= 8;
566
+ if (isComputed) {
567
+ sub.next = batchedComputed;
568
+ batchedComputed = sub;
569
+ return;
570
+ }
565
571
  sub.next = batchedSub;
566
572
  batchedSub = sub;
567
573
  }
@@ -572,17 +578,24 @@ var VueRuntimeDOM = (function (exports) {
572
578
  if (--batchDepth > 0) {
573
579
  return;
574
580
  }
575
- let error;
576
- while (batchedSub) {
577
- let e = batchedSub;
578
- let next;
581
+ if (batchedComputed) {
582
+ let e = batchedComputed;
583
+ batchedComputed = void 0;
579
584
  while (e) {
585
+ const next = e.next;
586
+ e.next = void 0;
580
587
  e.flags &= ~8;
581
- e = e.next;
588
+ e = next;
582
589
  }
583
- e = batchedSub;
590
+ }
591
+ let error;
592
+ while (batchedSub) {
593
+ let e = batchedSub;
584
594
  batchedSub = void 0;
585
595
  while (e) {
596
+ const next = e.next;
597
+ e.next = void 0;
598
+ e.flags &= ~8;
586
599
  if (e.flags & 1) {
587
600
  try {
588
601
  ;
@@ -591,8 +604,6 @@ var VueRuntimeDOM = (function (exports) {
591
604
  if (!error) error = err;
592
605
  }
593
606
  }
594
- next = e.next;
595
- e.next = void 0;
596
607
  e = next;
597
608
  }
598
609
  }
@@ -778,7 +789,6 @@ var VueRuntimeDOM = (function (exports) {
778
789
  /**
779
790
  * For object property deps cleanup
780
791
  */
781
- this.target = void 0;
782
792
  this.map = void 0;
783
793
  this.key = void 0;
784
794
  /**
@@ -906,7 +916,6 @@ var VueRuntimeDOM = (function (exports) {
906
916
  let dep = depsMap.get(key);
907
917
  if (!dep) {
908
918
  depsMap.set(key, dep = new Dep());
909
- dep.target = target;
910
919
  dep.map = depsMap;
911
920
  dep.key = key;
912
921
  }
@@ -1926,6 +1935,10 @@ var VueRuntimeDOM = (function (exports) {
1926
1935
  * @internal
1927
1936
  */
1928
1937
  this.globalVersion = globalVersion - 1;
1938
+ /**
1939
+ * @internal
1940
+ */
1941
+ this.next = void 0;
1929
1942
  // for backwards compat
1930
1943
  this.effect = this;
1931
1944
  this["__v_isReadonly"] = !setter;
@@ -1938,7 +1951,7 @@ var VueRuntimeDOM = (function (exports) {
1938
1951
  this.flags |= 16;
1939
1952
  if (!(this.flags & 8) && // avoid infinite self recursion
1940
1953
  activeSub !== this) {
1941
- batch(this);
1954
+ batch(this, true);
1942
1955
  return true;
1943
1956
  }
1944
1957
  }
@@ -2460,10 +2473,8 @@ var VueRuntimeDOM = (function (exports) {
2460
2473
  }
2461
2474
  }
2462
2475
 
2463
- let isFlushing = false;
2464
- let isFlushPending = false;
2465
2476
  const queue = [];
2466
- let flushIndex = 0;
2477
+ let flushIndex = -1;
2467
2478
  const pendingPostFlushCbs = [];
2468
2479
  let activePostFlushCbs = null;
2469
2480
  let postFlushIndex = 0;
@@ -2475,7 +2486,7 @@ var VueRuntimeDOM = (function (exports) {
2475
2486
  return fn ? p.then(this ? fn.bind(this) : fn) : p;
2476
2487
  }
2477
2488
  function findInsertionIndex(id) {
2478
- let start = isFlushing ? flushIndex + 1 : 0;
2489
+ let start = flushIndex + 1;
2479
2490
  let end = queue.length;
2480
2491
  while (start < end) {
2481
2492
  const middle = start + end >>> 1;
@@ -2504,8 +2515,7 @@ var VueRuntimeDOM = (function (exports) {
2504
2515
  }
2505
2516
  }
2506
2517
  function queueFlush() {
2507
- if (!isFlushing && !isFlushPending) {
2508
- isFlushPending = true;
2518
+ if (!currentFlushPromise) {
2509
2519
  currentFlushPromise = resolvedPromise.then(flushJobs);
2510
2520
  }
2511
2521
  }
@@ -2522,7 +2532,7 @@ var VueRuntimeDOM = (function (exports) {
2522
2532
  }
2523
2533
  queueFlush();
2524
2534
  }
2525
- function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2535
+ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
2526
2536
  {
2527
2537
  seen = seen || /* @__PURE__ */ new Map();
2528
2538
  }
@@ -2578,8 +2588,6 @@ var VueRuntimeDOM = (function (exports) {
2578
2588
  }
2579
2589
  const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
2580
2590
  function flushJobs(seen) {
2581
- isFlushPending = false;
2582
- isFlushing = true;
2583
2591
  {
2584
2592
  seen = seen || /* @__PURE__ */ new Map();
2585
2593
  }
@@ -2611,10 +2619,9 @@ var VueRuntimeDOM = (function (exports) {
2611
2619
  job.flags &= ~1;
2612
2620
  }
2613
2621
  }
2614
- flushIndex = 0;
2622
+ flushIndex = -1;
2615
2623
  queue.length = 0;
2616
2624
  flushPostFlushCbs(seen);
2617
- isFlushing = false;
2618
2625
  currentFlushPromise = null;
2619
2626
  if (queue.length || pendingPostFlushCbs.length) {
2620
2627
  flushJobs(seen);
@@ -10402,7 +10409,7 @@ Component that was made reactive: `,
10402
10409
  return true;
10403
10410
  }
10404
10411
 
10405
- const version = "3.5.9";
10412
+ const version = "3.5.11";
10406
10413
  const warn = warn$1 ;
10407
10414
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10408
10415
  const devtools = devtools$1 ;
@@ -11170,6 +11177,11 @@ Expected function or array of functions, received type ${typeof value}.`
11170
11177
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
11171
11178
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
11172
11179
  }
11180
+ } else if (
11181
+ // #11081 force set props for possible async custom element
11182
+ el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
11183
+ ) {
11184
+ patchDOMProp(el, camelize(key), nextValue);
11173
11185
  } else {
11174
11186
  if (key === "true-value") {
11175
11187
  el._trueValue = nextValue;
@@ -11210,13 +11222,7 @@ Expected function or array of functions, received type ${typeof value}.`
11210
11222
  if (isNativeOn(key) && isString(value)) {
11211
11223
  return false;
11212
11224
  }
11213
- if (key in el) {
11214
- return true;
11215
- }
11216
- if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
11217
- return true;
11218
- }
11219
- return false;
11225
+ return key in el;
11220
11226
  }
11221
11227
 
11222
11228
  const REMOVAL = {};