@vue/runtime-core 3.3.5 → 3.3.6

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.
@@ -3720,7 +3720,7 @@ function createAppAPI(render, hydrate) {
3720
3720
  }
3721
3721
  });
3722
3722
  }
3723
- const installedPlugins = /* @__PURE__ */ new Set();
3723
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
3724
3724
  let isMounted = false;
3725
3725
  const app = context.app = {
3726
3726
  _uid: uid$1++,
@@ -4384,7 +4384,7 @@ const updateSlots = (instance, children, optimized) => {
4384
4384
  }
4385
4385
  if (needDeletionCheck) {
4386
4386
  for (const key in slots) {
4387
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
4387
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
4388
4388
  delete slots[key];
4389
4389
  }
4390
4390
  }
@@ -6547,19 +6547,18 @@ const TeleportImpl = {
6547
6547
  if (target) {
6548
6548
  hostRemove(targetAnchor);
6549
6549
  }
6550
- if (doRemove || !isTeleportDisabled(props)) {
6551
- hostRemove(anchor);
6552
- if (shapeFlag & 16) {
6553
- for (let i = 0; i < children.length; i++) {
6554
- const child = children[i];
6555
- unmount(
6556
- child,
6557
- parentComponent,
6558
- parentSuspense,
6559
- true,
6560
- !!child.dynamicChildren
6561
- );
6562
- }
6550
+ doRemove && hostRemove(anchor);
6551
+ if (shapeFlag & 16) {
6552
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
6553
+ for (let i = 0; i < children.length; i++) {
6554
+ const child = children[i];
6555
+ unmount(
6556
+ child,
6557
+ parentComponent,
6558
+ parentSuspense,
6559
+ shouldRemove,
6560
+ !!child.dynamicChildren
6561
+ );
6563
6562
  }
6564
6563
  }
6565
6564
  },
@@ -6643,7 +6642,7 @@ function updateCssVars(vnode) {
6643
6642
  const ctx = vnode.ctx;
6644
6643
  if (ctx && ctx.ut) {
6645
6644
  let node = vnode.children[0].el;
6646
- while (node !== vnode.targetAnchor) {
6645
+ while (node && node !== vnode.targetAnchor) {
6647
6646
  if (node.nodeType === 1)
6648
6647
  node.setAttribute("data-v-owner", ctx.uid);
6649
6648
  node = node.nextSibling;
@@ -7674,7 +7673,7 @@ function isMemoSame(cached, memo) {
7674
7673
  return true;
7675
7674
  }
7676
7675
 
7677
- const version = "3.3.5";
7676
+ const version = "3.3.6";
7678
7677
  const _ssrUtils = {
7679
7678
  createComponentInstance,
7680
7679
  setupComponent,
@@ -2875,7 +2875,7 @@ function createAppAPI(render, hydrate) {
2875
2875
  rootProps = null;
2876
2876
  }
2877
2877
  const context = createAppContext();
2878
- const installedPlugins = /* @__PURE__ */ new Set();
2878
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
2879
2879
  let isMounted = false;
2880
2880
  const app = context.app = {
2881
2881
  _uid: uid$1++,
@@ -3336,7 +3336,7 @@ const updateSlots = (instance, children, optimized) => {
3336
3336
  }
3337
3337
  if (needDeletionCheck) {
3338
3338
  for (const key in slots) {
3339
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
3339
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
3340
3340
  delete slots[key];
3341
3341
  }
3342
3342
  }
@@ -5246,19 +5246,18 @@ const TeleportImpl = {
5246
5246
  if (target) {
5247
5247
  hostRemove(targetAnchor);
5248
5248
  }
5249
- if (doRemove || !isTeleportDisabled(props)) {
5250
- hostRemove(anchor);
5251
- if (shapeFlag & 16) {
5252
- for (let i = 0; i < children.length; i++) {
5253
- const child = children[i];
5254
- unmount(
5255
- child,
5256
- parentComponent,
5257
- parentSuspense,
5258
- true,
5259
- !!child.dynamicChildren
5260
- );
5261
- }
5249
+ doRemove && hostRemove(anchor);
5250
+ if (shapeFlag & 16) {
5251
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
5252
+ for (let i = 0; i < children.length; i++) {
5253
+ const child = children[i];
5254
+ unmount(
5255
+ child,
5256
+ parentComponent,
5257
+ parentSuspense,
5258
+ shouldRemove,
5259
+ !!child.dynamicChildren
5260
+ );
5262
5261
  }
5263
5262
  }
5264
5263
  },
@@ -5342,7 +5341,7 @@ function updateCssVars(vnode) {
5342
5341
  const ctx = vnode.ctx;
5343
5342
  if (ctx && ctx.ut) {
5344
5343
  let node = vnode.children[0].el;
5345
- while (node !== vnode.targetAnchor) {
5344
+ while (node && node !== vnode.targetAnchor) {
5346
5345
  if (node.nodeType === 1)
5347
5346
  node.setAttribute("data-v-owner", ctx.uid);
5348
5347
  node = node.nextSibling;
@@ -6023,7 +6022,7 @@ function isMemoSame(cached, memo) {
6023
6022
  return true;
6024
6023
  }
6025
6024
 
6026
- const version = "3.3.5";
6025
+ const version = "3.3.6";
6027
6026
  const _ssrUtils = {
6028
6027
  createComponentInstance,
6029
6028
  setupComponent,
@@ -816,7 +816,7 @@ export interface TeleportProps {
816
816
  declare const TeleportImpl: {
817
817
  __isTeleport: boolean;
818
818
  process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
819
- remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: Boolean): void;
819
+ remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
820
820
  move: typeof moveTeleport;
821
821
  hydrate: typeof hydrateTeleport;
822
822
  };
@@ -3728,7 +3728,7 @@ function createAppAPI(render, hydrate) {
3728
3728
  }
3729
3729
  });
3730
3730
  }
3731
- const installedPlugins = /* @__PURE__ */ new Set();
3731
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
3732
3732
  let isMounted = false;
3733
3733
  const app = context.app = {
3734
3734
  _uid: uid$1++,
@@ -4394,7 +4394,7 @@ const updateSlots = (instance, children, optimized) => {
4394
4394
  }
4395
4395
  if (needDeletionCheck) {
4396
4396
  for (const key in slots) {
4397
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
4397
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
4398
4398
  delete slots[key];
4399
4399
  }
4400
4400
  }
@@ -6591,19 +6591,18 @@ const TeleportImpl = {
6591
6591
  if (target) {
6592
6592
  hostRemove(targetAnchor);
6593
6593
  }
6594
- if (doRemove || !isTeleportDisabled(props)) {
6595
- hostRemove(anchor);
6596
- if (shapeFlag & 16) {
6597
- for (let i = 0; i < children.length; i++) {
6598
- const child = children[i];
6599
- unmount(
6600
- child,
6601
- parentComponent,
6602
- parentSuspense,
6603
- true,
6604
- !!child.dynamicChildren
6605
- );
6606
- }
6594
+ doRemove && hostRemove(anchor);
6595
+ if (shapeFlag & 16) {
6596
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
6597
+ for (let i = 0; i < children.length; i++) {
6598
+ const child = children[i];
6599
+ unmount(
6600
+ child,
6601
+ parentComponent,
6602
+ parentSuspense,
6603
+ shouldRemove,
6604
+ !!child.dynamicChildren
6605
+ );
6607
6606
  }
6608
6607
  }
6609
6608
  },
@@ -6687,7 +6686,7 @@ function updateCssVars(vnode) {
6687
6686
  const ctx = vnode.ctx;
6688
6687
  if (ctx && ctx.ut) {
6689
6688
  let node = vnode.children[0].el;
6690
- while (node !== vnode.targetAnchor) {
6689
+ while (node && node !== vnode.targetAnchor) {
6691
6690
  if (node.nodeType === 1)
6692
6691
  node.setAttribute("data-v-owner", ctx.uid);
6693
6692
  node = node.nextSibling;
@@ -7734,7 +7733,7 @@ function isMemoSame(cached, memo) {
7734
7733
  return true;
7735
7734
  }
7736
7735
 
7737
- const version = "3.3.5";
7736
+ const version = "3.3.6";
7738
7737
  const _ssrUtils = {
7739
7738
  createComponentInstance,
7740
7739
  setupComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
34
34
  "dependencies": {
35
- "@vue/shared": "3.3.5",
36
- "@vue/reactivity": "3.3.5"
35
+ "@vue/shared": "3.3.6",
36
+ "@vue/reactivity": "3.3.6"
37
37
  }
38
38
  }