@vue/runtime-core 3.6.0-rc.7 → 3.6.0-rc.8

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.6.0-rc.7
2
+ * @vue/runtime-core v3.6.0-rc.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -3120,37 +3120,32 @@ function createPropsRestProxy(props, excludedKeys) {
3120
3120
  function withAsyncContext(getAwaitable) {
3121
3121
  const ctx = getCurrentGenericInstance();
3122
3122
  const inSSRSetup = isInSSRComponentSetup;
3123
- const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
3124
3123
  if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
3125
3124
  let awaitable = getAwaitable();
3126
3125
  setCurrentInstance(null, void 0);
3127
3126
  if (inSSRSetup) setInSSRSetupState(false);
3128
3127
  const restore = () => {
3129
- const resetStoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
3128
+ const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
3130
3129
  setCurrentInstance(ctx);
3131
3130
  if (inSSRSetup) setInSSRSetupState(true);
3132
- const reset = restoreAsyncContext && restoreAsyncContext();
3133
- return () => {
3134
- if (reset) reset();
3135
- if (resetStoppedScope) resetStoppedScope.reset();
3136
- };
3131
+ return stoppedScope;
3137
3132
  };
3138
3133
  const cleanup = () => {
3139
3134
  setCurrentInstance(null, void 0);
3140
3135
  if (inSSRSetup) setInSSRSetupState(false);
3141
3136
  };
3142
3137
  if ((0, _vue_shared.isPromise)(awaitable)) awaitable = awaitable.catch((e) => {
3143
- const reset = restore();
3138
+ const stoppedScope = restore();
3144
3139
  Promise.resolve().then(() => Promise.resolve().then(() => {
3145
- if (reset) reset();
3140
+ if (stoppedScope) stoppedScope.reset();
3146
3141
  cleanup();
3147
3142
  }));
3148
3143
  throw e;
3149
3144
  });
3150
3145
  return [awaitable, () => {
3151
- const reset = restore();
3146
+ const stoppedScope = restore();
3152
3147
  Promise.resolve().then(() => {
3153
- if (reset) reset();
3148
+ if (stoppedScope) stoppedScope.reset();
3154
3149
  cleanup();
3155
3150
  });
3156
3151
  }];
@@ -6522,7 +6517,7 @@ function isMemoSame(cached, memo) {
6522
6517
  }
6523
6518
  //#endregion
6524
6519
  //#region packages/runtime-core/src/index.ts
6525
- const version = "3.6.0-rc.7";
6520
+ const version = "3.6.0-rc.8";
6526
6521
  const warn = warn$1;
6527
6522
  /**
6528
6523
  * Runtime error messages. Only exposed in dev or esm builds.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.6.0-rc.7
2
+ * @vue/runtime-core v3.6.0-rc.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2433,36 +2433,31 @@ function createPropsRestProxy(props, excludedKeys) {
2433
2433
  function withAsyncContext(getAwaitable) {
2434
2434
  const ctx = getCurrentGenericInstance();
2435
2435
  const inSSRSetup = isInSSRComponentSetup;
2436
- const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
2437
2436
  let awaitable = getAwaitable();
2438
2437
  setCurrentInstance(null, void 0);
2439
2438
  if (inSSRSetup) setInSSRSetupState(false);
2440
2439
  const restore = () => {
2441
- const resetStoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
2440
+ const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
2442
2441
  setCurrentInstance(ctx);
2443
2442
  if (inSSRSetup) setInSSRSetupState(true);
2444
- const reset = restoreAsyncContext && restoreAsyncContext();
2445
- return () => {
2446
- if (reset) reset();
2447
- if (resetStoppedScope) resetStoppedScope.reset();
2448
- };
2443
+ return stoppedScope;
2449
2444
  };
2450
2445
  const cleanup = () => {
2451
2446
  setCurrentInstance(null, void 0);
2452
2447
  if (inSSRSetup) setInSSRSetupState(false);
2453
2448
  };
2454
2449
  if ((0, _vue_shared.isPromise)(awaitable)) awaitable = awaitable.catch((e) => {
2455
- const reset = restore();
2450
+ const stoppedScope = restore();
2456
2451
  Promise.resolve().then(() => Promise.resolve().then(() => {
2457
- if (reset) reset();
2452
+ if (stoppedScope) stoppedScope.reset();
2458
2453
  cleanup();
2459
2454
  }));
2460
2455
  throw e;
2461
2456
  });
2462
2457
  return [awaitable, () => {
2463
- const reset = restore();
2458
+ const stoppedScope = restore();
2464
2459
  Promise.resolve().then(() => {
2465
- if (reset) reset();
2460
+ if (stoppedScope) stoppedScope.reset();
2466
2461
  cleanup();
2467
2462
  });
2468
2463
  }];
@@ -5115,7 +5110,7 @@ function isMemoSame(cached, memo) {
5115
5110
  }
5116
5111
  //#endregion
5117
5112
  //#region packages/runtime-core/src/index.ts
5118
- const version = "3.6.0-rc.7";
5113
+ const version = "3.6.0-rc.8";
5119
5114
  const warn = _vue_shared.NOOP;
5120
5115
  /**
5121
5116
  * Runtime error messages. Only exposed in dev or esm builds.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.6.0-rc.7
2
+ * @vue/runtime-core v3.6.0-rc.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -3171,37 +3171,32 @@ function createPropsRestProxy(props, excludedKeys) {
3171
3171
  function withAsyncContext(getAwaitable) {
3172
3172
  const ctx = getCurrentGenericInstance();
3173
3173
  const inSSRSetup = isInSSRComponentSetup;
3174
- const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
3175
3174
  if (!!(process.env.NODE_ENV !== "production") && !ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
3176
3175
  let awaitable = getAwaitable();
3177
3176
  setCurrentInstance(null, void 0);
3178
3177
  if (inSSRSetup) setInSSRSetupState(false);
3179
3178
  const restore = () => {
3180
- const resetStoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
3179
+ const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
3181
3180
  setCurrentInstance(ctx);
3182
3181
  if (inSSRSetup) setInSSRSetupState(true);
3183
- const reset = restoreAsyncContext && restoreAsyncContext();
3184
- return () => {
3185
- if (reset) reset();
3186
- if (resetStoppedScope) resetStoppedScope.reset();
3187
- };
3182
+ return stoppedScope;
3188
3183
  };
3189
3184
  const cleanup = () => {
3190
3185
  setCurrentInstance(null, void 0);
3191
3186
  if (inSSRSetup) setInSSRSetupState(false);
3192
3187
  };
3193
3188
  if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
3194
- const reset = restore();
3189
+ const stoppedScope = restore();
3195
3190
  Promise.resolve().then(() => Promise.resolve().then(() => {
3196
- if (reset) reset();
3191
+ if (stoppedScope) stoppedScope.reset();
3197
3192
  cleanup();
3198
3193
  }));
3199
3194
  throw e;
3200
3195
  });
3201
3196
  return [awaitable, () => {
3202
- const reset = restore();
3197
+ const stoppedScope = restore();
3203
3198
  Promise.resolve().then(() => {
3204
- if (reset) reset();
3199
+ if (stoppedScope) stoppedScope.reset();
3205
3200
  cleanup();
3206
3201
  });
3207
3202
  }];
@@ -6644,7 +6639,7 @@ function isMemoSame(cached, memo) {
6644
6639
  }
6645
6640
  //#endregion
6646
6641
  //#region packages/runtime-core/src/index.ts
6647
- const version = "3.6.0-rc.7";
6642
+ const version = "3.6.0-rc.8";
6648
6643
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
6649
6644
  /**
6650
6645
  * Runtime error messages. Only exposed in dev or esm builds.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.6.0-rc.7",
3
+ "version": "3.6.0-rc.8",
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/reactivity": "3.6.0-rc.7",
50
- "@vue/shared": "3.6.0-rc.7"
49
+ "@vue/shared": "3.6.0-rc.8",
50
+ "@vue/reactivity": "3.6.0-rc.8"
51
51
  }
52
52
  }