@vue/runtime-core 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/runtime-core v3.5.28
2
+ * @vue/runtime-core v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1525,6 +1525,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
1525
1525
  callHook(hook, [el]);
1526
1526
  },
1527
1527
  enter(el) {
1528
+ if (leavingVNodesCache[key] === vnode) return;
1528
1529
  let hook = onEnter;
1529
1530
  let afterHook = onAfterEnter;
1530
1531
  let cancelHook = onEnterCancelled;
@@ -3621,13 +3622,24 @@ function withAsyncContext(getAwaitable) {
3621
3622
  }
3622
3623
  let awaitable = getAwaitable();
3623
3624
  unsetCurrentInstance();
3625
+ const cleanup = () => {
3626
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
3627
+ unsetCurrentInstance();
3628
+ };
3624
3629
  if (shared.isPromise(awaitable)) {
3625
3630
  awaitable = awaitable.catch((e) => {
3626
3631
  setCurrentInstance(ctx);
3632
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
3627
3633
  throw e;
3628
3634
  });
3629
3635
  }
3630
- return [awaitable, () => setCurrentInstance(ctx)];
3636
+ return [
3637
+ awaitable,
3638
+ () => {
3639
+ setCurrentInstance(ctx);
3640
+ Promise.resolve().then(cleanup);
3641
+ }
3642
+ ];
3631
3643
  }
3632
3644
 
3633
3645
  function createDuplicateChecker() {
@@ -8481,7 +8493,7 @@ function isMemoSame(cached, memo) {
8481
8493
  return true;
8482
8494
  }
8483
8495
 
8484
- const version = "3.5.28";
8496
+ const version = "3.5.29";
8485
8497
  const warn = warn$1 ;
8486
8498
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8487
8499
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.28
2
+ * @vue/runtime-core v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1062,6 +1062,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
1062
1062
  callHook(hook, [el]);
1063
1063
  },
1064
1064
  enter(el) {
1065
+ if (leavingVNodesCache[key] === vnode) return;
1065
1066
  let hook = onEnter;
1066
1067
  let afterHook = onAfterEnter;
1067
1068
  let cancelHook = onEnterCancelled;
@@ -2759,13 +2760,24 @@ function withAsyncContext(getAwaitable) {
2759
2760
  const ctx = getCurrentInstance();
2760
2761
  let awaitable = getAwaitable();
2761
2762
  unsetCurrentInstance();
2763
+ const cleanup = () => {
2764
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
2765
+ unsetCurrentInstance();
2766
+ };
2762
2767
  if (shared.isPromise(awaitable)) {
2763
2768
  awaitable = awaitable.catch((e) => {
2764
2769
  setCurrentInstance(ctx);
2770
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
2765
2771
  throw e;
2766
2772
  });
2767
2773
  }
2768
- return [awaitable, () => setCurrentInstance(ctx)];
2774
+ return [
2775
+ awaitable,
2776
+ () => {
2777
+ setCurrentInstance(ctx);
2778
+ Promise.resolve().then(cleanup);
2779
+ }
2780
+ ];
2769
2781
  }
2770
2782
 
2771
2783
  let shouldCacheAccess = true;
@@ -6628,7 +6640,7 @@ function isMemoSame(cached, memo) {
6628
6640
  return true;
6629
6641
  }
6630
6642
 
6631
- const version = "3.5.28";
6643
+ const version = "3.5.29";
6632
6644
  const warn$1 = shared.NOOP;
6633
6645
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6634
6646
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.28
2
+ * @vue/runtime-core v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1529,6 +1529,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
1529
1529
  callHook(hook, [el]);
1530
1530
  },
1531
1531
  enter(el) {
1532
+ if (leavingVNodesCache[key] === vnode) return;
1532
1533
  let hook = onEnter;
1533
1534
  let afterHook = onAfterEnter;
1534
1535
  let cancelHook = onEnterCancelled;
@@ -3639,13 +3640,24 @@ function withAsyncContext(getAwaitable) {
3639
3640
  }
3640
3641
  let awaitable = getAwaitable();
3641
3642
  unsetCurrentInstance();
3643
+ const cleanup = () => {
3644
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
3645
+ unsetCurrentInstance();
3646
+ };
3642
3647
  if (isPromise(awaitable)) {
3643
3648
  awaitable = awaitable.catch((e) => {
3644
3649
  setCurrentInstance(ctx);
3650
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
3645
3651
  throw e;
3646
3652
  });
3647
3653
  }
3648
- return [awaitable, () => setCurrentInstance(ctx)];
3654
+ return [
3655
+ awaitable,
3656
+ () => {
3657
+ setCurrentInstance(ctx);
3658
+ Promise.resolve().then(cleanup);
3659
+ }
3660
+ ];
3649
3661
  }
3650
3662
 
3651
3663
  function createDuplicateChecker() {
@@ -8555,7 +8567,7 @@ function isMemoSame(cached, memo) {
8555
8567
  return true;
8556
8568
  }
8557
8569
 
8558
- const version = "3.5.28";
8570
+ const version = "3.5.29";
8559
8571
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8560
8572
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8561
8573
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.5.28",
3
+ "version": "3.5.29",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
- "@vue/shared": "3.5.28",
50
- "@vue/reactivity": "3.5.28"
49
+ "@vue/reactivity": "3.5.29",
50
+ "@vue/shared": "3.5.29"
51
51
  }
52
52
  }