@vue/compat 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.cjs.js +14 -9
- package/dist/vue.cjs.prod.js +14 -9
- package/dist/vue.esm-browser.js +14 -9
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +14 -9
- package/dist/vue.global.js +14 -9
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +14 -9
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +14 -9
- package/dist/vue.runtime.global.js +14 -9
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -5071,7 +5071,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5071
5071
|
const Component = instance.type;
|
|
5072
5072
|
// explicit self name has highest priority
|
|
5073
5073
|
if (type === COMPONENTS) {
|
|
5074
|
-
const selfName = getComponentName(Component);
|
|
5074
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
5075
5075
|
if (selfName &&
|
|
5076
5076
|
(selfName === name ||
|
|
5077
5077
|
selfName === camelize(name) ||
|
|
@@ -7179,7 +7179,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
7179
7179
|
return vm;
|
|
7180
7180
|
}
|
|
7181
7181
|
}
|
|
7182
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7182
|
+
Vue.version = `2.6.14-compat:${"3.2.37"}`;
|
|
7183
7183
|
Vue.config = singletonApp.config;
|
|
7184
7184
|
Vue.use = (p, ...options) => {
|
|
7185
7185
|
if (p && isFunction(p.install)) {
|
|
@@ -7840,7 +7840,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7840
7840
|
setupState[ref] = value;
|
|
7841
7841
|
}
|
|
7842
7842
|
}
|
|
7843
|
-
else if (
|
|
7843
|
+
else if (_isRef) {
|
|
7844
7844
|
ref.value = value;
|
|
7845
7845
|
if (rawRef.k)
|
|
7846
7846
|
refs[rawRef.k] = value;
|
|
@@ -7880,11 +7880,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7880
7880
|
`Performing full mount instead.`);
|
|
7881
7881
|
patch(null, vnode, container);
|
|
7882
7882
|
flushPostFlushCbs();
|
|
7883
|
+
container._vnode = vnode;
|
|
7883
7884
|
return;
|
|
7884
7885
|
}
|
|
7885
7886
|
hasMismatch = false;
|
|
7886
7887
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
7887
7888
|
flushPostFlushCbs();
|
|
7889
|
+
container._vnode = vnode;
|
|
7888
7890
|
if (hasMismatch && !false) {
|
|
7889
7891
|
// this error should show up in production
|
|
7890
7892
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -7935,7 +7937,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7935
7937
|
}
|
|
7936
7938
|
break;
|
|
7937
7939
|
case Static:
|
|
7938
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
7940
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
7939
7941
|
nextNode = onMismatch();
|
|
7940
7942
|
}
|
|
7941
7943
|
else {
|
|
@@ -7946,7 +7948,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7946
7948
|
const needToAdoptContent = !vnode.children.length;
|
|
7947
7949
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
7948
7950
|
if (needToAdoptContent)
|
|
7949
|
-
vnode.children +=
|
|
7951
|
+
vnode.children +=
|
|
7952
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
7953
|
+
? nextNode.outerHTML
|
|
7954
|
+
: nextNode.data;
|
|
7950
7955
|
if (i === vnode.staticCount - 1) {
|
|
7951
7956
|
vnode.anchor = nextNode;
|
|
7952
7957
|
}
|
|
@@ -10805,10 +10810,10 @@ function getExposeProxy(instance) {
|
|
|
10805
10810
|
}
|
|
10806
10811
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
10807
10812
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
10808
|
-
function getComponentName(Component) {
|
|
10813
|
+
function getComponentName(Component, includeInferred = true) {
|
|
10809
10814
|
return isFunction(Component)
|
|
10810
10815
|
? Component.displayName || Component.name
|
|
10811
|
-
: Component.name;
|
|
10816
|
+
: Component.name || (includeInferred && Component.__name);
|
|
10812
10817
|
}
|
|
10813
10818
|
/* istanbul ignore next */
|
|
10814
10819
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -11252,7 +11257,7 @@ function isMemoSame(cached, memo) {
|
|
|
11252
11257
|
}
|
|
11253
11258
|
|
|
11254
11259
|
// Core API ------------------------------------------------------------------
|
|
11255
|
-
const version = "3.2.
|
|
11260
|
+
const version = "3.2.37";
|
|
11256
11261
|
const _ssrUtils = {
|
|
11257
11262
|
createComponentInstance,
|
|
11258
11263
|
setupComponent,
|
|
@@ -11262,7 +11267,7 @@ const _ssrUtils = {
|
|
|
11262
11267
|
normalizeVNode
|
|
11263
11268
|
};
|
|
11264
11269
|
/**
|
|
11265
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
11270
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11266
11271
|
* @internal
|
|
11267
11272
|
*/
|
|
11268
11273
|
const ssrUtils = (_ssrUtils );
|
package/dist/vue.global.js
CHANGED
|
@@ -5016,7 +5016,7 @@ var Vue = (function () {
|
|
|
5016
5016
|
const Component = instance.type;
|
|
5017
5017
|
// explicit self name has highest priority
|
|
5018
5018
|
if (type === COMPONENTS) {
|
|
5019
|
-
const selfName = getComponentName(Component);
|
|
5019
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
5020
5020
|
if (selfName &&
|
|
5021
5021
|
(selfName === name ||
|
|
5022
5022
|
selfName === camelize(name) ||
|
|
@@ -7111,7 +7111,7 @@ var Vue = (function () {
|
|
|
7111
7111
|
return vm;
|
|
7112
7112
|
}
|
|
7113
7113
|
}
|
|
7114
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7114
|
+
Vue.version = `2.6.14-compat:${"3.2.37"}`;
|
|
7115
7115
|
Vue.config = singletonApp.config;
|
|
7116
7116
|
Vue.use = (p, ...options) => {
|
|
7117
7117
|
if (p && isFunction(p.install)) {
|
|
@@ -7767,7 +7767,7 @@ var Vue = (function () {
|
|
|
7767
7767
|
setupState[ref] = value;
|
|
7768
7768
|
}
|
|
7769
7769
|
}
|
|
7770
|
-
else if (
|
|
7770
|
+
else if (_isRef) {
|
|
7771
7771
|
ref.value = value;
|
|
7772
7772
|
if (rawRef.k)
|
|
7773
7773
|
refs[rawRef.k] = value;
|
|
@@ -7806,11 +7806,13 @@ var Vue = (function () {
|
|
|
7806
7806
|
`Performing full mount instead.`);
|
|
7807
7807
|
patch(null, vnode, container);
|
|
7808
7808
|
flushPostFlushCbs();
|
|
7809
|
+
container._vnode = vnode;
|
|
7809
7810
|
return;
|
|
7810
7811
|
}
|
|
7811
7812
|
hasMismatch = false;
|
|
7812
7813
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
7813
7814
|
flushPostFlushCbs();
|
|
7815
|
+
container._vnode = vnode;
|
|
7814
7816
|
if (hasMismatch && !false) {
|
|
7815
7817
|
// this error should show up in production
|
|
7816
7818
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -7860,7 +7862,7 @@ var Vue = (function () {
|
|
|
7860
7862
|
}
|
|
7861
7863
|
break;
|
|
7862
7864
|
case Static:
|
|
7863
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
7865
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
7864
7866
|
nextNode = onMismatch();
|
|
7865
7867
|
}
|
|
7866
7868
|
else {
|
|
@@ -7871,7 +7873,10 @@ var Vue = (function () {
|
|
|
7871
7873
|
const needToAdoptContent = !vnode.children.length;
|
|
7872
7874
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
7873
7875
|
if (needToAdoptContent)
|
|
7874
|
-
vnode.children +=
|
|
7876
|
+
vnode.children +=
|
|
7877
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
7878
|
+
? nextNode.outerHTML
|
|
7879
|
+
: nextNode.data;
|
|
7875
7880
|
if (i === vnode.staticCount - 1) {
|
|
7876
7881
|
vnode.anchor = nextNode;
|
|
7877
7882
|
}
|
|
@@ -10655,10 +10660,10 @@ var Vue = (function () {
|
|
|
10655
10660
|
}
|
|
10656
10661
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
10657
10662
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
10658
|
-
function getComponentName(Component) {
|
|
10663
|
+
function getComponentName(Component, includeInferred = true) {
|
|
10659
10664
|
return isFunction(Component)
|
|
10660
10665
|
? Component.displayName || Component.name
|
|
10661
|
-
: Component.name;
|
|
10666
|
+
: Component.name || (includeInferred && Component.__name);
|
|
10662
10667
|
}
|
|
10663
10668
|
/* istanbul ignore next */
|
|
10664
10669
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -11097,9 +11102,9 @@ var Vue = (function () {
|
|
|
11097
11102
|
}
|
|
11098
11103
|
|
|
11099
11104
|
// Core API ------------------------------------------------------------------
|
|
11100
|
-
const version = "3.2.
|
|
11105
|
+
const version = "3.2.37";
|
|
11101
11106
|
/**
|
|
11102
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
11107
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11103
11108
|
* @internal
|
|
11104
11109
|
*/
|
|
11105
11110
|
const ssrUtils = (null);
|