@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
  **/
@@ -4233,6 +4233,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
4233
4233
  callHook(hook, [el]);
4234
4234
  },
4235
4235
  enter(el) {
4236
+ if (leavingVNodesCache[key] === vnode) return;
4236
4237
  let hook = onEnter;
4237
4238
  let afterHook = onAfterEnter;
4238
4239
  let cancelHook = onEnterCancelled;
@@ -6875,13 +6876,24 @@ function withAsyncContext(getAwaitable) {
6875
6876
  }
6876
6877
  let awaitable = getAwaitable();
6877
6878
  unsetCurrentInstance();
6879
+ const cleanup = () => {
6880
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
6881
+ unsetCurrentInstance();
6882
+ };
6878
6883
  if (isPromise(awaitable)) {
6879
6884
  awaitable = awaitable.catch((e) => {
6880
6885
  setCurrentInstance(ctx);
6886
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
6881
6887
  throw e;
6882
6888
  });
6883
6889
  }
6884
- return [awaitable, () => setCurrentInstance(ctx)];
6890
+ return [
6891
+ awaitable,
6892
+ () => {
6893
+ setCurrentInstance(ctx);
6894
+ Promise.resolve().then(cleanup);
6895
+ }
6896
+ ];
6885
6897
  }
6886
6898
 
6887
6899
  function createDuplicateChecker() {
@@ -7402,7 +7414,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7402
7414
  return vm;
7403
7415
  }
7404
7416
  }
7405
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7417
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7406
7418
  Vue.config = singletonApp.config;
7407
7419
  Vue.use = (plugin, ...options) => {
7408
7420
  if (plugin && isFunction(plugin.install)) {
@@ -12490,7 +12502,7 @@ function isMemoSame(cached, memo) {
12490
12502
  return true;
12491
12503
  }
12492
12504
 
12493
- const version = "3.5.28";
12505
+ const version = "3.5.29";
12494
12506
  const warn = warn$1 ;
12495
12507
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12496
12508
  const devtools = devtools$1 ;