@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
  **/
@@ -500,7 +500,18 @@ class EffectScope {
500
500
  */
501
501
  off() {
502
502
  if (this._on > 0 && --this._on === 0) {
503
- activeEffectScope = this.prevScope;
503
+ if (activeEffectScope === this) {
504
+ activeEffectScope = this.prevScope;
505
+ } else {
506
+ let current = activeEffectScope;
507
+ while (current) {
508
+ if (current.prevScope === this) {
509
+ current.prevScope = this.prevScope;
510
+ break;
511
+ }
512
+ current = current.prevScope;
513
+ }
514
+ }
504
515
  this.prevScope = void 0;
505
516
  }
506
517
  }
@@ -3787,7 +3798,7 @@ const TeleportImpl = {
3787
3798
  mc: mountChildren,
3788
3799
  pc: patchChildren,
3789
3800
  pbc: patchBlockChildren,
3790
- o: { insert, querySelector, createText, createComment }
3801
+ o: { insert, querySelector, createText, createComment, parentNode }
3791
3802
  } = internals;
3792
3803
  const disabled = isTeleportDisabled(n2.props);
3793
3804
  let { dynamicChildren } = n2;
@@ -3835,7 +3846,8 @@ const TeleportImpl = {
3835
3846
  if (pendingMounts.get(vnode) !== mountJob) return;
3836
3847
  pendingMounts.delete(vnode);
3837
3848
  if (isTeleportDisabled(vnode.props)) {
3838
- mount(vnode, container, vnode.anchor);
3849
+ const mountContainer = parentNode(vnode.el) || container;
3850
+ mount(vnode, mountContainer, vnode.anchor);
3839
3851
  updateCssVars(vnode, true);
3840
3852
  }
3841
3853
  mountToTarget(vnode);
@@ -3997,7 +4009,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
3997
4009
  if (isReorder) {
3998
4010
  insert(el, container, parentAnchor);
3999
4011
  }
4000
- if (!isReorder || isTeleportDisabled(props)) {
4012
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
4001
4013
  if (shapeFlag & 16) {
4002
4014
  for (let i = 0; i < children.length; i++) {
4003
4015
  move(
@@ -4171,10 +4183,14 @@ const BaseTransitionImpl = {
4171
4183
  const state = useTransitionState();
4172
4184
  return () => {
4173
4185
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
4174
- if (!children || !children.length) {
4186
+ const child = children && children.length ? findNonCommentChild(children) : (
4187
+ // Keep explicit default-slot conditionals on the same transition path
4188
+ // as regular v-if branches, which render a comment placeholder.
4189
+ instance.subTree ? createCommentVNode() : void 0
4190
+ );
4191
+ if (!child) {
4175
4192
  return;
4176
4193
  }
4177
- const child = findNonCommentChild(children);
4178
4194
  const rawProps = toRaw(props);
4179
4195
  const { mode } = rawProps;
4180
4196
  if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -7553,7 +7569,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7553
7569
  return vm;
7554
7570
  }
7555
7571
  }
7556
- Vue.version = `2.6.14-compat:${"3.5.32"}`;
7572
+ Vue.version = `2.6.14-compat:${"3.5.33"}`;
7557
7573
  Vue.config = singletonApp.config;
7558
7574
  Vue.use = (plugin, ...options) => {
7559
7575
  if (plugin && isFunction(plugin.install)) {
@@ -12723,7 +12739,7 @@ function isMemoSame(cached, memo) {
12723
12739
  return true;
12724
12740
  }
12725
12741
 
12726
- const version = "3.5.32";
12742
+ const version = "3.5.33";
12727
12743
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12728
12744
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12729
12745
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -13314,7 +13330,19 @@ function patchStyle(el, prev, next) {
13314
13330
  if (key === "display") {
13315
13331
  hasControlledDisplay = true;
13316
13332
  }
13317
- setStyle(style, key, next[key]);
13333
+ const value = next[key];
13334
+ if (value != null) {
13335
+ if (!shouldPreserveTextareaResizeStyle(
13336
+ el,
13337
+ key,
13338
+ !isString(prev) && prev ? prev[key] : void 0,
13339
+ value
13340
+ )) {
13341
+ setStyle(style, key, value);
13342
+ }
13343
+ } else {
13344
+ setStyle(style, key, "");
13345
+ }
13318
13346
  }
13319
13347
  } else {
13320
13348
  if (isCssString) {
@@ -13387,6 +13415,9 @@ function autoPrefix(style, rawName) {
13387
13415
  }
13388
13416
  return rawName;
13389
13417
  }
13418
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
13419
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
13420
+ }
13390
13421
 
13391
13422
  const xlinkNS = "http://www.w3.org/1999/xlink";
13392
13423
  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
  **/
@@ -503,7 +503,18 @@ var Vue = (function () {
503
503
  */
504
504
  off() {
505
505
  if (this._on > 0 && --this._on === 0) {
506
- activeEffectScope = this.prevScope;
506
+ if (activeEffectScope === this) {
507
+ activeEffectScope = this.prevScope;
508
+ } else {
509
+ let current = activeEffectScope;
510
+ while (current) {
511
+ if (current.prevScope === this) {
512
+ current.prevScope = this.prevScope;
513
+ break;
514
+ }
515
+ current = current.prevScope;
516
+ }
517
+ }
507
518
  this.prevScope = void 0;
508
519
  }
509
520
  }
@@ -3744,7 +3755,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3744
3755
  mc: mountChildren,
3745
3756
  pc: patchChildren,
3746
3757
  pbc: patchBlockChildren,
3747
- o: { insert, querySelector, createText, createComment }
3758
+ o: { insert, querySelector, createText, createComment, parentNode }
3748
3759
  } = internals;
3749
3760
  const disabled = isTeleportDisabled(n2.props);
3750
3761
  let { dynamicChildren } = n2;
@@ -3792,7 +3803,8 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3792
3803
  if (pendingMounts.get(vnode) !== mountJob) return;
3793
3804
  pendingMounts.delete(vnode);
3794
3805
  if (isTeleportDisabled(vnode.props)) {
3795
- mount(vnode, container, vnode.anchor);
3806
+ const mountContainer = parentNode(vnode.el) || container;
3807
+ mount(vnode, mountContainer, vnode.anchor);
3796
3808
  updateCssVars(vnode, true);
3797
3809
  }
3798
3810
  mountToTarget(vnode);
@@ -3954,7 +3966,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3954
3966
  if (isReorder) {
3955
3967
  insert(el, container, parentAnchor);
3956
3968
  }
3957
- if (!isReorder || isTeleportDisabled(props)) {
3969
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
3958
3970
  if (shapeFlag & 16) {
3959
3971
  for (let i = 0; i < children.length; i++) {
3960
3972
  move(
@@ -4128,10 +4140,14 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4128
4140
  const state = useTransitionState();
4129
4141
  return () => {
4130
4142
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
4131
- if (!children || !children.length) {
4143
+ const child = children && children.length ? findNonCommentChild(children) : (
4144
+ // Keep explicit default-slot conditionals on the same transition path
4145
+ // as regular v-if branches, which render a comment placeholder.
4146
+ instance.subTree ? createCommentVNode() : void 0
4147
+ );
4148
+ if (!child) {
4132
4149
  return;
4133
4150
  }
4134
- const child = findNonCommentChild(children);
4135
4151
  const rawProps = toRaw(props);
4136
4152
  const { mode } = rawProps;
4137
4153
  if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -7487,7 +7503,7 @@ If this is a native custom element, make sure to exclude it from component resol
7487
7503
  return vm;
7488
7504
  }
7489
7505
  }
7490
- Vue.version = `2.6.14-compat:${"3.5.32"}`;
7506
+ Vue.version = `2.6.14-compat:${"3.5.33"}`;
7491
7507
  Vue.config = singletonApp.config;
7492
7508
  Vue.use = (plugin, ...options) => {
7493
7509
  if (plugin && isFunction(plugin.install)) {
@@ -12589,7 +12605,7 @@ Component that was made reactive: `,
12589
12605
  return true;
12590
12606
  }
12591
12607
 
12592
- const version = "3.5.32";
12608
+ const version = "3.5.33";
12593
12609
  const warn = warn$1 ;
12594
12610
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12595
12611
  const devtools = devtools$1 ;
@@ -13161,7 +13177,19 @@ Component that was made reactive: `,
13161
13177
  if (key === "display") {
13162
13178
  hasControlledDisplay = true;
13163
13179
  }
13164
- setStyle(style, key, next[key]);
13180
+ const value = next[key];
13181
+ if (value != null) {
13182
+ if (!shouldPreserveTextareaResizeStyle(
13183
+ el,
13184
+ key,
13185
+ !isString(prev) && prev ? prev[key] : void 0,
13186
+ value
13187
+ )) {
13188
+ setStyle(style, key, value);
13189
+ }
13190
+ } else {
13191
+ setStyle(style, key, "");
13192
+ }
13165
13193
  }
13166
13194
  } else {
13167
13195
  if (isCssString) {
@@ -13234,6 +13262,9 @@ Component that was made reactive: `,
13234
13262
  }
13235
13263
  return rawName;
13236
13264
  }
13265
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
13266
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
13267
+ }
13237
13268
 
13238
13269
  const xlinkNS = "http://www.w3.org/1999/xlink";
13239
13270
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {