@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.
package/dist/vue.cjs.js CHANGED
@@ -5051,7 +5051,7 @@ function defineLegacyVNodeProperties(vnode) {
5051
5051
  }
5052
5052
  }
5053
5053
 
5054
- const normalizedFunctionalComponentMap = /* @__PURE__ */ new Map();
5054
+ const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
5055
5055
  const legacySlotProxyHandlers = {
5056
5056
  get(target, key) {
5057
5057
  const slot = target[key];
@@ -6347,7 +6347,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6347
6347
  return vm;
6348
6348
  }
6349
6349
  }
6350
- Vue.version = `2.6.14-compat:${"3.3.5"}`;
6350
+ Vue.version = `2.6.14-compat:${"3.3.6"}`;
6351
6351
  Vue.config = singletonApp.config;
6352
6352
  Vue.use = (p, ...options) => {
6353
6353
  if (p && isFunction(p.install)) {
@@ -6760,7 +6760,7 @@ function createAppAPI(render, hydrate) {
6760
6760
  }
6761
6761
  });
6762
6762
  }
6763
- const installedPlugins = /* @__PURE__ */ new Set();
6763
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
6764
6764
  let isMounted = false;
6765
6765
  const app = context.app = {
6766
6766
  _uid: uid$1++,
@@ -7501,7 +7501,7 @@ const updateSlots = (instance, children, optimized) => {
7501
7501
  }
7502
7502
  if (needDeletionCheck) {
7503
7503
  for (const key in slots) {
7504
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
7504
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
7505
7505
  delete slots[key];
7506
7506
  }
7507
7507
  }
@@ -9698,19 +9698,18 @@ const TeleportImpl = {
9698
9698
  if (target) {
9699
9699
  hostRemove(targetAnchor);
9700
9700
  }
9701
- if (doRemove || !isTeleportDisabled(props)) {
9702
- hostRemove(anchor);
9703
- if (shapeFlag & 16) {
9704
- for (let i = 0; i < children.length; i++) {
9705
- const child = children[i];
9706
- unmount(
9707
- child,
9708
- parentComponent,
9709
- parentSuspense,
9710
- true,
9711
- !!child.dynamicChildren
9712
- );
9713
- }
9701
+ doRemove && hostRemove(anchor);
9702
+ if (shapeFlag & 16) {
9703
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
9704
+ for (let i = 0; i < children.length; i++) {
9705
+ const child = children[i];
9706
+ unmount(
9707
+ child,
9708
+ parentComponent,
9709
+ parentSuspense,
9710
+ shouldRemove,
9711
+ !!child.dynamicChildren
9712
+ );
9714
9713
  }
9715
9714
  }
9716
9715
  },
@@ -9794,7 +9793,7 @@ function updateCssVars(vnode) {
9794
9793
  const ctx = vnode.ctx;
9795
9794
  if (ctx && ctx.ut) {
9796
9795
  let node = vnode.children[0].el;
9797
- while (node !== vnode.targetAnchor) {
9796
+ while (node && node !== vnode.targetAnchor) {
9798
9797
  if (node.nodeType === 1)
9799
9798
  node.setAttribute("data-v-owner", ctx.uid);
9800
9799
  node = node.nextSibling;
@@ -9803,7 +9802,7 @@ function updateCssVars(vnode) {
9803
9802
  }
9804
9803
  }
9805
9804
 
9806
- const normalizedAsyncComponentMap = /* @__PURE__ */ new Map();
9805
+ const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
9807
9806
  function convertLegacyAsyncComponent(comp) {
9808
9807
  if (normalizedAsyncComponentMap.has(comp)) {
9809
9808
  return normalizedAsyncComponentMap.get(comp);
@@ -10894,7 +10893,7 @@ function isMemoSame(cached, memo) {
10894
10893
  return true;
10895
10894
  }
10896
10895
 
10897
- const version = "3.3.5";
10896
+ const version = "3.3.6";
10898
10897
  const _ssrUtils = {
10899
10898
  createComponentInstance,
10900
10899
  setupComponent,
@@ -14394,7 +14393,7 @@ function createTransformContext(root, {
14394
14393
  directives: /* @__PURE__ */ new Set(),
14395
14394
  hoists: [],
14396
14395
  imports: [],
14397
- constantCache: /* @__PURE__ */ new Map(),
14396
+ constantCache: /* @__PURE__ */ new WeakMap(),
14398
14397
  temps: 0,
14399
14398
  cached: 0,
14400
14399
  identifiers: /* @__PURE__ */ Object.create(null),
@@ -4033,7 +4033,7 @@ function defineLegacyVNodeProperties(vnode) {
4033
4033
  }
4034
4034
  }
4035
4035
 
4036
- const normalizedFunctionalComponentMap = /* @__PURE__ */ new Map();
4036
+ const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
4037
4037
  const legacySlotProxyHandlers = {
4038
4038
  get(target, key) {
4039
4039
  const slot = target[key];
@@ -5065,7 +5065,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5065
5065
  return vm;
5066
5066
  }
5067
5067
  }
5068
- Vue.version = `2.6.14-compat:${"3.3.5"}`;
5068
+ Vue.version = `2.6.14-compat:${"3.3.6"}`;
5069
5069
  Vue.config = singletonApp.config;
5070
5070
  Vue.use = (p, ...options) => {
5071
5071
  if (p && isFunction(p.install)) {
@@ -5427,7 +5427,7 @@ function createAppAPI(render, hydrate) {
5427
5427
  rootProps = null;
5428
5428
  }
5429
5429
  const context = createAppContext();
5430
- const installedPlugins = /* @__PURE__ */ new Set();
5430
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
5431
5431
  let isMounted = false;
5432
5432
  const app = context.app = {
5433
5433
  _uid: uid$1++,
@@ -5962,7 +5962,7 @@ const updateSlots = (instance, children, optimized) => {
5962
5962
  }
5963
5963
  if (needDeletionCheck) {
5964
5964
  for (const key in slots) {
5965
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
5965
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
5966
5966
  delete slots[key];
5967
5967
  }
5968
5968
  }
@@ -7906,19 +7906,18 @@ const TeleportImpl = {
7906
7906
  if (target) {
7907
7907
  hostRemove(targetAnchor);
7908
7908
  }
7909
- if (doRemove || !isTeleportDisabled(props)) {
7910
- hostRemove(anchor);
7911
- if (shapeFlag & 16) {
7912
- for (let i = 0; i < children.length; i++) {
7913
- const child = children[i];
7914
- unmount(
7915
- child,
7916
- parentComponent,
7917
- parentSuspense,
7918
- true,
7919
- !!child.dynamicChildren
7920
- );
7921
- }
7909
+ doRemove && hostRemove(anchor);
7910
+ if (shapeFlag & 16) {
7911
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
7912
+ for (let i = 0; i < children.length; i++) {
7913
+ const child = children[i];
7914
+ unmount(
7915
+ child,
7916
+ parentComponent,
7917
+ parentSuspense,
7918
+ shouldRemove,
7919
+ !!child.dynamicChildren
7920
+ );
7922
7921
  }
7923
7922
  }
7924
7923
  },
@@ -8002,7 +8001,7 @@ function updateCssVars(vnode) {
8002
8001
  const ctx = vnode.ctx;
8003
8002
  if (ctx && ctx.ut) {
8004
8003
  let node = vnode.children[0].el;
8005
- while (node !== vnode.targetAnchor) {
8004
+ while (node && node !== vnode.targetAnchor) {
8006
8005
  if (node.nodeType === 1)
8007
8006
  node.setAttribute("data-v-owner", ctx.uid);
8008
8007
  node = node.nextSibling;
@@ -8011,7 +8010,7 @@ function updateCssVars(vnode) {
8011
8010
  }
8012
8011
  }
8013
8012
 
8014
- const normalizedAsyncComponentMap = /* @__PURE__ */ new Map();
8013
+ const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
8015
8014
  function convertLegacyAsyncComponent(comp) {
8016
8015
  if (normalizedAsyncComponentMap.has(comp)) {
8017
8016
  return normalizedAsyncComponentMap.get(comp);
@@ -8753,7 +8752,7 @@ function isMemoSame(cached, memo) {
8753
8752
  return true;
8754
8753
  }
8755
8754
 
8756
- const version = "3.3.5";
8755
+ const version = "3.3.6";
8757
8756
  const _ssrUtils = {
8758
8757
  createComponentInstance,
8759
8758
  setupComponent,
@@ -12037,7 +12036,7 @@ function createTransformContext(root, {
12037
12036
  directives: /* @__PURE__ */ new Set(),
12038
12037
  hoists: [],
12039
12038
  imports: [],
12040
- constantCache: /* @__PURE__ */ new Map(),
12039
+ constantCache: /* @__PURE__ */ new WeakMap(),
12041
12040
  temps: 0,
12042
12041
  cached: 0,
12043
12042
  identifiers: /* @__PURE__ */ Object.create(null),
@@ -4951,7 +4951,7 @@ function defineLegacyVNodeProperties(vnode) {
4951
4951
  }
4952
4952
  }
4953
4953
 
4954
- const normalizedFunctionalComponentMap = /* @__PURE__ */ new Map();
4954
+ const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
4955
4955
  const legacySlotProxyHandlers = {
4956
4956
  get(target, key) {
4957
4957
  const slot = target[key];
@@ -6247,7 +6247,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6247
6247
  return vm;
6248
6248
  }
6249
6249
  }
6250
- Vue.version = `2.6.14-compat:${"3.3.5"}`;
6250
+ Vue.version = `2.6.14-compat:${"3.3.6"}`;
6251
6251
  Vue.config = singletonApp.config;
6252
6252
  Vue.use = (p, ...options) => {
6253
6253
  if (p && isFunction(p.install)) {
@@ -6660,7 +6660,7 @@ function createAppAPI(render, hydrate) {
6660
6660
  }
6661
6661
  });
6662
6662
  }
6663
- const installedPlugins = /* @__PURE__ */ new Set();
6663
+ const installedPlugins = /* @__PURE__ */ new WeakSet();
6664
6664
  let isMounted = false;
6665
6665
  const app = context.app = {
6666
6666
  _uid: uid$1++,
@@ -7401,7 +7401,7 @@ const updateSlots = (instance, children, optimized) => {
7401
7401
  }
7402
7402
  if (needDeletionCheck) {
7403
7403
  for (const key in slots) {
7404
- if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
7404
+ if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
7405
7405
  delete slots[key];
7406
7406
  }
7407
7407
  }
@@ -9598,19 +9598,18 @@ const TeleportImpl = {
9598
9598
  if (target) {
9599
9599
  hostRemove(targetAnchor);
9600
9600
  }
9601
- if (doRemove || !isTeleportDisabled(props)) {
9602
- hostRemove(anchor);
9603
- if (shapeFlag & 16) {
9604
- for (let i = 0; i < children.length; i++) {
9605
- const child = children[i];
9606
- unmount(
9607
- child,
9608
- parentComponent,
9609
- parentSuspense,
9610
- true,
9611
- !!child.dynamicChildren
9612
- );
9613
- }
9601
+ doRemove && hostRemove(anchor);
9602
+ if (shapeFlag & 16) {
9603
+ const shouldRemove = doRemove || !isTeleportDisabled(props);
9604
+ for (let i = 0; i < children.length; i++) {
9605
+ const child = children[i];
9606
+ unmount(
9607
+ child,
9608
+ parentComponent,
9609
+ parentSuspense,
9610
+ shouldRemove,
9611
+ !!child.dynamicChildren
9612
+ );
9614
9613
  }
9615
9614
  }
9616
9615
  },
@@ -9694,7 +9693,7 @@ function updateCssVars(vnode) {
9694
9693
  const ctx = vnode.ctx;
9695
9694
  if (ctx && ctx.ut) {
9696
9695
  let node = vnode.children[0].el;
9697
- while (node !== vnode.targetAnchor) {
9696
+ while (node && node !== vnode.targetAnchor) {
9698
9697
  if (node.nodeType === 1)
9699
9698
  node.setAttribute("data-v-owner", ctx.uid);
9700
9699
  node = node.nextSibling;
@@ -9703,7 +9702,7 @@ function updateCssVars(vnode) {
9703
9702
  }
9704
9703
  }
9705
9704
 
9706
- const normalizedAsyncComponentMap = /* @__PURE__ */ new Map();
9705
+ const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
9707
9706
  function convertLegacyAsyncComponent(comp) {
9708
9707
  if (normalizedAsyncComponentMap.has(comp)) {
9709
9708
  return normalizedAsyncComponentMap.get(comp);
@@ -10782,7 +10781,7 @@ function isMemoSame(cached, memo) {
10782
10781
  return true;
10783
10782
  }
10784
10783
 
10785
- const version = "3.3.5";
10784
+ const version = "3.3.6";
10786
10785
  const ssrUtils = null;
10787
10786
  const resolveFilter = resolveFilter$1 ;
10788
10787
  const _compatUtils = {
@@ -14309,7 +14308,7 @@ function createTransformContext(root, {
14309
14308
  directives: /* @__PURE__ */ new Set(),
14310
14309
  hoists: [],
14311
14310
  imports: [],
14312
- constantCache: /* @__PURE__ */ new Map(),
14311
+ constantCache: /* @__PURE__ */ new WeakMap(),
14313
14312
  temps: 0,
14314
14313
  cached: 0,
14315
14314
  identifiers: /* @__PURE__ */ Object.create(null),