vue 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.
package/dist/vue.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.6.0-beta.1
2
+ * vue 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 v3.6.0-beta.1
2
+ * vue 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 v3.6.0-beta.1
2
+ * vue v3.6.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2451,7 +2451,6 @@ function warn$1(msg, ...args) {
2451
2451
  instance,
2452
2452
  11,
2453
2453
  [
2454
- // eslint-disable-next-line no-restricted-syntax
2455
2454
  msg + args.map((a) => {
2456
2455
  var _a, _b;
2457
2456
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -3076,7 +3075,6 @@ function setDevtoolsHook$1(hook, target) {
3076
3075
  // (#4815)
3077
3076
  typeof window !== "undefined" && // some envs mock window but not fully
3078
3077
  window.HTMLElement && // also exclude jsdom
3079
- // eslint-disable-next-line no-restricted-syntax
3080
3078
  !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
3081
3079
  ) {
3082
3080
  const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
@@ -5071,9 +5069,17 @@ function isMismatchAllowed(el, allowedType) {
5071
5069
  }
5072
5070
  }
5073
5071
 
5074
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
5075
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
5072
+ let requestIdleCallback;
5073
+ let cancelIdleCallback;
5074
+ function ensureIdleCallbacks() {
5075
+ if (!requestIdleCallback) {
5076
+ const g = getGlobalThis();
5077
+ requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
5078
+ cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
5079
+ }
5080
+ }
5076
5081
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
5082
+ ensureIdleCallbacks();
5077
5083
  const id = requestIdleCallback(hydrate, { timeout });
5078
5084
  return () => cancelIdleCallback(id);
5079
5085
  };
@@ -10260,7 +10266,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
10260
10266
  parentSuspense,
10261
10267
  parentComponent,
10262
10268
  node.parentNode,
10263
- // eslint-disable-next-line no-restricted-globals
10269
+ // oxlint-disable-next-line no-restricted-globals
10264
10270
  document.createElement("div"),
10265
10271
  null,
10266
10272
  namespace,
@@ -10756,7 +10762,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
10756
10762
  simpleSetCurrentInstance(instance);
10757
10763
  }
10758
10764
  };
10759
- const internalOptions = ["ce", "type"];
10765
+ const internalOptions = ["ce", "type", "uid"];
10760
10766
  const useInstanceOption = (key, silent = false) => {
10761
10767
  const instance = getCurrentGenericInstance();
10762
10768
  if (!instance) {
@@ -10776,7 +10782,7 @@ const useInstanceOption = (key, silent = false) => {
10776
10782
  return { hasInstance: true, value: instance[key] };
10777
10783
  };
10778
10784
 
10779
- const emptyAppContext = createAppContext();
10785
+ const emptyAppContext = /* @__PURE__ */ createAppContext();
10780
10786
  let uid = 0;
10781
10787
  function createComponentInstance(vnode, parent, suspense) {
10782
10788
  const type = vnode.type;
@@ -11408,7 +11414,7 @@ function isMemoSame(cached, memo) {
11408
11414
  return true;
11409
11415
  }
11410
11416
 
11411
- const version = "3.6.0-beta.1";
11417
+ const version = "3.6.0-beta.2";
11412
11418
  const warn = warn$1 ;
11413
11419
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11414
11420
  const devtools = devtools$1 ;