@vue/compat 3.5.32 → 3.5.33

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.5.32
2
+ * @vue/compat v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -427,7 +427,18 @@ class EffectScope {
427
427
  */
428
428
  off() {
429
429
  if (this._on > 0 && --this._on === 0) {
430
- activeEffectScope = this.prevScope;
430
+ if (activeEffectScope === this) {
431
+ activeEffectScope = this.prevScope;
432
+ } else {
433
+ let current = activeEffectScope;
434
+ while (current) {
435
+ if (current.prevScope === this) {
436
+ current.prevScope = this.prevScope;
437
+ break;
438
+ }
439
+ current = current.prevScope;
440
+ }
441
+ }
431
442
  this.prevScope = void 0;
432
443
  }
433
444
  }
@@ -3714,7 +3725,7 @@ const TeleportImpl = {
3714
3725
  mc: mountChildren,
3715
3726
  pc: patchChildren,
3716
3727
  pbc: patchBlockChildren,
3717
- o: { insert, querySelector, createText, createComment }
3728
+ o: { insert, querySelector, createText, createComment, parentNode }
3718
3729
  } = internals;
3719
3730
  const disabled = isTeleportDisabled(n2.props);
3720
3731
  let { dynamicChildren } = n2;
@@ -3762,7 +3773,8 @@ const TeleportImpl = {
3762
3773
  if (pendingMounts.get(vnode) !== mountJob) return;
3763
3774
  pendingMounts.delete(vnode);
3764
3775
  if (isTeleportDisabled(vnode.props)) {
3765
- mount(vnode, container, vnode.anchor);
3776
+ const mountContainer = parentNode(vnode.el) || container;
3777
+ mount(vnode, mountContainer, vnode.anchor);
3766
3778
  updateCssVars(vnode, true);
3767
3779
  }
3768
3780
  mountToTarget(vnode);
@@ -3924,7 +3936,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
3924
3936
  if (isReorder) {
3925
3937
  insert(el, container, parentAnchor);
3926
3938
  }
3927
- if (!isReorder || isTeleportDisabled(props)) {
3939
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
3928
3940
  if (shapeFlag & 16) {
3929
3941
  for (let i = 0; i < children.length; i++) {
3930
3942
  move(
@@ -4098,10 +4110,14 @@ const BaseTransitionImpl = {
4098
4110
  const state = useTransitionState();
4099
4111
  return () => {
4100
4112
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
4101
- if (!children || !children.length) {
4113
+ const child = children && children.length ? findNonCommentChild(children) : (
4114
+ // Keep explicit default-slot conditionals on the same transition path
4115
+ // as regular v-if branches, which render a comment placeholder.
4116
+ instance.subTree ? createCommentVNode() : void 0
4117
+ );
4118
+ if (!child) {
4102
4119
  return;
4103
4120
  }
4104
- const child = findNonCommentChild(children);
4105
4121
  const rawProps = toRaw(props);
4106
4122
  const { mode } = rawProps;
4107
4123
  if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -7480,7 +7496,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7480
7496
  return vm;
7481
7497
  }
7482
7498
  }
7483
- Vue.version = `2.6.14-compat:${"3.5.32"}`;
7499
+ Vue.version = `2.6.14-compat:${"3.5.33"}`;
7484
7500
  Vue.config = singletonApp.config;
7485
7501
  Vue.use = (plugin, ...options) => {
7486
7502
  if (plugin && isFunction(plugin.install)) {
@@ -12650,7 +12666,7 @@ function isMemoSame(cached, memo) {
12650
12666
  return true;
12651
12667
  }
12652
12668
 
12653
- const version = "3.5.32";
12669
+ const version = "3.5.33";
12654
12670
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12655
12671
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12656
12672
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -13241,7 +13257,19 @@ function patchStyle(el, prev, next) {
13241
13257
  if (key === "display") {
13242
13258
  hasControlledDisplay = true;
13243
13259
  }
13244
- setStyle(style, key, next[key]);
13260
+ const value = next[key];
13261
+ if (value != null) {
13262
+ if (!shouldPreserveTextareaResizeStyle(
13263
+ el,
13264
+ key,
13265
+ !isString(prev) && prev ? prev[key] : void 0,
13266
+ value
13267
+ )) {
13268
+ setStyle(style, key, value);
13269
+ }
13270
+ } else {
13271
+ setStyle(style, key, "");
13272
+ }
13245
13273
  }
13246
13274
  } else {
13247
13275
  if (isCssString) {
@@ -13314,6 +13342,9 @@ function autoPrefix(style, rawName) {
13314
13342
  }
13315
13343
  return rawName;
13316
13344
  }
13345
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
13346
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
13347
+ }
13317
13348
 
13318
13349
  const xlinkNS = "http://www.w3.org/1999/xlink";
13319
13350
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.32
2
+ * @vue/compat v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -430,7 +430,18 @@ var Vue = (function () {
430
430
  */
431
431
  off() {
432
432
  if (this._on > 0 && --this._on === 0) {
433
- activeEffectScope = this.prevScope;
433
+ if (activeEffectScope === this) {
434
+ activeEffectScope = this.prevScope;
435
+ } else {
436
+ let current = activeEffectScope;
437
+ while (current) {
438
+ if (current.prevScope === this) {
439
+ current.prevScope = this.prevScope;
440
+ break;
441
+ }
442
+ current = current.prevScope;
443
+ }
444
+ }
434
445
  this.prevScope = void 0;
435
446
  }
436
447
  }
@@ -3671,7 +3682,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3671
3682
  mc: mountChildren,
3672
3683
  pc: patchChildren,
3673
3684
  pbc: patchBlockChildren,
3674
- o: { insert, querySelector, createText, createComment }
3685
+ o: { insert, querySelector, createText, createComment, parentNode }
3675
3686
  } = internals;
3676
3687
  const disabled = isTeleportDisabled(n2.props);
3677
3688
  let { dynamicChildren } = n2;
@@ -3719,7 +3730,8 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3719
3730
  if (pendingMounts.get(vnode) !== mountJob) return;
3720
3731
  pendingMounts.delete(vnode);
3721
3732
  if (isTeleportDisabled(vnode.props)) {
3722
- mount(vnode, container, vnode.anchor);
3733
+ const mountContainer = parentNode(vnode.el) || container;
3734
+ mount(vnode, mountContainer, vnode.anchor);
3723
3735
  updateCssVars(vnode, true);
3724
3736
  }
3725
3737
  mountToTarget(vnode);
@@ -3881,7 +3893,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3881
3893
  if (isReorder) {
3882
3894
  insert(el, container, parentAnchor);
3883
3895
  }
3884
- if (!isReorder || isTeleportDisabled(props)) {
3896
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
3885
3897
  if (shapeFlag & 16) {
3886
3898
  for (let i = 0; i < children.length; i++) {
3887
3899
  move(
@@ -4055,10 +4067,14 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4055
4067
  const state = useTransitionState();
4056
4068
  return () => {
4057
4069
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
4058
- if (!children || !children.length) {
4070
+ const child = children && children.length ? findNonCommentChild(children) : (
4071
+ // Keep explicit default-slot conditionals on the same transition path
4072
+ // as regular v-if branches, which render a comment placeholder.
4073
+ instance.subTree ? createCommentVNode() : void 0
4074
+ );
4075
+ if (!child) {
4059
4076
  return;
4060
4077
  }
4061
- const child = findNonCommentChild(children);
4062
4078
  const rawProps = toRaw(props);
4063
4079
  const { mode } = rawProps;
4064
4080
  if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -7414,7 +7430,7 @@ If this is a native custom element, make sure to exclude it from component resol
7414
7430
  return vm;
7415
7431
  }
7416
7432
  }
7417
- Vue.version = `2.6.14-compat:${"3.5.32"}`;
7433
+ Vue.version = `2.6.14-compat:${"3.5.33"}`;
7418
7434
  Vue.config = singletonApp.config;
7419
7435
  Vue.use = (plugin, ...options) => {
7420
7436
  if (plugin && isFunction(plugin.install)) {
@@ -12516,7 +12532,7 @@ Component that was made reactive: `,
12516
12532
  return true;
12517
12533
  }
12518
12534
 
12519
- const version = "3.5.32";
12535
+ const version = "3.5.33";
12520
12536
  const warn = warn$1 ;
12521
12537
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12522
12538
  const devtools = devtools$1 ;
@@ -13088,7 +13104,19 @@ Component that was made reactive: `,
13088
13104
  if (key === "display") {
13089
13105
  hasControlledDisplay = true;
13090
13106
  }
13091
- setStyle(style, key, next[key]);
13107
+ const value = next[key];
13108
+ if (value != null) {
13109
+ if (!shouldPreserveTextareaResizeStyle(
13110
+ el,
13111
+ key,
13112
+ !isString(prev) && prev ? prev[key] : void 0,
13113
+ value
13114
+ )) {
13115
+ setStyle(style, key, value);
13116
+ }
13117
+ } else {
13118
+ setStyle(style, key, "");
13119
+ }
13092
13120
  }
13093
13121
  } else {
13094
13122
  if (isCssString) {
@@ -13161,6 +13189,9 @@ Component that was made reactive: `,
13161
13189
  }
13162
13190
  return rawName;
13163
13191
  }
13192
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
13193
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
13194
+ }
13164
13195
 
13165
13196
  const xlinkNS = "http://www.w3.org/1999/xlink";
13166
13197
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {