@vue/runtime-core 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/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-core v3.6.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -32,7 +32,6 @@ function warn$1(msg, ...args) {
|
|
|
32
32
|
instance,
|
|
33
33
|
11,
|
|
34
34
|
[
|
|
35
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
36
35
|
msg + args.map((a) => {
|
|
37
36
|
var _a, _b;
|
|
38
37
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -657,7 +656,6 @@ function setDevtoolsHook$1(hook, target) {
|
|
|
657
656
|
// (#4815)
|
|
658
657
|
typeof window !== "undefined" && // some envs mock window but not fully
|
|
659
658
|
window.HTMLElement && // also exclude jsdom
|
|
660
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
661
659
|
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
|
662
660
|
) {
|
|
663
661
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
@@ -2652,9 +2650,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
2652
2650
|
}
|
|
2653
2651
|
}
|
|
2654
2652
|
|
|
2655
|
-
|
|
2656
|
-
|
|
2653
|
+
let requestIdleCallback;
|
|
2654
|
+
let cancelIdleCallback;
|
|
2655
|
+
function ensureIdleCallbacks() {
|
|
2656
|
+
if (!requestIdleCallback) {
|
|
2657
|
+
const g = shared.getGlobalThis();
|
|
2658
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
2659
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2657
2662
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
2663
|
+
ensureIdleCallbacks();
|
|
2658
2664
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
2659
2665
|
return () => cancelIdleCallback(id);
|
|
2660
2666
|
};
|
|
@@ -7838,7 +7844,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
7838
7844
|
parentSuspense,
|
|
7839
7845
|
parentComponent,
|
|
7840
7846
|
node.parentNode,
|
|
7841
|
-
//
|
|
7847
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
7842
7848
|
document.createElement("div"),
|
|
7843
7849
|
null,
|
|
7844
7850
|
namespace,
|
|
@@ -8334,7 +8340,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
8334
8340
|
simpleSetCurrentInstance(instance);
|
|
8335
8341
|
}
|
|
8336
8342
|
};
|
|
8337
|
-
const internalOptions = ["ce", "type"];
|
|
8343
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
8338
8344
|
const useInstanceOption = (key, silent = false) => {
|
|
8339
8345
|
const instance = getCurrentGenericInstance();
|
|
8340
8346
|
if (!instance) {
|
|
@@ -8354,7 +8360,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
8354
8360
|
return { hasInstance: true, value: instance[key] };
|
|
8355
8361
|
};
|
|
8356
8362
|
|
|
8357
|
-
const emptyAppContext = createAppContext();
|
|
8363
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
8358
8364
|
let uid = 0;
|
|
8359
8365
|
function createComponentInstance(vnode, parent, suspense) {
|
|
8360
8366
|
const type = vnode.type;
|
|
@@ -8986,7 +8992,7 @@ function isMemoSame(cached, memo) {
|
|
|
8986
8992
|
return true;
|
|
8987
8993
|
}
|
|
8988
8994
|
|
|
8989
|
-
const version = "3.6.0-beta.
|
|
8995
|
+
const version = "3.6.0-beta.2";
|
|
8990
8996
|
const warn = warn$1 ;
|
|
8991
8997
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8992
8998
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-core v3.6.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -32,7 +32,6 @@ function warn$2(msg, ...args) {
|
|
|
32
32
|
instance,
|
|
33
33
|
11,
|
|
34
34
|
[
|
|
35
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
36
35
|
msg + args.map((a) => {
|
|
37
36
|
var _a, _b;
|
|
38
37
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -2041,9 +2040,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
2041
2040
|
}
|
|
2042
2041
|
}
|
|
2043
2042
|
|
|
2044
|
-
|
|
2045
|
-
|
|
2043
|
+
let requestIdleCallback;
|
|
2044
|
+
let cancelIdleCallback;
|
|
2045
|
+
function ensureIdleCallbacks() {
|
|
2046
|
+
if (!requestIdleCallback) {
|
|
2047
|
+
const g = shared.getGlobalThis();
|
|
2048
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
2049
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2046
2052
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
2053
|
+
ensureIdleCallbacks();
|
|
2047
2054
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
2048
2055
|
return () => cancelIdleCallback(id);
|
|
2049
2056
|
};
|
|
@@ -6381,7 +6388,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
6381
6388
|
parentSuspense,
|
|
6382
6389
|
parentComponent,
|
|
6383
6390
|
node.parentNode,
|
|
6384
|
-
//
|
|
6391
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
6385
6392
|
document.createElement("div"),
|
|
6386
6393
|
null,
|
|
6387
6394
|
namespace,
|
|
@@ -6837,7 +6844,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
6837
6844
|
simpleSetCurrentInstance(instance);
|
|
6838
6845
|
}
|
|
6839
6846
|
};
|
|
6840
|
-
const internalOptions = ["ce", "type"];
|
|
6847
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
6841
6848
|
const useInstanceOption = (key, silent = false) => {
|
|
6842
6849
|
const instance = getCurrentGenericInstance();
|
|
6843
6850
|
if (!instance) {
|
|
@@ -6849,7 +6856,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
6849
6856
|
return { hasInstance: true, value: instance[key] };
|
|
6850
6857
|
};
|
|
6851
6858
|
|
|
6852
|
-
const emptyAppContext = createAppContext();
|
|
6859
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
6853
6860
|
let uid = 0;
|
|
6854
6861
|
function createComponentInstance(vnode, parent, suspense) {
|
|
6855
6862
|
const type = vnode.type;
|
|
@@ -7194,7 +7201,7 @@ function isMemoSame(cached, memo) {
|
|
|
7194
7201
|
return true;
|
|
7195
7202
|
}
|
|
7196
7203
|
|
|
7197
|
-
const version = "3.6.0-beta.
|
|
7204
|
+
const version = "3.6.0-beta.2";
|
|
7198
7205
|
const warn$1 = shared.NOOP;
|
|
7199
7206
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
7200
7207
|
const devtools = void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-core v3.6.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -30,7 +30,6 @@ function warn$1(msg, ...args) {
|
|
|
30
30
|
instance,
|
|
31
31
|
11,
|
|
32
32
|
[
|
|
33
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
34
33
|
msg + args.map((a) => {
|
|
35
34
|
var _a, _b;
|
|
36
35
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -660,7 +659,6 @@ function setDevtoolsHook$1(hook, target) {
|
|
|
660
659
|
// (#4815)
|
|
661
660
|
typeof window !== "undefined" && // some envs mock window but not fully
|
|
662
661
|
window.HTMLElement && // also exclude jsdom
|
|
663
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
664
662
|
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
|
665
663
|
) {
|
|
666
664
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
@@ -2679,9 +2677,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
2679
2677
|
}
|
|
2680
2678
|
}
|
|
2681
2679
|
|
|
2682
|
-
|
|
2683
|
-
|
|
2680
|
+
let requestIdleCallback;
|
|
2681
|
+
let cancelIdleCallback;
|
|
2682
|
+
function ensureIdleCallbacks() {
|
|
2683
|
+
if (!requestIdleCallback) {
|
|
2684
|
+
const g = getGlobalThis();
|
|
2685
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
2686
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2684
2689
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
2690
|
+
ensureIdleCallbacks();
|
|
2685
2691
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
2686
2692
|
return () => cancelIdleCallback(id);
|
|
2687
2693
|
};
|
|
@@ -7913,7 +7919,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
7913
7919
|
parentSuspense,
|
|
7914
7920
|
parentComponent,
|
|
7915
7921
|
node.parentNode,
|
|
7916
|
-
//
|
|
7922
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
7917
7923
|
document.createElement("div"),
|
|
7918
7924
|
null,
|
|
7919
7925
|
namespace,
|
|
@@ -8409,7 +8415,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
8409
8415
|
simpleSetCurrentInstance(instance);
|
|
8410
8416
|
}
|
|
8411
8417
|
};
|
|
8412
|
-
const internalOptions = ["ce", "type"];
|
|
8418
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
8413
8419
|
const useInstanceOption = (key, silent = false) => {
|
|
8414
8420
|
const instance = getCurrentGenericInstance();
|
|
8415
8421
|
if (!instance) {
|
|
@@ -8429,7 +8435,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
8429
8435
|
return { hasInstance: true, value: instance[key] };
|
|
8430
8436
|
};
|
|
8431
8437
|
|
|
8432
|
-
const emptyAppContext = createAppContext();
|
|
8438
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
8433
8439
|
let uid = 0;
|
|
8434
8440
|
function nextUid() {
|
|
8435
8441
|
return uid++;
|
|
@@ -9078,7 +9084,7 @@ function isMemoSame(cached, memo) {
|
|
|
9078
9084
|
return true;
|
|
9079
9085
|
}
|
|
9080
9086
|
|
|
9081
|
-
const version = "3.6.0-beta.
|
|
9087
|
+
const version = "3.6.0-beta.2";
|
|
9082
9088
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
9083
9089
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9084
9090
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.6.0-beta.
|
|
3
|
+
"version": "3.6.0-beta.2",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.6.0-beta.
|
|
50
|
-
"@vue/reactivity": "3.6.0-beta.
|
|
49
|
+
"@vue/shared": "3.6.0-beta.2",
|
|
50
|
+
"@vue/reactivity": "3.6.0-beta.2"
|
|
51
51
|
}
|
|
52
52
|
}
|