@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
  **/
@@ -4325,6 +4325,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
4325
4325
  callHook(hook, [el]);
4326
4326
  },
4327
4327
  enter(el) {
4328
+ if (leavingVNodesCache[key] === vnode) return;
4328
4329
  let hook = onEnter;
4329
4330
  let afterHook = onAfterEnter;
4330
4331
  let cancelHook = onEnterCancelled;
@@ -6978,13 +6979,24 @@ function withAsyncContext(getAwaitable) {
6978
6979
  }
6979
6980
  let awaitable = getAwaitable();
6980
6981
  unsetCurrentInstance();
6982
+ const cleanup = () => {
6983
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
6984
+ unsetCurrentInstance();
6985
+ };
6981
6986
  if (isPromise(awaitable)) {
6982
6987
  awaitable = awaitable.catch((e) => {
6983
6988
  setCurrentInstance(ctx);
6989
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
6984
6990
  throw e;
6985
6991
  });
6986
6992
  }
6987
- return [awaitable, () => setCurrentInstance(ctx)];
6993
+ return [
6994
+ awaitable,
6995
+ () => {
6996
+ setCurrentInstance(ctx);
6997
+ Promise.resolve().then(cleanup);
6998
+ }
6999
+ ];
6988
7000
  }
6989
7001
 
6990
7002
  function createDuplicateChecker() {
@@ -7507,7 +7519,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7507
7519
  return vm;
7508
7520
  }
7509
7521
  }
7510
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7522
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7511
7523
  Vue.config = singletonApp.config;
7512
7524
  Vue.use = (plugin, ...options) => {
7513
7525
  if (plugin && isFunction(plugin.install)) {
@@ -12649,7 +12661,7 @@ function isMemoSame(cached, memo) {
12649
12661
  return true;
12650
12662
  }
12651
12663
 
12652
- const version = "3.5.28";
12664
+ const version = "3.5.29";
12653
12665
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12654
12666
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12655
12667
  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
  **/
@@ -4281,6 +4281,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4281
4281
  callHook(hook, [el]);
4282
4282
  },
4283
4283
  enter(el) {
4284
+ if (leavingVNodesCache[key] === vnode) return;
4284
4285
  let hook = onEnter;
4285
4286
  let afterHook = onAfterEnter;
4286
4287
  let cancelHook = onEnterCancelled;
@@ -6917,13 +6918,24 @@ If this is a native custom element, make sure to exclude it from component resol
6917
6918
  }
6918
6919
  let awaitable = getAwaitable();
6919
6920
  unsetCurrentInstance();
6921
+ const cleanup = () => {
6922
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
6923
+ unsetCurrentInstance();
6924
+ };
6920
6925
  if (isPromise(awaitable)) {
6921
6926
  awaitable = awaitable.catch((e) => {
6922
6927
  setCurrentInstance(ctx);
6928
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
6923
6929
  throw e;
6924
6930
  });
6925
6931
  }
6926
- return [awaitable, () => setCurrentInstance(ctx)];
6932
+ return [
6933
+ awaitable,
6934
+ () => {
6935
+ setCurrentInstance(ctx);
6936
+ Promise.resolve().then(cleanup);
6937
+ }
6938
+ ];
6927
6939
  }
6928
6940
 
6929
6941
  function createDuplicateChecker() {
@@ -7441,7 +7453,7 @@ If this is a native custom element, make sure to exclude it from component resol
7441
7453
  return vm;
7442
7454
  }
7443
7455
  }
7444
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7456
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7445
7457
  Vue.config = singletonApp.config;
7446
7458
  Vue.use = (plugin, ...options) => {
7447
7459
  if (plugin && isFunction(plugin.install)) {
@@ -12515,7 +12527,7 @@ Component that was made reactive: `,
12515
12527
  return true;
12516
12528
  }
12517
12529
 
12518
- const version = "3.5.28";
12530
+ const version = "3.5.29";
12519
12531
  const warn = warn$1 ;
12520
12532
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12521
12533
  const devtools = devtools$1 ;