@vue/compat 3.5.28 → 3.5.29

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.28
2
+ * @vue/compat v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4252,6 +4252,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
4252
4252
  callHook(hook, [el]);
4253
4253
  },
4254
4254
  enter(el) {
4255
+ if (leavingVNodesCache[key] === vnode) return;
4255
4256
  let hook = onEnter;
4256
4257
  let afterHook = onAfterEnter;
4257
4258
  let cancelHook = onEnterCancelled;
@@ -6905,13 +6906,24 @@ function withAsyncContext(getAwaitable) {
6905
6906
  }
6906
6907
  let awaitable = getAwaitable();
6907
6908
  unsetCurrentInstance();
6909
+ const cleanup = () => {
6910
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
6911
+ unsetCurrentInstance();
6912
+ };
6908
6913
  if (isPromise(awaitable)) {
6909
6914
  awaitable = awaitable.catch((e) => {
6910
6915
  setCurrentInstance(ctx);
6916
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
6911
6917
  throw e;
6912
6918
  });
6913
6919
  }
6914
- return [awaitable, () => setCurrentInstance(ctx)];
6920
+ return [
6921
+ awaitable,
6922
+ () => {
6923
+ setCurrentInstance(ctx);
6924
+ Promise.resolve().then(cleanup);
6925
+ }
6926
+ ];
6915
6927
  }
6916
6928
 
6917
6929
  function createDuplicateChecker() {
@@ -7434,7 +7446,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7434
7446
  return vm;
7435
7447
  }
7436
7448
  }
7437
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7449
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7438
7450
  Vue.config = singletonApp.config;
7439
7451
  Vue.use = (plugin, ...options) => {
7440
7452
  if (plugin && isFunction(plugin.install)) {
@@ -12576,7 +12588,7 @@ function isMemoSame(cached, memo) {
12576
12588
  return true;
12577
12589
  }
12578
12590
 
12579
- const version = "3.5.28";
12591
+ const version = "3.5.29";
12580
12592
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12581
12593
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12582
12594
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.28
2
+ * @vue/compat v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4208,6 +4208,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4208
4208
  callHook(hook, [el]);
4209
4209
  },
4210
4210
  enter(el) {
4211
+ if (leavingVNodesCache[key] === vnode) return;
4211
4212
  let hook = onEnter;
4212
4213
  let afterHook = onAfterEnter;
4213
4214
  let cancelHook = onEnterCancelled;
@@ -6844,13 +6845,24 @@ If this is a native custom element, make sure to exclude it from component resol
6844
6845
  }
6845
6846
  let awaitable = getAwaitable();
6846
6847
  unsetCurrentInstance();
6848
+ const cleanup = () => {
6849
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
6850
+ unsetCurrentInstance();
6851
+ };
6847
6852
  if (isPromise(awaitable)) {
6848
6853
  awaitable = awaitable.catch((e) => {
6849
6854
  setCurrentInstance(ctx);
6855
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
6850
6856
  throw e;
6851
6857
  });
6852
6858
  }
6853
- return [awaitable, () => setCurrentInstance(ctx)];
6859
+ return [
6860
+ awaitable,
6861
+ () => {
6862
+ setCurrentInstance(ctx);
6863
+ Promise.resolve().then(cleanup);
6864
+ }
6865
+ ];
6854
6866
  }
6855
6867
 
6856
6868
  function createDuplicateChecker() {
@@ -7368,7 +7380,7 @@ If this is a native custom element, make sure to exclude it from component resol
7368
7380
  return vm;
7369
7381
  }
7370
7382
  }
7371
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7383
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7372
7384
  Vue.config = singletonApp.config;
7373
7385
  Vue.use = (plugin, ...options) => {
7374
7386
  if (plugin && isFunction(plugin.install)) {
@@ -12442,7 +12454,7 @@ Component that was made reactive: `,
12442
12454
  return true;
12443
12455
  }
12444
12456
 
12445
- const version = "3.5.28";
12457
+ const version = "3.5.29";
12446
12458
  const warn = warn$1 ;
12447
12459
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12448
12460
  const devtools = devtools$1 ;