@vue/runtime-core 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/runtime-core v3.5.32
2
+ * @vue/runtime-core v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -984,7 +984,7 @@ const TeleportImpl = {
984
984
  mc: mountChildren,
985
985
  pc: patchChildren,
986
986
  pbc: patchBlockChildren,
987
- o: { insert, querySelector, createText, createComment }
987
+ o: { insert, querySelector, createText, createComment, parentNode }
988
988
  } = internals;
989
989
  const disabled = isTeleportDisabled(n2.props);
990
990
  let { dynamicChildren } = n2;
@@ -1032,7 +1032,8 @@ const TeleportImpl = {
1032
1032
  if (pendingMounts.get(vnode) !== mountJob) return;
1033
1033
  pendingMounts.delete(vnode);
1034
1034
  if (isTeleportDisabled(vnode.props)) {
1035
- mount(vnode, container, vnode.anchor);
1035
+ const mountContainer = parentNode(vnode.el) || container;
1036
+ mount(vnode, mountContainer, vnode.anchor);
1036
1037
  updateCssVars(vnode, true);
1037
1038
  }
1038
1039
  mountToTarget(vnode);
@@ -1194,7 +1195,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
1194
1195
  if (isReorder) {
1195
1196
  insert(el, container, parentAnchor);
1196
1197
  }
1197
- if (!isReorder || isTeleportDisabled(props)) {
1198
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
1198
1199
  if (shapeFlag & 16) {
1199
1200
  for (let i = 0; i < children.length; i++) {
1200
1201
  move(
@@ -1368,10 +1369,14 @@ const BaseTransitionImpl = {
1368
1369
  const state = useTransitionState();
1369
1370
  return () => {
1370
1371
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
1371
- if (!children || !children.length) {
1372
+ const child = children && children.length ? findNonCommentChild(children) : (
1373
+ // Keep explicit default-slot conditionals on the same transition path
1374
+ // as regular v-if branches, which render a comment placeholder.
1375
+ instance.subTree ? createCommentVNode() : void 0
1376
+ );
1377
+ if (!child) {
1372
1378
  return;
1373
1379
  }
1374
- const child = findNonCommentChild(children);
1375
1380
  const rawProps = reactivity.toRaw(props);
1376
1381
  const { mode } = rawProps;
1377
1382
  if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -8548,7 +8553,7 @@ function isMemoSame(cached, memo) {
8548
8553
  return true;
8549
8554
  }
8550
8555
 
8551
- const version = "3.5.32";
8556
+ const version = "3.5.33";
8552
8557
  const warn = warn$1 ;
8553
8558
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8554
8559
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.32
2
+ * @vue/runtime-core v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -540,7 +540,7 @@ const TeleportImpl = {
540
540
  mc: mountChildren,
541
541
  pc: patchChildren,
542
542
  pbc: patchBlockChildren,
543
- o: { insert, querySelector, createText, createComment }
543
+ o: { insert, querySelector, createText, createComment, parentNode }
544
544
  } = internals;
545
545
  const disabled = isTeleportDisabled(n2.props);
546
546
  let { dynamicChildren } = n2;
@@ -582,7 +582,8 @@ const TeleportImpl = {
582
582
  if (pendingMounts.get(vnode) !== mountJob) return;
583
583
  pendingMounts.delete(vnode);
584
584
  if (isTeleportDisabled(vnode.props)) {
585
- mount(vnode, container, vnode.anchor);
585
+ const mountContainer = parentNode(vnode.el) || container;
586
+ mount(vnode, mountContainer, vnode.anchor);
586
587
  updateCssVars(vnode, true);
587
588
  }
588
589
  mountToTarget(vnode);
@@ -738,7 +739,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
738
739
  if (isReorder) {
739
740
  insert(el, container, parentAnchor);
740
741
  }
741
- if (!isReorder || isTeleportDisabled(props)) {
742
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
742
743
  if (shapeFlag & 16) {
743
744
  for (let i = 0; i < children.length; i++) {
744
745
  move(
@@ -912,10 +913,14 @@ const BaseTransitionImpl = {
912
913
  const state = useTransitionState();
913
914
  return () => {
914
915
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
915
- if (!children || !children.length) {
916
+ const child = children && children.length ? findNonCommentChild(children) : (
917
+ // Keep explicit default-slot conditionals on the same transition path
918
+ // as regular v-if branches, which render a comment placeholder.
919
+ instance.subTree ? createCommentVNode() : void 0
920
+ );
921
+ if (!child) {
916
922
  return;
917
923
  }
918
- const child = findNonCommentChild(children);
919
924
  const rawProps = reactivity.toRaw(props);
920
925
  const { mode } = rawProps;
921
926
  if (state.isLeaving) {
@@ -6686,7 +6691,7 @@ function isMemoSame(cached, memo) {
6686
6691
  return true;
6687
6692
  }
6688
6693
 
6689
- const version = "3.5.32";
6694
+ const version = "3.5.33";
6690
6695
  const warn$1 = shared.NOOP;
6691
6696
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6692
6697
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.32
2
+ * @vue/runtime-core v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -987,7 +987,7 @@ const TeleportImpl = {
987
987
  mc: mountChildren,
988
988
  pc: patchChildren,
989
989
  pbc: patchBlockChildren,
990
- o: { insert, querySelector, createText, createComment }
990
+ o: { insert, querySelector, createText, createComment, parentNode }
991
991
  } = internals;
992
992
  const disabled = isTeleportDisabled(n2.props);
993
993
  let { dynamicChildren } = n2;
@@ -1035,7 +1035,8 @@ const TeleportImpl = {
1035
1035
  if (pendingMounts.get(vnode) !== mountJob) return;
1036
1036
  pendingMounts.delete(vnode);
1037
1037
  if (isTeleportDisabled(vnode.props)) {
1038
- mount(vnode, container, vnode.anchor);
1038
+ const mountContainer = parentNode(vnode.el) || container;
1039
+ mount(vnode, mountContainer, vnode.anchor);
1039
1040
  updateCssVars(vnode, true);
1040
1041
  }
1041
1042
  mountToTarget(vnode);
@@ -1197,7 +1198,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
1197
1198
  if (isReorder) {
1198
1199
  insert(el, container, parentAnchor);
1199
1200
  }
1200
- if (!isReorder || isTeleportDisabled(props)) {
1201
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
1201
1202
  if (shapeFlag & 16) {
1202
1203
  for (let i = 0; i < children.length; i++) {
1203
1204
  move(
@@ -1371,10 +1372,14 @@ const BaseTransitionImpl = {
1371
1372
  const state = useTransitionState();
1372
1373
  return () => {
1373
1374
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
1374
- if (!children || !children.length) {
1375
+ const child = children && children.length ? findNonCommentChild(children) : (
1376
+ // Keep explicit default-slot conditionals on the same transition path
1377
+ // as regular v-if branches, which render a comment placeholder.
1378
+ instance.subTree ? createCommentVNode() : void 0
1379
+ );
1380
+ if (!child) {
1375
1381
  return;
1376
1382
  }
1377
- const child = findNonCommentChild(children);
1378
1383
  const rawProps = toRaw(props);
1379
1384
  const { mode } = rawProps;
1380
1385
  if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -8622,7 +8627,7 @@ function isMemoSame(cached, memo) {
8622
8627
  return true;
8623
8628
  }
8624
8629
 
8625
- const version = "3.5.32";
8630
+ const version = "3.5.33";
8626
8631
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8627
8632
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8628
8633
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.5.32",
3
+ "version": "3.5.33",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
- "@vue/shared": "3.5.32",
50
- "@vue/reactivity": "3.5.32"
49
+ "@vue/shared": "3.5.33",
50
+ "@vue/reactivity": "3.5.33"
51
51
  }
52
52
  }