@vue/compat 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/compat v3.6.0-rc.7
2
+ * @vue/compat v3.6.0-rc.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -539,6 +539,8 @@ function setupFlagsHandler(target) {
539
539
  function warn$2(msg, ...args) {
540
540
  console.warn(`[Vue warn] ${msg}`, ...args);
541
541
  }
542
+ //#endregion
543
+ //#region packages/reactivity/src/system.ts
542
544
  const notifyBuffer = [];
543
545
  let batchDepth = 0;
544
546
  let activeSub = void 0;
@@ -6184,37 +6186,32 @@ function createPropsRestProxy(props, excludedKeys) {
6184
6186
  function withAsyncContext(getAwaitable) {
6185
6187
  const ctx = getCurrentGenericInstance();
6186
6188
  const inSSRSetup = isInSSRComponentSetup;
6187
- const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
6188
6189
  if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
6189
6190
  let awaitable = getAwaitable();
6190
6191
  setCurrentInstance(null, void 0);
6191
6192
  if (inSSRSetup) setInSSRSetupState(false);
6192
6193
  const restore = () => {
6193
- const resetStoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
6194
+ const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
6194
6195
  setCurrentInstance(ctx);
6195
6196
  if (inSSRSetup) setInSSRSetupState(true);
6196
- const reset = restoreAsyncContext && restoreAsyncContext();
6197
- return () => {
6198
- if (reset) reset();
6199
- if (resetStoppedScope) resetStoppedScope.reset();
6200
- };
6197
+ return stoppedScope;
6201
6198
  };
6202
6199
  const cleanup = () => {
6203
6200
  setCurrentInstance(null, void 0);
6204
6201
  if (inSSRSetup) setInSSRSetupState(false);
6205
6202
  };
6206
6203
  if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
6207
- const reset = restore();
6204
+ const stoppedScope = restore();
6208
6205
  Promise.resolve().then(() => Promise.resolve().then(() => {
6209
- if (reset) reset();
6206
+ if (stoppedScope) stoppedScope.reset();
6210
6207
  cleanup();
6211
6208
  }));
6212
6209
  throw e;
6213
6210
  });
6214
6211
  return [awaitable, () => {
6215
- const reset = restore();
6212
+ const stoppedScope = restore();
6216
6213
  Promise.resolve().then(() => {
6217
- if (reset) reset();
6214
+ if (stoppedScope) stoppedScope.reset();
6218
6215
  cleanup();
6219
6216
  });
6220
6217
  }];
@@ -6539,7 +6536,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6539
6536
  if (options.el) return vm.$mount(options.el);
6540
6537
  else return vm;
6541
6538
  }
6542
- Vue.version = `2.6.14-compat:3.6.0-rc.7`;
6539
+ Vue.version = `2.6.14-compat:3.6.0-rc.8`;
6543
6540
  Vue.config = singletonApp.config;
6544
6541
  Vue.use = (plugin, ...options) => {
6545
6542
  if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
@@ -10081,7 +10078,7 @@ function isMemoSame(cached, memo) {
10081
10078
  }
10082
10079
  //#endregion
10083
10080
  //#region packages/runtime-core/src/index.ts
10084
- const version = "3.6.0-rc.7";
10081
+ const version = "3.6.0-rc.8";
10085
10082
  const warn = warn$1;
10086
10083
  /**
10087
10084
  * Runtime error messages. Only exposed in dev or esm builds.