@vue/compat 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.
@@ -4997,7 +4997,7 @@ function defineLegacyVNodeProperties(vnode) {
4997
4997
  }
4998
4998
  }
4999
4999
 
5000
- const normalizedFunctionalComponentMap = /* @__PURE__ */ new Map();
5000
+ const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
5001
5001
  const legacySlotProxyHandlers = {
5002
5002
  get(target, key) {
5003
5003
  const slot = target[key];
@@ -6295,7 +6295,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6295
6295
  return vm;
6296
6296
  }
6297
6297
  }
6298
- Vue.version = `2.6.14-compat:${"3.3.5"}`;
6298
+ Vue.version = `2.6.14-compat:${"3.3.6"}`;
6299
6299
  Vue.config = singletonApp.config;
6300
6300
  Vue.use = (p, ...options) => {
6301
6301
  if (p && isFunction(p.install)) {
@@ -6709,7 +6709,7 @@ function createAppAPI(render, hydrate) {
6709
6709
  }
6710
6710
  });
6711
6711
  }
6712
- const installedPlugins = /* @__PURE__ */ new Set();
6712
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
6713
6713
  let isMounted = false;
6714
6714
  const app = context.app = {
6715
6715
  _uid: uid$1++,
@@ -7452,7 +7452,7 @@ const updateSlots = (instance, children, optimized) => {
7452
7452
  }
7453
7453
  if (needDeletionCheck) {
7454
7454
  for (const key in slots) {
7455
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
7455
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
7456
7456
  delete slots[key];
7457
7457
  }
7458
7458
  }
@@ -9683,19 +9683,18 @@ const TeleportImpl = {
9683
9683
  if (target) {
9684
9684
  hostRemove(targetAnchor);
9685
9685
  }
9686
- if (doRemove || !isTeleportDisabled(props)) {
9687
- hostRemove(anchor);
9688
- if (shapeFlag & 16) {
9689
- for (let i = 0; i < children.length; i++) {
9690
- const child = children[i];
9691
- unmount(
9692
- child,
9693
- parentComponent,
9694
- parentSuspense,
9695
- true,
9696
- !!child.dynamicChildren
9697
- );
9698
- }
9686
+ doRemove && hostRemove(anchor);
9687
+ if (shapeFlag & 16) {
9688
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
9689
+ for (let i = 0; i < children.length; i++) {
9690
+ const child = children[i];
9691
+ unmount(
9692
+ child,
9693
+ parentComponent,
9694
+ parentSuspense,
9695
+ shouldRemove,
9696
+ !!child.dynamicChildren
9697
+ );
9699
9698
  }
9700
9699
  }
9701
9700
  },
@@ -9779,7 +9778,7 @@ function updateCssVars(vnode) {
9779
9778
  const ctx = vnode.ctx;
9780
9779
  if (ctx && ctx.ut) {
9781
9780
  let node = vnode.children[0].el;
9782
- while (node !== vnode.targetAnchor) {
9781
+ while (node && node !== vnode.targetAnchor) {
9783
9782
  if (node.nodeType === 1)
9784
9783
  node.setAttribute("data-v-owner", ctx.uid);
9785
9784
  node = node.nextSibling;
@@ -9788,7 +9787,7 @@ function updateCssVars(vnode) {
9788
9787
  }
9789
9788
  }
9790
9789
 
9791
- const normalizedAsyncComponentMap = /* @__PURE__ */ new Map();
9790
+ const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
9792
9791
  function convertLegacyAsyncComponent(comp) {
9793
9792
  if (normalizedAsyncComponentMap.has(comp)) {
9794
9793
  return normalizedAsyncComponentMap.get(comp);
@@ -10895,7 +10894,7 @@ function isMemoSame(cached, memo) {
10895
10894
  return true;
10896
10895
  }
10897
10896
 
10898
- const version = "3.3.5";
10897
+ const version = "3.3.6";
10899
10898
  const _ssrUtils = {
10900
10899
  createComponentInstance,
10901
10900
  setupComponent,
@@ -14473,7 +14472,7 @@ function createTransformContext(root, {
14473
14472
  directives: /* @__PURE__ */ new Set(),
14474
14473
  hoists: [],
14475
14474
  imports: [],
14476
- constantCache: /* @__PURE__ */ new Map(),
14475
+ constantCache: /* @__PURE__ */ new WeakMap(),
14477
14476
  temps: 0,
14478
14477
  cached: 0,
14479
14478
  identifiers: /* @__PURE__ */ Object.create(null),
@@ -4954,7 +4954,7 @@ If this is a native custom element, make sure to exclude it from component resol
4954
4954
  }
4955
4955
  }
4956
4956
 
4957
- const normalizedFunctionalComponentMap = /* @__PURE__ */ new Map();
4957
+ const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
4958
4958
  const legacySlotProxyHandlers = {
4959
4959
  get(target, key) {
4960
4960
  const slot = target[key];
@@ -6250,7 +6250,7 @@ If this is a native custom element, make sure to exclude it from component resol
6250
6250
  return vm;
6251
6251
  }
6252
6252
  }
6253
- Vue.version = `2.6.14-compat:${"3.3.5"}`;
6253
+ Vue.version = `2.6.14-compat:${"3.3.6"}`;
6254
6254
  Vue.config = singletonApp.config;
6255
6255
  Vue.use = (p, ...options) => {
6256
6256
  if (p && isFunction(p.install)) {
@@ -6663,7 +6663,7 @@ If this is a native custom element, make sure to exclude it from component resol
6663
6663
  }
6664
6664
  });
6665
6665
  }
6666
- const installedPlugins = /* @__PURE__ */ new Set();
6666
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
6667
6667
  let isMounted = false;
6668
6668
  const app = context.app = {
6669
6669
  _uid: uid$1++,
@@ -7404,7 +7404,7 @@ If you want to remount the same app, move your app creation logic into a factory
7404
7404
  }
7405
7405
  if (needDeletionCheck) {
7406
7406
  for (const key in slots) {
7407
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
7407
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
7408
7408
  delete slots[key];
7409
7409
  }
7410
7410
  }
@@ -9601,19 +9601,18 @@ If you want to remount the same app, move your app creation logic into a factory
9601
9601
  if (target) {
9602
9602
  hostRemove(targetAnchor);
9603
9603
  }
9604
- if (doRemove || !isTeleportDisabled(props)) {
9605
- hostRemove(anchor);
9606
- if (shapeFlag & 16) {
9607
- for (let i = 0; i < children.length; i++) {
9608
- const child = children[i];
9609
- unmount(
9610
- child,
9611
- parentComponent,
9612
- parentSuspense,
9613
- true,
9614
- !!child.dynamicChildren
9615
- );
9616
- }
9604
+ doRemove && hostRemove(anchor);
9605
+ if (shapeFlag & 16) {
9606
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
9607
+ for (let i = 0; i < children.length; i++) {
9608
+ const child = children[i];
9609
+ unmount(
9610
+ child,
9611
+ parentComponent,
9612
+ parentSuspense,
9613
+ shouldRemove,
9614
+ !!child.dynamicChildren
9615
+ );
9617
9616
  }
9618
9617
  }
9619
9618
  },
@@ -9697,7 +9696,7 @@ If you want to remount the same app, move your app creation logic into a factory
9697
9696
  const ctx = vnode.ctx;
9698
9697
  if (ctx && ctx.ut) {
9699
9698
  let node = vnode.children[0].el;
9700
- while (node !== vnode.targetAnchor) {
9699
+ while (node && node !== vnode.targetAnchor) {
9701
9700
  if (node.nodeType === 1)
9702
9701
  node.setAttribute("data-v-owner", ctx.uid);
9703
9702
  node = node.nextSibling;
@@ -9706,7 +9705,7 @@ If you want to remount the same app, move your app creation logic into a factory
9706
9705
  }
9707
9706
  }
9708
9707
 
9709
- const normalizedAsyncComponentMap = /* @__PURE__ */ new Map();
9708
+ const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
9710
9709
  function convertLegacyAsyncComponent(comp) {
9711
9710
  if (normalizedAsyncComponentMap.has(comp)) {
9712
9711
  return normalizedAsyncComponentMap.get(comp);
@@ -10779,7 +10778,7 @@ Component that was made reactive: `,
10779
10778
  return true;
10780
10779
  }
10781
10780
 
10782
- const version = "3.3.5";
10781
+ const version = "3.3.6";
10783
10782
  const ssrUtils = null;
10784
10783
  const resolveFilter = resolveFilter$1 ;
10785
10784
  const _compatUtils = {
@@ -14294,7 +14293,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14294
14293
  directives: /* @__PURE__ */ new Set(),
14295
14294
  hoists: [],
14296
14295
  imports: [],
14297
- constantCache: /* @__PURE__ */ new Map(),
14296
+ constantCache: /* @__PURE__ */ new WeakMap(),
14298
14297
  temps: 0,
14299
14298
  cached: 0,
14300
14299
  identifiers: /* @__PURE__ */ Object.create(null),