vue 3.2.36 → 3.2.37
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.esm-browser.js +13 -8
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.global.js +13 -8
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +13 -8
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.global.js +13 -8
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +6 -6
package/dist/vue.global.js
CHANGED
|
@@ -4372,7 +4372,7 @@ var Vue = (function (exports) {
|
|
|
4372
4372
|
const Component = instance.type;
|
|
4373
4373
|
// explicit self name has highest priority
|
|
4374
4374
|
if (type === COMPONENTS) {
|
|
4375
|
-
const selfName = getComponentName(Component);
|
|
4375
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
4376
4376
|
if (selfName &&
|
|
4377
4377
|
(selfName === name ||
|
|
4378
4378
|
selfName === camelize(name) ||
|
|
@@ -6043,7 +6043,7 @@ var Vue = (function (exports) {
|
|
|
6043
6043
|
setupState[ref] = value;
|
|
6044
6044
|
}
|
|
6045
6045
|
}
|
|
6046
|
-
else if (
|
|
6046
|
+
else if (_isRef) {
|
|
6047
6047
|
ref.value = value;
|
|
6048
6048
|
if (rawRef.k)
|
|
6049
6049
|
refs[rawRef.k] = value;
|
|
@@ -6082,11 +6082,13 @@ var Vue = (function (exports) {
|
|
|
6082
6082
|
`Performing full mount instead.`);
|
|
6083
6083
|
patch(null, vnode, container);
|
|
6084
6084
|
flushPostFlushCbs();
|
|
6085
|
+
container._vnode = vnode;
|
|
6085
6086
|
return;
|
|
6086
6087
|
}
|
|
6087
6088
|
hasMismatch = false;
|
|
6088
6089
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
6089
6090
|
flushPostFlushCbs();
|
|
6091
|
+
container._vnode = vnode;
|
|
6090
6092
|
if (hasMismatch && !false) {
|
|
6091
6093
|
// this error should show up in production
|
|
6092
6094
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -6136,7 +6138,7 @@ var Vue = (function (exports) {
|
|
|
6136
6138
|
}
|
|
6137
6139
|
break;
|
|
6138
6140
|
case Static:
|
|
6139
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
6141
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
6140
6142
|
nextNode = onMismatch();
|
|
6141
6143
|
}
|
|
6142
6144
|
else {
|
|
@@ -6147,7 +6149,10 @@ var Vue = (function (exports) {
|
|
|
6147
6149
|
const needToAdoptContent = !vnode.children.length;
|
|
6148
6150
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
6149
6151
|
if (needToAdoptContent)
|
|
6150
|
-
vnode.children +=
|
|
6152
|
+
vnode.children +=
|
|
6153
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
6154
|
+
? nextNode.outerHTML
|
|
6155
|
+
: nextNode.data;
|
|
6151
6156
|
if (i === vnode.staticCount - 1) {
|
|
6152
6157
|
vnode.anchor = nextNode;
|
|
6153
6158
|
}
|
|
@@ -8820,10 +8825,10 @@ var Vue = (function (exports) {
|
|
|
8820
8825
|
}
|
|
8821
8826
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
8822
8827
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
8823
|
-
function getComponentName(Component) {
|
|
8828
|
+
function getComponentName(Component, includeInferred = true) {
|
|
8824
8829
|
return isFunction(Component)
|
|
8825
8830
|
? Component.displayName || Component.name
|
|
8826
|
-
: Component.name;
|
|
8831
|
+
: Component.name || (includeInferred && Component.__name);
|
|
8827
8832
|
}
|
|
8828
8833
|
/* istanbul ignore next */
|
|
8829
8834
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -9262,9 +9267,9 @@ var Vue = (function (exports) {
|
|
|
9262
9267
|
}
|
|
9263
9268
|
|
|
9264
9269
|
// Core API ------------------------------------------------------------------
|
|
9265
|
-
const version = "3.2.
|
|
9270
|
+
const version = "3.2.37";
|
|
9266
9271
|
/**
|
|
9267
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
9272
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
9268
9273
|
* @internal
|
|
9269
9274
|
*/
|
|
9270
9275
|
const ssrUtils = (null);
|