@vue/compat 3.6.0-alpha.5 → 3.6.0-alpha.6
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 +75 -64
- package/dist/vue.cjs.prod.js +178 -36
- package/dist/vue.esm-browser.js +75 -64
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +78 -65
- package/dist/vue.global.js +75 -64
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +75 -64
- package/dist/vue.runtime.esm-browser.prod.js +8 -8
- package/dist/vue.runtime.esm-bundler.js +78 -65
- package/dist/vue.runtime.global.js +75 -64
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-alpha.
|
|
2
|
+
* @vue/compat v3.6.0-alpha.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4897,7 +4897,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4897
4897
|
node,
|
|
4898
4898
|
container,
|
|
4899
4899
|
null,
|
|
4900
|
-
parentComponent
|
|
4900
|
+
parentComponent,
|
|
4901
|
+
parentSuspense
|
|
4901
4902
|
);
|
|
4902
4903
|
} else {
|
|
4903
4904
|
mountComponent(
|
|
@@ -7687,7 +7688,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7687
7688
|
return vm;
|
|
7688
7689
|
}
|
|
7689
7690
|
}
|
|
7690
|
-
Vue.version = `2.6.14-compat:${"3.6.0-alpha.
|
|
7691
|
+
Vue.version = `2.6.14-compat:${"3.6.0-alpha.6"}`;
|
|
7691
7692
|
Vue.config = singletonApp.config;
|
|
7692
7693
|
Vue.use = (plugin, ...options) => {
|
|
7693
7694
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8786,29 +8787,7 @@ function renderComponentRoot(instance) {
|
|
|
8786
8787
|
}
|
|
8787
8788
|
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
8788
8789
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
8789
|
-
|
|
8790
|
-
const eventAttrs = [];
|
|
8791
|
-
const extraAttrs = [];
|
|
8792
|
-
for (let i = 0, l = allAttrs.length; i < l; i++) {
|
|
8793
|
-
const key = allAttrs[i];
|
|
8794
|
-
if (isOn(key)) {
|
|
8795
|
-
if (!isModelListener(key)) {
|
|
8796
|
-
eventAttrs.push(key[2].toLowerCase() + key.slice(3));
|
|
8797
|
-
}
|
|
8798
|
-
} else {
|
|
8799
|
-
extraAttrs.push(key);
|
|
8800
|
-
}
|
|
8801
|
-
}
|
|
8802
|
-
if (extraAttrs.length) {
|
|
8803
|
-
warn$1(
|
|
8804
|
-
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
8805
|
-
);
|
|
8806
|
-
}
|
|
8807
|
-
if (eventAttrs.length) {
|
|
8808
|
-
warn$1(
|
|
8809
|
-
`Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
|
|
8810
|
-
);
|
|
8811
|
-
}
|
|
8790
|
+
warnExtraneousAttributes(attrs);
|
|
8812
8791
|
}
|
|
8813
8792
|
}
|
|
8814
8793
|
}
|
|
@@ -8881,6 +8860,31 @@ const getChildRoot = (vnode) => {
|
|
|
8881
8860
|
};
|
|
8882
8861
|
return [normalizeVNode(childRoot), setRoot];
|
|
8883
8862
|
};
|
|
8863
|
+
function warnExtraneousAttributes(attrs) {
|
|
8864
|
+
const allAttrs = Object.keys(attrs);
|
|
8865
|
+
const eventAttrs = [];
|
|
8866
|
+
const extraAttrs = [];
|
|
8867
|
+
for (let i = 0, l = allAttrs.length; i < l; i++) {
|
|
8868
|
+
const key = allAttrs[i];
|
|
8869
|
+
if (isOn(key)) {
|
|
8870
|
+
if (!isModelListener(key)) {
|
|
8871
|
+
eventAttrs.push(key[2].toLowerCase() + key.slice(3));
|
|
8872
|
+
}
|
|
8873
|
+
} else {
|
|
8874
|
+
extraAttrs.push(key);
|
|
8875
|
+
}
|
|
8876
|
+
}
|
|
8877
|
+
if (extraAttrs.length) {
|
|
8878
|
+
warn$1(
|
|
8879
|
+
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
8880
|
+
);
|
|
8881
|
+
}
|
|
8882
|
+
if (eventAttrs.length) {
|
|
8883
|
+
warn$1(
|
|
8884
|
+
`Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
|
|
8885
|
+
);
|
|
8886
|
+
}
|
|
8887
|
+
}
|
|
8884
8888
|
function filterSingleRoot(children, recurse = true) {
|
|
8885
8889
|
let singleRoot;
|
|
8886
8890
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -10205,7 +10209,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10205
10209
|
n2,
|
|
10206
10210
|
container,
|
|
10207
10211
|
anchor,
|
|
10208
|
-
parentComponent
|
|
10212
|
+
parentComponent,
|
|
10213
|
+
parentSuspense
|
|
10209
10214
|
);
|
|
10210
10215
|
}
|
|
10211
10216
|
} else {
|
|
@@ -10267,7 +10272,42 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10267
10272
|
}
|
|
10268
10273
|
if (isHmrUpdating) initialVNode.el = null;
|
|
10269
10274
|
if (instance.asyncDep) {
|
|
10270
|
-
|
|
10275
|
+
if (parentSuspense) {
|
|
10276
|
+
const hydratedEl = instance.vnode.el;
|
|
10277
|
+
parentSuspense.registerDep(instance, (setupResult) => {
|
|
10278
|
+
const { vnode } = instance;
|
|
10279
|
+
{
|
|
10280
|
+
pushWarningContext(vnode);
|
|
10281
|
+
}
|
|
10282
|
+
handleSetupResult(instance, setupResult, false);
|
|
10283
|
+
if (hydratedEl) {
|
|
10284
|
+
vnode.el = hydratedEl;
|
|
10285
|
+
}
|
|
10286
|
+
const placeholder = !hydratedEl && instance.subTree.el;
|
|
10287
|
+
setupRenderEffect(
|
|
10288
|
+
instance,
|
|
10289
|
+
vnode,
|
|
10290
|
+
// component may have been moved before resolve.
|
|
10291
|
+
// if this is not a hydration, instance.subTree will be the comment
|
|
10292
|
+
// placeholder.
|
|
10293
|
+
hostParentNode(hydratedEl || instance.subTree.el),
|
|
10294
|
+
// anchor will not be used if this is hydration, so only need to
|
|
10295
|
+
// consider the comment placeholder case.
|
|
10296
|
+
hydratedEl ? null : getNextHostNode(instance.subTree),
|
|
10297
|
+
parentSuspense,
|
|
10298
|
+
namespace,
|
|
10299
|
+
optimized
|
|
10300
|
+
);
|
|
10301
|
+
if (placeholder) {
|
|
10302
|
+
vnode.placeholder = null;
|
|
10303
|
+
hostRemove(placeholder);
|
|
10304
|
+
}
|
|
10305
|
+
updateHOCHostEl(instance, vnode.el);
|
|
10306
|
+
{
|
|
10307
|
+
popWarningContext();
|
|
10308
|
+
}
|
|
10309
|
+
});
|
|
10310
|
+
}
|
|
10271
10311
|
if (!initialVNode.el) {
|
|
10272
10312
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
10273
10313
|
processCommentNode(null, placeholder, container, anchor);
|
|
@@ -11635,7 +11675,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11635
11675
|
m: move,
|
|
11636
11676
|
um: unmount,
|
|
11637
11677
|
n: next,
|
|
11638
|
-
o: { parentNode
|
|
11678
|
+
o: { parentNode }
|
|
11639
11679
|
} = rendererInternals;
|
|
11640
11680
|
let parentSuspenseId;
|
|
11641
11681
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
@@ -11810,12 +11850,11 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11810
11850
|
next() {
|
|
11811
11851
|
return suspense.activeBranch && next(suspense.activeBranch);
|
|
11812
11852
|
},
|
|
11813
|
-
registerDep(instance,
|
|
11853
|
+
registerDep(instance, onResolve) {
|
|
11814
11854
|
const isInPendingSuspense = !!suspense.pendingBranch;
|
|
11815
11855
|
if (isInPendingSuspense) {
|
|
11816
11856
|
suspense.deps++;
|
|
11817
11857
|
}
|
|
11818
|
-
const hydratedEl = instance.vnode.el;
|
|
11819
11858
|
instance.asyncDep.catch((err) => {
|
|
11820
11859
|
handleError(err, instance, 0);
|
|
11821
11860
|
}).then((asyncSetupResult) => {
|
|
@@ -11823,37 +11862,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11823
11862
|
return;
|
|
11824
11863
|
}
|
|
11825
11864
|
instance.asyncResolved = true;
|
|
11826
|
-
|
|
11827
|
-
{
|
|
11828
|
-
pushWarningContext(vnode2);
|
|
11829
|
-
}
|
|
11830
|
-
handleSetupResult(instance, asyncSetupResult, false);
|
|
11831
|
-
if (hydratedEl) {
|
|
11832
|
-
vnode2.el = hydratedEl;
|
|
11833
|
-
}
|
|
11834
|
-
const placeholder = !hydratedEl && instance.subTree.el;
|
|
11835
|
-
setupRenderEffect(
|
|
11836
|
-
instance,
|
|
11837
|
-
vnode2,
|
|
11838
|
-
// component may have been moved before resolve.
|
|
11839
|
-
// if this is not a hydration, instance.subTree will be the comment
|
|
11840
|
-
// placeholder.
|
|
11841
|
-
parentNode(hydratedEl || instance.subTree.el),
|
|
11842
|
-
// anchor will not be used if this is hydration, so only need to
|
|
11843
|
-
// consider the comment placeholder case.
|
|
11844
|
-
hydratedEl ? null : next(instance.subTree),
|
|
11845
|
-
suspense,
|
|
11846
|
-
namespace,
|
|
11847
|
-
optimized2
|
|
11848
|
-
);
|
|
11849
|
-
if (placeholder) {
|
|
11850
|
-
vnode2.placeholder = null;
|
|
11851
|
-
remove(placeholder);
|
|
11852
|
-
}
|
|
11853
|
-
updateHOCHostEl(instance, vnode2.el);
|
|
11854
|
-
{
|
|
11855
|
-
popWarningContext();
|
|
11856
|
-
}
|
|
11865
|
+
onResolve(asyncSetupResult);
|
|
11857
11866
|
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
11858
11867
|
suspense.resolve();
|
|
11859
11868
|
}
|
|
@@ -13114,7 +13123,7 @@ function isMemoSame(cached, memo) {
|
|
|
13114
13123
|
return true;
|
|
13115
13124
|
}
|
|
13116
13125
|
|
|
13117
|
-
const version = "3.6.0-alpha.
|
|
13126
|
+
const version = "3.6.0-alpha.6";
|
|
13118
13127
|
const warn = warn$1 ;
|
|
13119
13128
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13120
13129
|
const devtools = devtools$1 ;
|
|
@@ -21061,7 +21070,9 @@ const isNonKeyModifier = /* @__PURE__ */ makeMap(
|
|
|
21061
21070
|
`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
|
|
21062
21071
|
);
|
|
21063
21072
|
const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
|
|
21064
|
-
const isKeyboardEvent = /* @__PURE__ */ makeMap(
|
|
21073
|
+
const isKeyboardEvent = /* @__PURE__ */ makeMap(
|
|
21074
|
+
`onkeyup,onkeydown,onkeypress`
|
|
21075
|
+
);
|
|
21065
21076
|
const resolveModifiers = (key, modifiers, context, loc) => {
|
|
21066
21077
|
const keyModifiers = [];
|
|
21067
21078
|
const nonKeyModifiers = [];
|