@vue/runtime-dom 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/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +71 -62
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +71 -62
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-alpha.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-alpha.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4296,7 +4296,8 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
4296
4296
|
node,
|
|
4297
4297
|
container,
|
|
4298
4298
|
null,
|
|
4299
|
-
parentComponent
|
|
4299
|
+
parentComponent,
|
|
4300
|
+
parentSuspense
|
|
4300
4301
|
);
|
|
4301
4302
|
} else {
|
|
4302
4303
|
mountComponent(
|
|
@@ -7112,29 +7113,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7112
7113
|
}
|
|
7113
7114
|
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
7114
7115
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
7115
|
-
|
|
7116
|
-
const eventAttrs = [];
|
|
7117
|
-
const extraAttrs = [];
|
|
7118
|
-
for (let i = 0, l = allAttrs.length; i < l; i++) {
|
|
7119
|
-
const key = allAttrs[i];
|
|
7120
|
-
if (isOn(key)) {
|
|
7121
|
-
if (!isModelListener(key)) {
|
|
7122
|
-
eventAttrs.push(key[2].toLowerCase() + key.slice(3));
|
|
7123
|
-
}
|
|
7124
|
-
} else {
|
|
7125
|
-
extraAttrs.push(key);
|
|
7126
|
-
}
|
|
7127
|
-
}
|
|
7128
|
-
if (extraAttrs.length) {
|
|
7129
|
-
warn$1(
|
|
7130
|
-
`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.`
|
|
7131
|
-
);
|
|
7132
|
-
}
|
|
7133
|
-
if (eventAttrs.length) {
|
|
7134
|
-
warn$1(
|
|
7135
|
-
`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.`
|
|
7136
|
-
);
|
|
7137
|
-
}
|
|
7116
|
+
warnExtraneousAttributes(attrs);
|
|
7138
7117
|
}
|
|
7139
7118
|
}
|
|
7140
7119
|
}
|
|
@@ -7186,6 +7165,31 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7186
7165
|
};
|
|
7187
7166
|
return [normalizeVNode(childRoot), setRoot];
|
|
7188
7167
|
};
|
|
7168
|
+
function warnExtraneousAttributes(attrs) {
|
|
7169
|
+
const allAttrs = Object.keys(attrs);
|
|
7170
|
+
const eventAttrs = [];
|
|
7171
|
+
const extraAttrs = [];
|
|
7172
|
+
for (let i = 0, l = allAttrs.length; i < l; i++) {
|
|
7173
|
+
const key = allAttrs[i];
|
|
7174
|
+
if (isOn(key)) {
|
|
7175
|
+
if (!isModelListener(key)) {
|
|
7176
|
+
eventAttrs.push(key[2].toLowerCase() + key.slice(3));
|
|
7177
|
+
}
|
|
7178
|
+
} else {
|
|
7179
|
+
extraAttrs.push(key);
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
if (extraAttrs.length) {
|
|
7183
|
+
warn$1(
|
|
7184
|
+
`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.`
|
|
7185
|
+
);
|
|
7186
|
+
}
|
|
7187
|
+
if (eventAttrs.length) {
|
|
7188
|
+
warn$1(
|
|
7189
|
+
`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.`
|
|
7190
|
+
);
|
|
7191
|
+
}
|
|
7192
|
+
}
|
|
7189
7193
|
function filterSingleRoot(children, recurse = true) {
|
|
7190
7194
|
let singleRoot;
|
|
7191
7195
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -8438,7 +8442,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8438
8442
|
n2,
|
|
8439
8443
|
container,
|
|
8440
8444
|
anchor,
|
|
8441
|
-
parentComponent
|
|
8445
|
+
parentComponent,
|
|
8446
|
+
parentSuspense
|
|
8442
8447
|
);
|
|
8443
8448
|
}
|
|
8444
8449
|
} else {
|
|
@@ -8499,7 +8504,42 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8499
8504
|
}
|
|
8500
8505
|
if (isHmrUpdating) initialVNode.el = null;
|
|
8501
8506
|
if (instance.asyncDep) {
|
|
8502
|
-
|
|
8507
|
+
if (parentSuspense) {
|
|
8508
|
+
const hydratedEl = instance.vnode.el;
|
|
8509
|
+
parentSuspense.registerDep(instance, (setupResult) => {
|
|
8510
|
+
const { vnode } = instance;
|
|
8511
|
+
{
|
|
8512
|
+
pushWarningContext(vnode);
|
|
8513
|
+
}
|
|
8514
|
+
handleSetupResult(instance, setupResult, false);
|
|
8515
|
+
if (hydratedEl) {
|
|
8516
|
+
vnode.el = hydratedEl;
|
|
8517
|
+
}
|
|
8518
|
+
const placeholder = !hydratedEl && instance.subTree.el;
|
|
8519
|
+
setupRenderEffect(
|
|
8520
|
+
instance,
|
|
8521
|
+
vnode,
|
|
8522
|
+
// component may have been moved before resolve.
|
|
8523
|
+
// if this is not a hydration, instance.subTree will be the comment
|
|
8524
|
+
// placeholder.
|
|
8525
|
+
hostParentNode(hydratedEl || instance.subTree.el),
|
|
8526
|
+
// anchor will not be used if this is hydration, so only need to
|
|
8527
|
+
// consider the comment placeholder case.
|
|
8528
|
+
hydratedEl ? null : getNextHostNode(instance.subTree),
|
|
8529
|
+
parentSuspense,
|
|
8530
|
+
namespace,
|
|
8531
|
+
optimized
|
|
8532
|
+
);
|
|
8533
|
+
if (placeholder) {
|
|
8534
|
+
vnode.placeholder = null;
|
|
8535
|
+
hostRemove(placeholder);
|
|
8536
|
+
}
|
|
8537
|
+
updateHOCHostEl(instance, vnode.el);
|
|
8538
|
+
{
|
|
8539
|
+
popWarningContext();
|
|
8540
|
+
}
|
|
8541
|
+
});
|
|
8542
|
+
}
|
|
8503
8543
|
if (!initialVNode.el) {
|
|
8504
8544
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
8505
8545
|
processCommentNode(null, placeholder, container, anchor);
|
|
@@ -9828,7 +9868,7 @@ app.use(vaporInteropPlugin)
|
|
|
9828
9868
|
m: move,
|
|
9829
9869
|
um: unmount,
|
|
9830
9870
|
n: next,
|
|
9831
|
-
o: { parentNode
|
|
9871
|
+
o: { parentNode }
|
|
9832
9872
|
} = rendererInternals;
|
|
9833
9873
|
let parentSuspenseId;
|
|
9834
9874
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
@@ -10003,12 +10043,11 @@ app.use(vaporInteropPlugin)
|
|
|
10003
10043
|
next() {
|
|
10004
10044
|
return suspense.activeBranch && next(suspense.activeBranch);
|
|
10005
10045
|
},
|
|
10006
|
-
registerDep(instance,
|
|
10046
|
+
registerDep(instance, onResolve) {
|
|
10007
10047
|
const isInPendingSuspense = !!suspense.pendingBranch;
|
|
10008
10048
|
if (isInPendingSuspense) {
|
|
10009
10049
|
suspense.deps++;
|
|
10010
10050
|
}
|
|
10011
|
-
const hydratedEl = instance.vnode.el;
|
|
10012
10051
|
instance.asyncDep.catch((err) => {
|
|
10013
10052
|
handleError(err, instance, 0);
|
|
10014
10053
|
}).then((asyncSetupResult) => {
|
|
@@ -10016,37 +10055,7 @@ app.use(vaporInteropPlugin)
|
|
|
10016
10055
|
return;
|
|
10017
10056
|
}
|
|
10018
10057
|
instance.asyncResolved = true;
|
|
10019
|
-
|
|
10020
|
-
{
|
|
10021
|
-
pushWarningContext(vnode2);
|
|
10022
|
-
}
|
|
10023
|
-
handleSetupResult(instance, asyncSetupResult, false);
|
|
10024
|
-
if (hydratedEl) {
|
|
10025
|
-
vnode2.el = hydratedEl;
|
|
10026
|
-
}
|
|
10027
|
-
const placeholder = !hydratedEl && instance.subTree.el;
|
|
10028
|
-
setupRenderEffect(
|
|
10029
|
-
instance,
|
|
10030
|
-
vnode2,
|
|
10031
|
-
// component may have been moved before resolve.
|
|
10032
|
-
// if this is not a hydration, instance.subTree will be the comment
|
|
10033
|
-
// placeholder.
|
|
10034
|
-
parentNode(hydratedEl || instance.subTree.el),
|
|
10035
|
-
// anchor will not be used if this is hydration, so only need to
|
|
10036
|
-
// consider the comment placeholder case.
|
|
10037
|
-
hydratedEl ? null : next(instance.subTree),
|
|
10038
|
-
suspense,
|
|
10039
|
-
namespace,
|
|
10040
|
-
optimized2
|
|
10041
|
-
);
|
|
10042
|
-
if (placeholder) {
|
|
10043
|
-
vnode2.placeholder = null;
|
|
10044
|
-
remove(placeholder);
|
|
10045
|
-
}
|
|
10046
|
-
updateHOCHostEl(instance, vnode2.el);
|
|
10047
|
-
{
|
|
10048
|
-
popWarningContext();
|
|
10049
|
-
}
|
|
10058
|
+
onResolve(asyncSetupResult);
|
|
10050
10059
|
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
10051
10060
|
suspense.resolve();
|
|
10052
10061
|
}
|
|
@@ -11214,7 +11223,7 @@ Component that was made reactive: `,
|
|
|
11214
11223
|
return true;
|
|
11215
11224
|
}
|
|
11216
11225
|
|
|
11217
|
-
const version = "3.6.0-alpha.
|
|
11226
|
+
const version = "3.6.0-alpha.6";
|
|
11218
11227
|
const warn = warn$1 ;
|
|
11219
11228
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11220
11229
|
const devtools = devtools$1 ;
|