vue 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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +74 -63
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +74 -63
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime-with-vapor.esm-browser.js +2523 -2384
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +71 -62
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +71 -62
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +7 -7
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-alpha.
|
|
2
|
+
* vue v3.6.0-alpha.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4366,7 +4366,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4366
4366
|
node,
|
|
4367
4367
|
container,
|
|
4368
4368
|
null,
|
|
4369
|
-
parentComponent
|
|
4369
|
+
parentComponent,
|
|
4370
|
+
parentSuspense
|
|
4370
4371
|
);
|
|
4371
4372
|
} else {
|
|
4372
4373
|
mountComponent(
|
|
@@ -7219,29 +7220,7 @@ function renderComponentRoot(instance) {
|
|
|
7219
7220
|
}
|
|
7220
7221
|
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
7221
7222
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
7222
|
-
|
|
7223
|
-
const eventAttrs = [];
|
|
7224
|
-
const extraAttrs = [];
|
|
7225
|
-
for (let i = 0, l = allAttrs.length; i < l; i++) {
|
|
7226
|
-
const key = allAttrs[i];
|
|
7227
|
-
if (isOn(key)) {
|
|
7228
|
-
if (!isModelListener(key)) {
|
|
7229
|
-
eventAttrs.push(key[2].toLowerCase() + key.slice(3));
|
|
7230
|
-
}
|
|
7231
|
-
} else {
|
|
7232
|
-
extraAttrs.push(key);
|
|
7233
|
-
}
|
|
7234
|
-
}
|
|
7235
|
-
if (extraAttrs.length) {
|
|
7236
|
-
warn$1(
|
|
7237
|
-
`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.`
|
|
7238
|
-
);
|
|
7239
|
-
}
|
|
7240
|
-
if (eventAttrs.length) {
|
|
7241
|
-
warn$1(
|
|
7242
|
-
`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.`
|
|
7243
|
-
);
|
|
7244
|
-
}
|
|
7223
|
+
warnExtraneousAttributes(attrs);
|
|
7245
7224
|
}
|
|
7246
7225
|
}
|
|
7247
7226
|
}
|
|
@@ -7293,6 +7272,31 @@ const getChildRoot = (vnode) => {
|
|
|
7293
7272
|
};
|
|
7294
7273
|
return [normalizeVNode(childRoot), setRoot];
|
|
7295
7274
|
};
|
|
7275
|
+
function warnExtraneousAttributes(attrs) {
|
|
7276
|
+
const allAttrs = Object.keys(attrs);
|
|
7277
|
+
const eventAttrs = [];
|
|
7278
|
+
const extraAttrs = [];
|
|
7279
|
+
for (let i = 0, l = allAttrs.length; i < l; i++) {
|
|
7280
|
+
const key = allAttrs[i];
|
|
7281
|
+
if (isOn(key)) {
|
|
7282
|
+
if (!isModelListener(key)) {
|
|
7283
|
+
eventAttrs.push(key[2].toLowerCase() + key.slice(3));
|
|
7284
|
+
}
|
|
7285
|
+
} else {
|
|
7286
|
+
extraAttrs.push(key);
|
|
7287
|
+
}
|
|
7288
|
+
}
|
|
7289
|
+
if (extraAttrs.length) {
|
|
7290
|
+
warn$1(
|
|
7291
|
+
`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.`
|
|
7292
|
+
);
|
|
7293
|
+
}
|
|
7294
|
+
if (eventAttrs.length) {
|
|
7295
|
+
warn$1(
|
|
7296
|
+
`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.`
|
|
7297
|
+
);
|
|
7298
|
+
}
|
|
7299
|
+
}
|
|
7296
7300
|
function filterSingleRoot(children, recurse = true) {
|
|
7297
7301
|
let singleRoot;
|
|
7298
7302
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -8545,7 +8549,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8545
8549
|
n2,
|
|
8546
8550
|
container,
|
|
8547
8551
|
anchor,
|
|
8548
|
-
parentComponent
|
|
8552
|
+
parentComponent,
|
|
8553
|
+
parentSuspense
|
|
8549
8554
|
);
|
|
8550
8555
|
}
|
|
8551
8556
|
} else {
|
|
@@ -8606,7 +8611,42 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8606
8611
|
}
|
|
8607
8612
|
if (isHmrUpdating) initialVNode.el = null;
|
|
8608
8613
|
if (instance.asyncDep) {
|
|
8609
|
-
|
|
8614
|
+
if (parentSuspense) {
|
|
8615
|
+
const hydratedEl = instance.vnode.el;
|
|
8616
|
+
parentSuspense.registerDep(instance, (setupResult) => {
|
|
8617
|
+
const { vnode } = instance;
|
|
8618
|
+
{
|
|
8619
|
+
pushWarningContext(vnode);
|
|
8620
|
+
}
|
|
8621
|
+
handleSetupResult(instance, setupResult, false);
|
|
8622
|
+
if (hydratedEl) {
|
|
8623
|
+
vnode.el = hydratedEl;
|
|
8624
|
+
}
|
|
8625
|
+
const placeholder = !hydratedEl && instance.subTree.el;
|
|
8626
|
+
setupRenderEffect(
|
|
8627
|
+
instance,
|
|
8628
|
+
vnode,
|
|
8629
|
+
// component may have been moved before resolve.
|
|
8630
|
+
// if this is not a hydration, instance.subTree will be the comment
|
|
8631
|
+
// placeholder.
|
|
8632
|
+
hostParentNode(hydratedEl || instance.subTree.el),
|
|
8633
|
+
// anchor will not be used if this is hydration, so only need to
|
|
8634
|
+
// consider the comment placeholder case.
|
|
8635
|
+
hydratedEl ? null : getNextHostNode(instance.subTree),
|
|
8636
|
+
parentSuspense,
|
|
8637
|
+
namespace,
|
|
8638
|
+
optimized
|
|
8639
|
+
);
|
|
8640
|
+
if (placeholder) {
|
|
8641
|
+
vnode.placeholder = null;
|
|
8642
|
+
hostRemove(placeholder);
|
|
8643
|
+
}
|
|
8644
|
+
updateHOCHostEl(instance, vnode.el);
|
|
8645
|
+
{
|
|
8646
|
+
popWarningContext();
|
|
8647
|
+
}
|
|
8648
|
+
});
|
|
8649
|
+
}
|
|
8610
8650
|
if (!initialVNode.el) {
|
|
8611
8651
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
8612
8652
|
processCommentNode(null, placeholder, container, anchor);
|
|
@@ -9935,7 +9975,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9935
9975
|
m: move,
|
|
9936
9976
|
um: unmount,
|
|
9937
9977
|
n: next,
|
|
9938
|
-
o: { parentNode
|
|
9978
|
+
o: { parentNode }
|
|
9939
9979
|
} = rendererInternals;
|
|
9940
9980
|
let parentSuspenseId;
|
|
9941
9981
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
@@ -10110,12 +10150,11 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
10110
10150
|
next() {
|
|
10111
10151
|
return suspense.activeBranch && next(suspense.activeBranch);
|
|
10112
10152
|
},
|
|
10113
|
-
registerDep(instance,
|
|
10153
|
+
registerDep(instance, onResolve) {
|
|
10114
10154
|
const isInPendingSuspense = !!suspense.pendingBranch;
|
|
10115
10155
|
if (isInPendingSuspense) {
|
|
10116
10156
|
suspense.deps++;
|
|
10117
10157
|
}
|
|
10118
|
-
const hydratedEl = instance.vnode.el;
|
|
10119
10158
|
instance.asyncDep.catch((err) => {
|
|
10120
10159
|
handleError(err, instance, 0);
|
|
10121
10160
|
}).then((asyncSetupResult) => {
|
|
@@ -10123,37 +10162,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
10123
10162
|
return;
|
|
10124
10163
|
}
|
|
10125
10164
|
instance.asyncResolved = true;
|
|
10126
|
-
|
|
10127
|
-
{
|
|
10128
|
-
pushWarningContext(vnode2);
|
|
10129
|
-
}
|
|
10130
|
-
handleSetupResult(instance, asyncSetupResult, false);
|
|
10131
|
-
if (hydratedEl) {
|
|
10132
|
-
vnode2.el = hydratedEl;
|
|
10133
|
-
}
|
|
10134
|
-
const placeholder = !hydratedEl && instance.subTree.el;
|
|
10135
|
-
setupRenderEffect(
|
|
10136
|
-
instance,
|
|
10137
|
-
vnode2,
|
|
10138
|
-
// component may have been moved before resolve.
|
|
10139
|
-
// if this is not a hydration, instance.subTree will be the comment
|
|
10140
|
-
// placeholder.
|
|
10141
|
-
parentNode(hydratedEl || instance.subTree.el),
|
|
10142
|
-
// anchor will not be used if this is hydration, so only need to
|
|
10143
|
-
// consider the comment placeholder case.
|
|
10144
|
-
hydratedEl ? null : next(instance.subTree),
|
|
10145
|
-
suspense,
|
|
10146
|
-
namespace,
|
|
10147
|
-
optimized2
|
|
10148
|
-
);
|
|
10149
|
-
if (placeholder) {
|
|
10150
|
-
vnode2.placeholder = null;
|
|
10151
|
-
remove(placeholder);
|
|
10152
|
-
}
|
|
10153
|
-
updateHOCHostEl(instance, vnode2.el);
|
|
10154
|
-
{
|
|
10155
|
-
popWarningContext();
|
|
10156
|
-
}
|
|
10165
|
+
onResolve(asyncSetupResult);
|
|
10157
10166
|
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
10158
10167
|
suspense.resolve();
|
|
10159
10168
|
}
|
|
@@ -11335,7 +11344,7 @@ function isMemoSame(cached, memo) {
|
|
|
11335
11344
|
return true;
|
|
11336
11345
|
}
|
|
11337
11346
|
|
|
11338
|
-
const version = "3.6.0-alpha.
|
|
11347
|
+
const version = "3.6.0-alpha.6";
|
|
11339
11348
|
const warn = warn$1 ;
|
|
11340
11349
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11341
11350
|
const devtools = devtools$1 ;
|
|
@@ -18761,7 +18770,9 @@ const isNonKeyModifier = /* @__PURE__ */ makeMap(
|
|
|
18761
18770
|
`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
|
|
18762
18771
|
);
|
|
18763
18772
|
const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
|
|
18764
|
-
const isKeyboardEvent = /* @__PURE__ */ makeMap(
|
|
18773
|
+
const isKeyboardEvent = /* @__PURE__ */ makeMap(
|
|
18774
|
+
`onkeyup,onkeydown,onkeypress`
|
|
18775
|
+
);
|
|
18765
18776
|
const resolveModifiers = (key, modifiers, context, loc) => {
|
|
18766
18777
|
const keyModifiers = [];
|
|
18767
18778
|
const nonKeyModifiers = [];
|