@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
package/dist/vue.cjs.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -2504,7 +2504,6 @@ function warn$1(msg, ...args) {
|
|
|
2504
2504
|
instance,
|
|
2505
2505
|
11,
|
|
2506
2506
|
[
|
|
2507
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
2508
2507
|
msg + args.map((a) => {
|
|
2509
2508
|
var _a, _b;
|
|
2510
2509
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -3129,7 +3128,6 @@ function setDevtoolsHook$1(hook, target) {
|
|
|
3129
3128
|
// (#4815)
|
|
3130
3129
|
typeof window !== "undefined" && // some envs mock window but not fully
|
|
3131
3130
|
window.HTMLElement && // also exclude jsdom
|
|
3132
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
3133
3131
|
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
|
3134
3132
|
) {
|
|
3135
3133
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
@@ -5596,9 +5594,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
5596
5594
|
}
|
|
5597
5595
|
}
|
|
5598
5596
|
|
|
5599
|
-
|
|
5600
|
-
|
|
5597
|
+
let requestIdleCallback;
|
|
5598
|
+
let cancelIdleCallback;
|
|
5599
|
+
function ensureIdleCallbacks() {
|
|
5600
|
+
if (!requestIdleCallback) {
|
|
5601
|
+
const g = getGlobalThis();
|
|
5602
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
5603
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
5604
|
+
}
|
|
5605
|
+
}
|
|
5601
5606
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
5607
|
+
ensureIdleCallbacks();
|
|
5602
5608
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
5603
5609
|
return () => cancelIdleCallback(id);
|
|
5604
5610
|
};
|
|
@@ -7887,7 +7893,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7887
7893
|
return vm;
|
|
7888
7894
|
}
|
|
7889
7895
|
}
|
|
7890
|
-
Vue.version = `2.6.14-compat:${"3.6.0-beta.
|
|
7896
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.2"}`;
|
|
7891
7897
|
Vue.config = singletonApp.config;
|
|
7892
7898
|
Vue.use = (plugin, ...options) => {
|
|
7893
7899
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12017,7 +12023,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
12017
12023
|
parentSuspense,
|
|
12018
12024
|
parentComponent,
|
|
12019
12025
|
node.parentNode,
|
|
12020
|
-
//
|
|
12026
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
12021
12027
|
document.createElement("div"),
|
|
12022
12028
|
null,
|
|
12023
12029
|
namespace,
|
|
@@ -12580,7 +12586,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
12580
12586
|
simpleSetCurrentInstance(instance);
|
|
12581
12587
|
}
|
|
12582
12588
|
};
|
|
12583
|
-
const internalOptions = ["ce", "type"];
|
|
12589
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
12584
12590
|
const useInstanceOption = (key, silent = false) => {
|
|
12585
12591
|
const instance = getCurrentGenericInstance();
|
|
12586
12592
|
if (!instance) {
|
|
@@ -12600,7 +12606,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
12600
12606
|
return { hasInstance: true, value: instance[key] };
|
|
12601
12607
|
};
|
|
12602
12608
|
|
|
12603
|
-
const emptyAppContext = createAppContext();
|
|
12609
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
12604
12610
|
let uid = 0;
|
|
12605
12611
|
function createComponentInstance(vnode, parent, suspense) {
|
|
12606
12612
|
const type = vnode.type;
|
|
@@ -13244,7 +13250,7 @@ function isMemoSame(cached, memo) {
|
|
|
13244
13250
|
return true;
|
|
13245
13251
|
}
|
|
13246
13252
|
|
|
13247
|
-
const version = "3.6.0-beta.
|
|
13253
|
+
const version = "3.6.0-beta.2";
|
|
13248
13254
|
const warn = warn$1 ;
|
|
13249
13255
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13250
13256
|
const devtools = devtools$1 ;
|
|
@@ -16821,8 +16827,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
16821
16827
|
if (includeAll || isRefed && !isLocal) {
|
|
16822
16828
|
onIdentifier(node, parent, parentStack, isRefed, isLocal);
|
|
16823
16829
|
}
|
|
16824
|
-
} else if (node.type === "ObjectProperty" &&
|
|
16825
|
-
(parent == null ? void 0 : parent.type) === "ObjectPattern") {
|
|
16830
|
+
} else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
|
|
16826
16831
|
node.inPattern = true;
|
|
16827
16832
|
} else if (isFunctionType(node)) {
|
|
16828
16833
|
if (node.scopeIds) {
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -2217,7 +2217,6 @@ function warn$2(msg, ...args) {
|
|
|
2217
2217
|
instance,
|
|
2218
2218
|
11,
|
|
2219
2219
|
[
|
|
2220
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
2221
2220
|
msg + args.map((a) => {
|
|
2222
2221
|
var _a, _b;
|
|
2223
2222
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -4435,9 +4434,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4435
4434
|
}
|
|
4436
4435
|
}
|
|
4437
4436
|
|
|
4438
|
-
|
|
4439
|
-
|
|
4437
|
+
let requestIdleCallback;
|
|
4438
|
+
let cancelIdleCallback;
|
|
4439
|
+
function ensureIdleCallbacks() {
|
|
4440
|
+
if (!requestIdleCallback) {
|
|
4441
|
+
const g = getGlobalThis();
|
|
4442
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
4443
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4440
4446
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
4447
|
+
ensureIdleCallbacks();
|
|
4441
4448
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
4442
4449
|
return () => cancelIdleCallback(id);
|
|
4443
4450
|
};
|
|
@@ -6424,7 +6431,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6424
6431
|
return vm;
|
|
6425
6432
|
}
|
|
6426
6433
|
}
|
|
6427
|
-
Vue.version = `2.6.14-compat:${"3.6.0-beta.
|
|
6434
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.2"}`;
|
|
6428
6435
|
Vue.config = singletonApp.config;
|
|
6429
6436
|
Vue.use = (plugin, ...options) => {
|
|
6430
6437
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9918,7 +9925,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
9918
9925
|
parentSuspense,
|
|
9919
9926
|
parentComponent,
|
|
9920
9927
|
node.parentNode,
|
|
9921
|
-
//
|
|
9928
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
9922
9929
|
document.createElement("div"),
|
|
9923
9930
|
null,
|
|
9924
9931
|
namespace,
|
|
@@ -10441,7 +10448,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
10441
10448
|
simpleSetCurrentInstance(instance);
|
|
10442
10449
|
}
|
|
10443
10450
|
};
|
|
10444
|
-
const internalOptions = ["ce", "type"];
|
|
10451
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
10445
10452
|
const useInstanceOption = (key, silent = false) => {
|
|
10446
10453
|
const instance = getCurrentGenericInstance();
|
|
10447
10454
|
if (!instance) {
|
|
@@ -10453,7 +10460,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
10453
10460
|
return { hasInstance: true, value: instance[key] };
|
|
10454
10461
|
};
|
|
10455
10462
|
|
|
10456
|
-
const emptyAppContext = createAppContext();
|
|
10463
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
10457
10464
|
let uid = 0;
|
|
10458
10465
|
function createComponentInstance(vnode, parent, suspense) {
|
|
10459
10466
|
const type = vnode.type;
|
|
@@ -10807,7 +10814,7 @@ function isMemoSame(cached, memo) {
|
|
|
10807
10814
|
return true;
|
|
10808
10815
|
}
|
|
10809
10816
|
|
|
10810
|
-
const version = "3.6.0-beta.
|
|
10817
|
+
const version = "3.6.0-beta.2";
|
|
10811
10818
|
const warn$1 = NOOP;
|
|
10812
10819
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10813
10820
|
const devtools = void 0;
|
|
@@ -14160,8 +14167,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
14160
14167
|
if (includeAll || isRefed && !isLocal) {
|
|
14161
14168
|
onIdentifier(node, parent, parentStack, isRefed, isLocal);
|
|
14162
14169
|
}
|
|
14163
|
-
} else if (node.type === "ObjectProperty" &&
|
|
14164
|
-
(parent == null ? void 0 : parent.type) === "ObjectPattern") {
|
|
14170
|
+
} else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
|
|
14165
14171
|
node.inPattern = true;
|
|
14166
14172
|
} else if (isFunctionType(node)) {
|
|
14167
14173
|
if (node.scopeIds) {
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -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 ;
|