@vue/compat 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 +17 -12
- package/dist/vue.cjs.prod.js +17 -11
- package/dist/vue.esm-browser.js +16 -10
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +16 -10
- package/dist/vue.global.js +16 -10
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +16 -10
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +16 -10
- package/dist/vue.runtime.global.js +16 -10
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat 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__ || [];
|
|
@@ -5543,9 +5541,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
5543
5541
|
}
|
|
5544
5542
|
}
|
|
5545
5543
|
|
|
5546
|
-
|
|
5547
|
-
|
|
5544
|
+
let requestIdleCallback;
|
|
5545
|
+
let cancelIdleCallback;
|
|
5546
|
+
function ensureIdleCallbacks() {
|
|
5547
|
+
if (!requestIdleCallback) {
|
|
5548
|
+
const g = getGlobalThis();
|
|
5549
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
5550
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5548
5553
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
5554
|
+
ensureIdleCallbacks();
|
|
5549
5555
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
5550
5556
|
return () => cancelIdleCallback(id);
|
|
5551
5557
|
};
|
|
@@ -7837,7 +7843,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7837
7843
|
return vm;
|
|
7838
7844
|
}
|
|
7839
7845
|
}
|
|
7840
|
-
Vue.version = `2.6.14-compat:${"3.6.0-beta.
|
|
7846
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.2"}`;
|
|
7841
7847
|
Vue.config = singletonApp.config;
|
|
7842
7848
|
Vue.use = (plugin, ...options) => {
|
|
7843
7849
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11967,7 +11973,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
11967
11973
|
parentSuspense,
|
|
11968
11974
|
parentComponent,
|
|
11969
11975
|
node.parentNode,
|
|
11970
|
-
//
|
|
11976
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
11971
11977
|
document.createElement("div"),
|
|
11972
11978
|
null,
|
|
11973
11979
|
namespace,
|
|
@@ -12530,7 +12536,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
12530
12536
|
simpleSetCurrentInstance(instance);
|
|
12531
12537
|
}
|
|
12532
12538
|
};
|
|
12533
|
-
const internalOptions = ["ce", "type"];
|
|
12539
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
12534
12540
|
const useInstanceOption = (key, silent = false) => {
|
|
12535
12541
|
const instance = getCurrentGenericInstance();
|
|
12536
12542
|
if (!instance) {
|
|
@@ -12550,7 +12556,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
12550
12556
|
return { hasInstance: true, value: instance[key] };
|
|
12551
12557
|
};
|
|
12552
12558
|
|
|
12553
|
-
const emptyAppContext = createAppContext();
|
|
12559
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
12554
12560
|
let uid = 0;
|
|
12555
12561
|
function createComponentInstance(vnode, parent, suspense) {
|
|
12556
12562
|
const type = vnode.type;
|
|
@@ -13194,7 +13200,7 @@ function isMemoSame(cached, memo) {
|
|
|
13194
13200
|
return true;
|
|
13195
13201
|
}
|
|
13196
13202
|
|
|
13197
|
-
const version = "3.6.0-beta.
|
|
13203
|
+
const version = "3.6.0-beta.2";
|
|
13198
13204
|
const warn = warn$1 ;
|
|
13199
13205
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13200
13206
|
const devtools = devtools$1 ;
|