@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.
package/dist/vue.cjs.js CHANGED
@@ -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
  **/
@@ -4359,6 +4359,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
4359
4359
  callHook(hook, [el]);
4360
4360
  },
4361
4361
  enter(el) {
4362
+ if (leavingVNodesCache[key] === vnode) return;
4362
4363
  let hook = onEnter;
4363
4364
  let afterHook = onAfterEnter;
4364
4365
  let cancelHook = onEnterCancelled;
@@ -6998,13 +6999,24 @@ function withAsyncContext(getAwaitable) {
6998
6999
  }
6999
7000
  let awaitable = getAwaitable();
7000
7001
  unsetCurrentInstance();
7002
+ const cleanup = () => {
7003
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
7004
+ unsetCurrentInstance();
7005
+ };
7001
7006
  if (isPromise(awaitable)) {
7002
7007
  awaitable = awaitable.catch((e) => {
7003
7008
  setCurrentInstance(ctx);
7009
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
7004
7010
  throw e;
7005
7011
  });
7006
7012
  }
7007
- return [awaitable, () => setCurrentInstance(ctx)];
7013
+ return [
7014
+ awaitable,
7015
+ () => {
7016
+ setCurrentInstance(ctx);
7017
+ Promise.resolve().then(cleanup);
7018
+ }
7019
+ ];
7008
7020
  }
7009
7021
 
7010
7022
  function createDuplicateChecker() {
@@ -7525,7 +7537,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7525
7537
  return vm;
7526
7538
  }
7527
7539
  }
7528
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7540
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7529
7541
  Vue.config = singletonApp.config;
7530
7542
  Vue.use = (plugin, ...options) => {
7531
7543
  if (plugin && isFunction(plugin.install)) {
@@ -12613,7 +12625,7 @@ function isMemoSame(cached, memo) {
12613
12625
  return true;
12614
12626
  }
12615
12627
 
12616
- const version = "3.5.28";
12628
+ const version = "3.5.29";
12617
12629
  const warn = warn$1 ;
12618
12630
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12619
12631
  const devtools = devtools$1 ;
@@ -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
  **/
@@ -3384,6 +3384,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
3384
3384
  callHook(hook, [el]);
3385
3385
  },
3386
3386
  enter(el) {
3387
+ if (leavingVNodesCache[key] === vnode) return;
3387
3388
  let hook = onEnter;
3388
3389
  let afterHook = onAfterEnter;
3389
3390
  let cancelHook = onEnterCancelled;
@@ -5617,13 +5618,24 @@ function withAsyncContext(getAwaitable) {
5617
5618
  const ctx = getCurrentInstance();
5618
5619
  let awaitable = getAwaitable();
5619
5620
  unsetCurrentInstance();
5621
+ const cleanup = () => {
5622
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
5623
+ unsetCurrentInstance();
5624
+ };
5620
5625
  if (isPromise(awaitable)) {
5621
5626
  awaitable = awaitable.catch((e) => {
5622
5627
  setCurrentInstance(ctx);
5628
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
5623
5629
  throw e;
5624
5630
  });
5625
5631
  }
5626
- return [awaitable, () => setCurrentInstance(ctx)];
5632
+ return [
5633
+ awaitable,
5634
+ () => {
5635
+ setCurrentInstance(ctx);
5636
+ Promise.resolve().then(cleanup);
5637
+ }
5638
+ ];
5627
5639
  }
5628
5640
 
5629
5641
  let shouldCacheAccess = true;
@@ -6041,7 +6053,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6041
6053
  return vm;
6042
6054
  }
6043
6055
  }
6044
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
6056
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
6045
6057
  Vue.config = singletonApp.config;
6046
6058
  Vue.use = (plugin, ...options) => {
6047
6059
  if (plugin && isFunction(plugin.install)) {
@@ -10153,7 +10165,7 @@ function isMemoSame(cached, memo) {
10153
10165
  return true;
10154
10166
  }
10155
10167
 
10156
- const version = "3.5.28";
10168
+ const version = "3.5.29";
10157
10169
  const warn$1 = NOOP;
10158
10170
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10159
10171
  const devtools = 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
  **/
@@ -4306,6 +4306,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
4306
4306
  callHook(hook, [el]);
4307
4307
  },
4308
4308
  enter(el) {
4309
+ if (leavingVNodesCache[key] === vnode) return;
4309
4310
  let hook = onEnter;
4310
4311
  let afterHook = onAfterEnter;
4311
4312
  let cancelHook = onEnterCancelled;
@@ -6948,13 +6949,24 @@ function withAsyncContext(getAwaitable) {
6948
6949
  }
6949
6950
  let awaitable = getAwaitable();
6950
6951
  unsetCurrentInstance();
6952
+ const cleanup = () => {
6953
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
6954
+ unsetCurrentInstance();
6955
+ };
6951
6956
  if (isPromise(awaitable)) {
6952
6957
  awaitable = awaitable.catch((e) => {
6953
6958
  setCurrentInstance(ctx);
6959
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
6954
6960
  throw e;
6955
6961
  });
6956
6962
  }
6957
- return [awaitable, () => setCurrentInstance(ctx)];
6963
+ return [
6964
+ awaitable,
6965
+ () => {
6966
+ setCurrentInstance(ctx);
6967
+ Promise.resolve().then(cleanup);
6968
+ }
6969
+ ];
6958
6970
  }
6959
6971
 
6960
6972
  function createDuplicateChecker() {
@@ -7475,7 +7487,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7475
7487
  return vm;
7476
7488
  }
7477
7489
  }
7478
- Vue.version = `2.6.14-compat:${"3.5.28"}`;
7490
+ Vue.version = `2.6.14-compat:${"3.5.29"}`;
7479
7491
  Vue.config = singletonApp.config;
7480
7492
  Vue.use = (plugin, ...options) => {
7481
7493
  if (plugin && isFunction(plugin.install)) {
@@ -12563,7 +12575,7 @@ function isMemoSame(cached, memo) {
12563
12575
  return true;
12564
12576
  }
12565
12577
 
12566
- const version = "3.5.28";
12578
+ const version = "3.5.29";
12567
12579
  const warn = warn$1 ;
12568
12580
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12569
12581
  const devtools = devtools$1 ;