@vue/runtime-dom 3.6.0-beta.1 → 3.6.0-beta.2

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-dom v3.6.0-beta.1
2
+ * @vue/runtime-dom v3.6.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2381,7 +2381,6 @@ var VueRuntimeDOM = (function (exports) {
2381
2381
  instance,
2382
2382
  11,
2383
2383
  [
2384
- // eslint-disable-next-line no-restricted-syntax
2385
2384
  msg + args.map((a) => {
2386
2385
  var _a, _b;
2387
2386
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -3006,7 +3005,6 @@ var VueRuntimeDOM = (function (exports) {
3006
3005
  // (#4815)
3007
3006
  typeof window !== "undefined" && // some envs mock window but not fully
3008
3007
  window.HTMLElement && // also exclude jsdom
3009
- // eslint-disable-next-line no-restricted-syntax
3010
3008
  !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
3011
3009
  ) {
3012
3010
  const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
@@ -4973,9 +4971,17 @@ Server rendered element contains fewer child nodes than client vdom.`
4973
4971
  }
4974
4972
  }
4975
4973
 
4976
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
4977
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
4974
+ let requestIdleCallback;
4975
+ let cancelIdleCallback;
4976
+ function ensureIdleCallbacks() {
4977
+ if (!requestIdleCallback) {
4978
+ const g = getGlobalThis();
4979
+ requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
4980
+ cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
4981
+ }
4982
+ }
4978
4983
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
4984
+ ensureIdleCallbacks();
4979
4985
  const id = requestIdleCallback(hydrate, { timeout });
4980
4986
  return () => cancelIdleCallback(id);
4981
4987
  };
@@ -10153,7 +10159,7 @@ app.use(vaporInteropPlugin)
10153
10159
  parentSuspense,
10154
10160
  parentComponent,
10155
10161
  node.parentNode,
10156
- // eslint-disable-next-line no-restricted-globals
10162
+ // oxlint-disable-next-line no-restricted-globals
10157
10163
  document.createElement("div"),
10158
10164
  null,
10159
10165
  namespace,
@@ -10637,7 +10643,7 @@ Component that was made reactive: `,
10637
10643
  simpleSetCurrentInstance(instance);
10638
10644
  }
10639
10645
  };
10640
- const internalOptions = ["ce", "type"];
10646
+ const internalOptions = ["ce", "type", "uid"];
10641
10647
  const useInstanceOption = (key, silent = false) => {
10642
10648
  const instance = getCurrentGenericInstance();
10643
10649
  if (!instance) {
@@ -10657,7 +10663,7 @@ Component that was made reactive: `,
10657
10663
  return { hasInstance: true, value: instance[key] };
10658
10664
  };
10659
10665
 
10660
- const emptyAppContext = createAppContext();
10666
+ const emptyAppContext = /* @__PURE__ */ createAppContext();
10661
10667
  let uid = 0;
10662
10668
  function createComponentInstance(vnode, parent, suspense) {
10663
10669
  const type = vnode.type;
@@ -11287,7 +11293,7 @@ Component that was made reactive: `,
11287
11293
  return true;
11288
11294
  }
11289
11295
 
11290
- const version = "3.6.0-beta.1";
11296
+ const version = "3.6.0-beta.2";
11291
11297
  const warn = warn$1 ;
11292
11298
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11293
11299
  const devtools = devtools$1 ;