vue 3.5.33 → 3.5.34

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.33
2
+ * vue v3.5.34
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.33
2
+ * vue v3.5.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -430,12 +430,18 @@ var Vue = (function (exports) {
430
430
  */
431
431
  this.cleanups = [];
432
432
  this._isPaused = false;
433
+ this._warnOnRun = true;
433
434
  this.__v_skip = true;
434
- this.parent = activeEffectScope;
435
435
  if (!detached && activeEffectScope) {
436
- this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
437
- this
438
- ) - 1;
436
+ if (activeEffectScope.active) {
437
+ this.parent = activeEffectScope;
438
+ this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
439
+ this
440
+ ) - 1;
441
+ } else {
442
+ this._active = false;
443
+ this._warnOnRun = false;
444
+ }
439
445
  }
440
446
  }
441
447
  get active() {
@@ -483,7 +489,7 @@ var Vue = (function (exports) {
483
489
  } finally {
484
490
  activeEffectScope = currentEffectScope;
485
491
  }
486
- } else {
492
+ } else if (this._warnOnRun) {
487
493
  warn$2(`cannot run an inactive effect scope.`);
488
494
  }
489
495
  }
@@ -589,8 +595,12 @@ var Vue = (function (exports) {
589
595
  */
590
596
  this.cleanup = void 0;
591
597
  this.scheduler = void 0;
592
- if (activeEffectScope && activeEffectScope.active) {
593
- activeEffectScope.effects.push(this);
598
+ if (activeEffectScope) {
599
+ if (activeEffectScope.active) {
600
+ activeEffectScope.effects.push(this);
601
+ } else {
602
+ this.flags &= -2;
603
+ }
594
604
  }
595
605
  }
596
606
  pause() {
@@ -7481,7 +7491,7 @@ If you want to remount the same app, move your app creation logic into a factory
7481
7491
  const receivedType = toRawType(value);
7482
7492
  const expectedValue = styleValue(value, expectedType);
7483
7493
  const receivedValue = styleValue(value, receivedType);
7484
- if (expectedTypes.length === 1 && isExplicable(expectedType) && !isBoolean(expectedType, receivedType)) {
7494
+ if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
7485
7495
  message += ` with value ${expectedValue}`;
7486
7496
  }
7487
7497
  message += `, got ${receivedType} `;
@@ -7491,7 +7501,9 @@ If you want to remount the same app, move your app creation logic into a factory
7491
7501
  return message;
7492
7502
  }
7493
7503
  function styleValue(value, type) {
7494
- if (type === "String") {
7504
+ if (isSymbol(value)) {
7505
+ return value.toString();
7506
+ } else if (type === "String") {
7495
7507
  return `"${value}"`;
7496
7508
  } else if (type === "Number") {
7497
7509
  return `${Number(value)}`;
@@ -7503,8 +7515,11 @@ If you want to remount the same app, move your app creation logic into a factory
7503
7515
  const explicitTypes = ["string", "number", "boolean"];
7504
7516
  return explicitTypes.some((elem) => type.toLowerCase() === elem);
7505
7517
  }
7506
- function isBoolean(...args) {
7507
- return args.some((elem) => elem.toLowerCase() === "boolean");
7518
+ function isCoercible(...args) {
7519
+ return args.every((elem) => {
7520
+ const value = elem.toLowerCase();
7521
+ return value !== "boolean" && value !== "symbol";
7522
+ });
7508
7523
  }
7509
7524
 
7510
7525
  const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
@@ -9524,13 +9539,14 @@ If you want to remount the same app, move your app creation logic into a factory
9524
9539
  suspense.isHydrating = false;
9525
9540
  } else if (!resume) {
9526
9541
  delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
9542
+ let hasUpdatedAnchor = false;
9527
9543
  if (delayEnter) {
9528
9544
  activeBranch.transition.afterLeave = () => {
9529
9545
  if (pendingId === suspense.pendingId) {
9530
9546
  move(
9531
9547
  pendingBranch,
9532
9548
  container2,
9533
- anchor === initialAnchor ? next(activeBranch) : anchor,
9549
+ anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
9534
9550
  0
9535
9551
  );
9536
9552
  queuePostFlushCb(effects);
@@ -9543,6 +9559,7 @@ If you want to remount the same app, move your app creation logic into a factory
9543
9559
  if (activeBranch && !suspense.isFallbackMountPending) {
9544
9560
  if (parentNode(activeBranch.el) === container2) {
9545
9561
  anchor = next(activeBranch);
9562
+ hasUpdatedAnchor = true;
9546
9563
  }
9547
9564
  unmount(activeBranch, parentComponent2, suspense, true);
9548
9565
  if (!delayEnter && isInFallback && vnode2.ssFallback) {
@@ -10835,7 +10852,7 @@ Component that was made reactive: `,
10835
10852
  return true;
10836
10853
  }
10837
10854
 
10838
- const version = "3.5.33";
10855
+ const version = "3.5.34";
10839
10856
  const warn = warn$1 ;
10840
10857
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10841
10858
  const devtools = devtools$1 ;