@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
  **/
@@ -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
  **/
@@ -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
  **/
@@ -2378,7 +2378,6 @@ function warn$1(msg, ...args) {
2378
2378
  instance,
2379
2379
  11,
2380
2380
  [
2381
- // eslint-disable-next-line no-restricted-syntax
2382
2381
  msg + args.map((a) => {
2383
2382
  var _a, _b;
2384
2383
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -3003,7 +3002,6 @@ function setDevtoolsHook$1(hook, target) {
3003
3002
  // (#4815)
3004
3003
  typeof window !== "undefined" && // some envs mock window but not fully
3005
3004
  window.HTMLElement && // also exclude jsdom
3006
- // eslint-disable-next-line no-restricted-syntax
3007
3005
  !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
3008
3006
  ) {
3009
3007
  const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
@@ -4998,9 +4996,17 @@ function isMismatchAllowed(el, allowedType) {
4998
4996
  }
4999
4997
  }
5000
4998
 
5001
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
5002
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
4999
+ let requestIdleCallback;
5000
+ let cancelIdleCallback;
5001
+ function ensureIdleCallbacks() {
5002
+ if (!requestIdleCallback) {
5003
+ const g = getGlobalThis();
5004
+ requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
5005
+ cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
5006
+ }
5007
+ }
5003
5008
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
5009
+ ensureIdleCallbacks();
5004
5010
  const id = requestIdleCallback(hydrate, { timeout });
5005
5011
  return () => cancelIdleCallback(id);
5006
5012
  };
@@ -10187,7 +10193,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
10187
10193
  parentSuspense,
10188
10194
  parentComponent,
10189
10195
  node.parentNode,
10190
- // eslint-disable-next-line no-restricted-globals
10196
+ // oxlint-disable-next-line no-restricted-globals
10191
10197
  document.createElement("div"),
10192
10198
  null,
10193
10199
  namespace,
@@ -10683,7 +10689,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
10683
10689
  simpleSetCurrentInstance(instance);
10684
10690
  }
10685
10691
  };
10686
- const internalOptions = ["ce", "type"];
10692
+ const internalOptions = ["ce", "type", "uid"];
10687
10693
  const useInstanceOption = (key, silent = false) => {
10688
10694
  const instance = getCurrentGenericInstance();
10689
10695
  if (!instance) {
@@ -10703,7 +10709,7 @@ const useInstanceOption = (key, silent = false) => {
10703
10709
  return { hasInstance: true, value: instance[key] };
10704
10710
  };
10705
10711
 
10706
- const emptyAppContext = createAppContext();
10712
+ const emptyAppContext = /* @__PURE__ */ createAppContext();
10707
10713
  let uid = 0;
10708
10714
  function createComponentInstance(vnode, parent, suspense) {
10709
10715
  const type = vnode.type;
@@ -11335,7 +11341,7 @@ function isMemoSame(cached, memo) {
11335
11341
  return true;
11336
11342
  }
11337
11343
 
11338
- const version = "3.6.0-beta.1";
11344
+ const version = "3.6.0-beta.2";
11339
11345
  const warn = warn$1 ;
11340
11346
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11341
11347
  const devtools = devtools$1 ;