@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
  **/
@@ -544,6 +544,8 @@ function setupFlagsHandler(target) {
544
544
  function warn$2(msg, ...args) {
545
545
  console.warn(`[Vue warn] ${msg}`, ...args);
546
546
  }
547
+ //#endregion
548
+ //#region packages/reactivity/src/system.ts
547
549
  const notifyBuffer = [];
548
550
  let batchDepth = 0;
549
551
  let activeSub = void 0;
@@ -6269,37 +6271,32 @@ function createPropsRestProxy(props, excludedKeys) {
6269
6271
  function withAsyncContext(getAwaitable) {
6270
6272
  const ctx = getCurrentGenericInstance();
6271
6273
  const inSSRSetup = isInSSRComponentSetup;
6272
- const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
6273
6274
  if (!!(process.env.NODE_ENV !== "production") && !ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
6274
6275
  let awaitable = getAwaitable();
6275
6276
  setCurrentInstance(null, void 0);
6276
6277
  if (inSSRSetup) setInSSRSetupState(false);
6277
6278
  const restore = () => {
6278
- const resetStoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
6279
+ const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
6279
6280
  setCurrentInstance(ctx);
6280
6281
  if (inSSRSetup) setInSSRSetupState(true);
6281
- const reset = restoreAsyncContext && restoreAsyncContext();
6282
- return () => {
6283
- if (reset) reset();
6284
- if (resetStoppedScope) resetStoppedScope.reset();
6285
- };
6282
+ return stoppedScope;
6286
6283
  };
6287
6284
  const cleanup = () => {
6288
6285
  setCurrentInstance(null, void 0);
6289
6286
  if (inSSRSetup) setInSSRSetupState(false);
6290
6287
  };
6291
6288
  if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
6292
- const reset = restore();
6289
+ const stoppedScope = restore();
6293
6290
  Promise.resolve().then(() => Promise.resolve().then(() => {
6294
- if (reset) reset();
6291
+ if (stoppedScope) stoppedScope.reset();
6295
6292
  cleanup();
6296
6293
  }));
6297
6294
  throw e;
6298
6295
  });
6299
6296
  return [awaitable, () => {
6300
- const reset = restore();
6297
+ const stoppedScope = restore();
6301
6298
  Promise.resolve().then(() => {
6302
- if (reset) reset();
6299
+ if (stoppedScope) stoppedScope.reset();
6303
6300
  cleanup();
6304
6301
  });
6305
6302
  }];
@@ -6626,7 +6623,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6626
6623
  if (options.el) return vm.$mount(options.el);
6627
6624
  else return vm;
6628
6625
  }
6629
- Vue.version = `2.6.14-compat:3.6.0-rc.7`;
6626
+ Vue.version = `2.6.14-compat:3.6.0-rc.8`;
6630
6627
  Vue.config = singletonApp.config;
6631
6628
  Vue.use = (plugin, ...options) => {
6632
6629
  if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
@@ -10249,7 +10246,7 @@ function isMemoSame(cached, memo) {
10249
10246
  }
10250
10247
  //#endregion
10251
10248
  //#region packages/runtime-core/src/index.ts
10252
- const version = "3.6.0-rc.7";
10249
+ const version = "3.6.0-rc.8";
10253
10250
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
10254
10251
  /**
10255
10252
  * Runtime error messages. Only exposed in dev or esm builds.
@@ -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
  **/
@@ -540,6 +540,8 @@ var Vue = (function() {
540
540
  function warn$2(msg, ...args) {
541
541
  console.warn(`[Vue warn] ${msg}`, ...args);
542
542
  }
543
+ //#endregion
544
+ //#region packages/reactivity/src/system.ts
543
545
  const notifyBuffer = [];
544
546
  let batchDepth = 0;
545
547
  let activeSub = void 0;
@@ -6181,37 +6183,32 @@ var Vue = (function() {
6181
6183
  function withAsyncContext(getAwaitable) {
6182
6184
  const ctx = getCurrentGenericInstance();
6183
6185
  const inSSRSetup = isInSSRComponentSetup;
6184
- const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
6185
6186
  if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
6186
6187
  let awaitable = getAwaitable();
6187
6188
  setCurrentInstance(null, void 0);
6188
6189
  if (inSSRSetup) setInSSRSetupState(false);
6189
6190
  const restore = () => {
6190
- const resetStoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
6191
+ const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
6191
6192
  setCurrentInstance(ctx);
6192
6193
  if (inSSRSetup) setInSSRSetupState(true);
6193
- const reset = restoreAsyncContext && restoreAsyncContext();
6194
- return () => {
6195
- if (reset) reset();
6196
- if (resetStoppedScope) resetStoppedScope.reset();
6197
- };
6194
+ return stoppedScope;
6198
6195
  };
6199
6196
  const cleanup = () => {
6200
6197
  setCurrentInstance(null, void 0);
6201
6198
  if (inSSRSetup) setInSSRSetupState(false);
6202
6199
  };
6203
6200
  if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
6204
- const reset = restore();
6201
+ const stoppedScope = restore();
6205
6202
  Promise.resolve().then(() => Promise.resolve().then(() => {
6206
- if (reset) reset();
6203
+ if (stoppedScope) stoppedScope.reset();
6207
6204
  cleanup();
6208
6205
  }));
6209
6206
  throw e;
6210
6207
  });
6211
6208
  return [awaitable, () => {
6212
- const reset = restore();
6209
+ const stoppedScope = restore();
6213
6210
  Promise.resolve().then(() => {
6214
- if (reset) reset();
6211
+ if (stoppedScope) stoppedScope.reset();
6215
6212
  cleanup();
6216
6213
  });
6217
6214
  }];
@@ -6536,7 +6533,7 @@ var Vue = (function() {
6536
6533
  if (options.el) return vm.$mount(options.el);
6537
6534
  else return vm;
6538
6535
  }
6539
- Vue.version = `2.6.14-compat:3.6.0-rc.7`;
6536
+ Vue.version = `2.6.14-compat:3.6.0-rc.8`;
6540
6537
  Vue.config = singletonApp.config;
6541
6538
  Vue.use = (plugin, ...options) => {
6542
6539
  if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
@@ -10078,7 +10075,7 @@ var Vue = (function() {
10078
10075
  }
10079
10076
  //#endregion
10080
10077
  //#region packages/runtime-core/src/index.ts
10081
- const version = "3.6.0-rc.7";
10078
+ const version = "3.6.0-rc.8";
10082
10079
  const warn = warn$1;
10083
10080
  /**
10084
10081
  * Runtime error messages. Only exposed in dev or esm builds.