@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.cjs.js
CHANGED
|
@@ -5186,7 +5186,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5186
5186
|
const Component = instance.type;
|
|
5187
5187
|
// explicit self name has highest priority
|
|
5188
5188
|
if (type === COMPONENTS) {
|
|
5189
|
-
const selfName = getComponentName(Component);
|
|
5189
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
5190
5190
|
if (selfName &&
|
|
5191
5191
|
(selfName === name ||
|
|
5192
5192
|
selfName === camelize(name) ||
|
|
@@ -7281,7 +7281,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
7281
7281
|
return vm;
|
|
7282
7282
|
}
|
|
7283
7283
|
}
|
|
7284
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7284
|
+
Vue.version = `2.6.14-compat:${"3.2.37"}`;
|
|
7285
7285
|
Vue.config = singletonApp.config;
|
|
7286
7286
|
Vue.use = (p, ...options) => {
|
|
7287
7287
|
if (p && isFunction(p.install)) {
|
|
@@ -7937,7 +7937,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7937
7937
|
setupState[ref] = value;
|
|
7938
7938
|
}
|
|
7939
7939
|
}
|
|
7940
|
-
else if (
|
|
7940
|
+
else if (_isRef) {
|
|
7941
7941
|
ref.value = value;
|
|
7942
7942
|
if (rawRef.k)
|
|
7943
7943
|
refs[rawRef.k] = value;
|
|
@@ -7976,11 +7976,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7976
7976
|
`Performing full mount instead.`);
|
|
7977
7977
|
patch(null, vnode, container);
|
|
7978
7978
|
flushPostFlushCbs();
|
|
7979
|
+
container._vnode = vnode;
|
|
7979
7980
|
return;
|
|
7980
7981
|
}
|
|
7981
7982
|
hasMismatch = false;
|
|
7982
7983
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
7983
7984
|
flushPostFlushCbs();
|
|
7985
|
+
container._vnode = vnode;
|
|
7984
7986
|
if (hasMismatch && !false) {
|
|
7985
7987
|
// this error should show up in production
|
|
7986
7988
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -8030,7 +8032,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
8030
8032
|
}
|
|
8031
8033
|
break;
|
|
8032
8034
|
case Static:
|
|
8033
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
8035
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
8034
8036
|
nextNode = onMismatch();
|
|
8035
8037
|
}
|
|
8036
8038
|
else {
|
|
@@ -8041,7 +8043,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
8041
8043
|
const needToAdoptContent = !vnode.children.length;
|
|
8042
8044
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
8043
8045
|
if (needToAdoptContent)
|
|
8044
|
-
vnode.children +=
|
|
8046
|
+
vnode.children +=
|
|
8047
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
8048
|
+
? nextNode.outerHTML
|
|
8049
|
+
: nextNode.data;
|
|
8045
8050
|
if (i === vnode.staticCount - 1) {
|
|
8046
8051
|
vnode.anchor = nextNode;
|
|
8047
8052
|
}
|
|
@@ -10829,10 +10834,10 @@ function getExposeProxy(instance) {
|
|
|
10829
10834
|
}
|
|
10830
10835
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
10831
10836
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
10832
|
-
function getComponentName(Component) {
|
|
10837
|
+
function getComponentName(Component, includeInferred = true) {
|
|
10833
10838
|
return isFunction(Component)
|
|
10834
10839
|
? Component.displayName || Component.name
|
|
10835
|
-
: Component.name;
|
|
10840
|
+
: Component.name || (includeInferred && Component.__name);
|
|
10836
10841
|
}
|
|
10837
10842
|
/* istanbul ignore next */
|
|
10838
10843
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -11276,7 +11281,7 @@ function isMemoSame(cached, memo) {
|
|
|
11276
11281
|
}
|
|
11277
11282
|
|
|
11278
11283
|
// Core API ------------------------------------------------------------------
|
|
11279
|
-
const version = "3.2.
|
|
11284
|
+
const version = "3.2.37";
|
|
11280
11285
|
const _ssrUtils = {
|
|
11281
11286
|
createComponentInstance,
|
|
11282
11287
|
setupComponent,
|
|
@@ -11286,7 +11291,7 @@ const _ssrUtils = {
|
|
|
11286
11291
|
normalizeVNode
|
|
11287
11292
|
};
|
|
11288
11293
|
/**
|
|
11289
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
11294
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11290
11295
|
* @internal
|
|
11291
11296
|
*/
|
|
11292
11297
|
const ssrUtils = (_ssrUtils );
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -4168,7 +4168,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
4168
4168
|
const Component = instance.type;
|
|
4169
4169
|
// explicit self name has highest priority
|
|
4170
4170
|
if (type === COMPONENTS) {
|
|
4171
|
-
const selfName = getComponentName(Component);
|
|
4171
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
4172
4172
|
if (selfName &&
|
|
4173
4173
|
(selfName === name ||
|
|
4174
4174
|
selfName === camelize(name) ||
|
|
@@ -5852,7 +5852,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
5852
5852
|
return vm;
|
|
5853
5853
|
}
|
|
5854
5854
|
}
|
|
5855
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
5855
|
+
Vue.version = `2.6.14-compat:${"3.2.37"}`;
|
|
5856
5856
|
Vue.config = singletonApp.config;
|
|
5857
5857
|
Vue.use = (p, ...options) => {
|
|
5858
5858
|
if (p && isFunction(p.install)) {
|
|
@@ -6405,7 +6405,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
6405
6405
|
setupState[ref] = value;
|
|
6406
6406
|
}
|
|
6407
6407
|
}
|
|
6408
|
-
else if (
|
|
6408
|
+
else if (_isRef) {
|
|
6409
6409
|
ref.value = value;
|
|
6410
6410
|
if (rawRef.k)
|
|
6411
6411
|
refs[rawRef.k] = value;
|
|
@@ -6437,11 +6437,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6437
6437
|
if (!container.hasChildNodes()) {
|
|
6438
6438
|
patch(null, vnode, container);
|
|
6439
6439
|
flushPostFlushCbs();
|
|
6440
|
+
container._vnode = vnode;
|
|
6440
6441
|
return;
|
|
6441
6442
|
}
|
|
6442
6443
|
hasMismatch = false;
|
|
6443
6444
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
6444
6445
|
flushPostFlushCbs();
|
|
6446
|
+
container._vnode = vnode;
|
|
6445
6447
|
if (hasMismatch && !false) {
|
|
6446
6448
|
// this error should show up in production
|
|
6447
6449
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -6488,7 +6490,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6488
6490
|
}
|
|
6489
6491
|
break;
|
|
6490
6492
|
case Static:
|
|
6491
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
6493
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
6492
6494
|
nextNode = onMismatch();
|
|
6493
6495
|
}
|
|
6494
6496
|
else {
|
|
@@ -6499,7 +6501,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6499
6501
|
const needToAdoptContent = !vnode.children.length;
|
|
6500
6502
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
6501
6503
|
if (needToAdoptContent)
|
|
6502
|
-
vnode.children +=
|
|
6504
|
+
vnode.children +=
|
|
6505
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
6506
|
+
? nextNode.outerHTML
|
|
6507
|
+
: nextNode.data;
|
|
6503
6508
|
if (i === vnode.staticCount - 1) {
|
|
6504
6509
|
vnode.anchor = nextNode;
|
|
6505
6510
|
}
|
|
@@ -8909,10 +8914,10 @@ function getExposeProxy(instance) {
|
|
|
8909
8914
|
}
|
|
8910
8915
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
8911
8916
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
8912
|
-
function getComponentName(Component) {
|
|
8917
|
+
function getComponentName(Component, includeInferred = true) {
|
|
8913
8918
|
return isFunction(Component)
|
|
8914
8919
|
? Component.displayName || Component.name
|
|
8915
|
-
: Component.name;
|
|
8920
|
+
: Component.name || (includeInferred && Component.__name);
|
|
8916
8921
|
}
|
|
8917
8922
|
/* istanbul ignore next */
|
|
8918
8923
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -9149,7 +9154,7 @@ function isMemoSame(cached, memo) {
|
|
|
9149
9154
|
}
|
|
9150
9155
|
|
|
9151
9156
|
// Core API ------------------------------------------------------------------
|
|
9152
|
-
const version = "3.2.
|
|
9157
|
+
const version = "3.2.37";
|
|
9153
9158
|
const _ssrUtils = {
|
|
9154
9159
|
createComponentInstance,
|
|
9155
9160
|
setupComponent,
|
|
@@ -9159,7 +9164,7 @@ const _ssrUtils = {
|
|
|
9159
9164
|
normalizeVNode
|
|
9160
9165
|
};
|
|
9161
9166
|
/**
|
|
9162
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
9167
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
9163
9168
|
* @internal
|
|
9164
9169
|
*/
|
|
9165
9170
|
const ssrUtils = (_ssrUtils );
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -5013,7 +5013,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5013
5013
|
const Component = instance.type;
|
|
5014
5014
|
// explicit self name has highest priority
|
|
5015
5015
|
if (type === COMPONENTS) {
|
|
5016
|
-
const selfName = getComponentName(Component);
|
|
5016
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
5017
5017
|
if (selfName &&
|
|
5018
5018
|
(selfName === name ||
|
|
5019
5019
|
selfName === camelize(name) ||
|
|
@@ -7108,7 +7108,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
7108
7108
|
return vm;
|
|
7109
7109
|
}
|
|
7110
7110
|
}
|
|
7111
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7111
|
+
Vue.version = `2.6.14-compat:${"3.2.37"}`;
|
|
7112
7112
|
Vue.config = singletonApp.config;
|
|
7113
7113
|
Vue.use = (p, ...options) => {
|
|
7114
7114
|
if (p && isFunction(p.install)) {
|
|
@@ -7764,7 +7764,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7764
7764
|
setupState[ref] = value;
|
|
7765
7765
|
}
|
|
7766
7766
|
}
|
|
7767
|
-
else if (
|
|
7767
|
+
else if (_isRef) {
|
|
7768
7768
|
ref.value = value;
|
|
7769
7769
|
if (rawRef.k)
|
|
7770
7770
|
refs[rawRef.k] = value;
|
|
@@ -7803,11 +7803,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7803
7803
|
`Performing full mount instead.`);
|
|
7804
7804
|
patch(null, vnode, container);
|
|
7805
7805
|
flushPostFlushCbs();
|
|
7806
|
+
container._vnode = vnode;
|
|
7806
7807
|
return;
|
|
7807
7808
|
}
|
|
7808
7809
|
hasMismatch = false;
|
|
7809
7810
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
7810
7811
|
flushPostFlushCbs();
|
|
7812
|
+
container._vnode = vnode;
|
|
7811
7813
|
if (hasMismatch && !false) {
|
|
7812
7814
|
// this error should show up in production
|
|
7813
7815
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -7857,7 +7859,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7857
7859
|
}
|
|
7858
7860
|
break;
|
|
7859
7861
|
case Static:
|
|
7860
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
7862
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
7861
7863
|
nextNode = onMismatch();
|
|
7862
7864
|
}
|
|
7863
7865
|
else {
|
|
@@ -7868,7 +7870,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7868
7870
|
const needToAdoptContent = !vnode.children.length;
|
|
7869
7871
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
7870
7872
|
if (needToAdoptContent)
|
|
7871
|
-
vnode.children +=
|
|
7873
|
+
vnode.children +=
|
|
7874
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
7875
|
+
? nextNode.outerHTML
|
|
7876
|
+
: nextNode.data;
|
|
7872
7877
|
if (i === vnode.staticCount - 1) {
|
|
7873
7878
|
vnode.anchor = nextNode;
|
|
7874
7879
|
}
|
|
@@ -10652,10 +10657,10 @@ function getExposeProxy(instance) {
|
|
|
10652
10657
|
}
|
|
10653
10658
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
10654
10659
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
10655
|
-
function getComponentName(Component) {
|
|
10660
|
+
function getComponentName(Component, includeInferred = true) {
|
|
10656
10661
|
return isFunction(Component)
|
|
10657
10662
|
? Component.displayName || Component.name
|
|
10658
|
-
: Component.name;
|
|
10663
|
+
: Component.name || (includeInferred && Component.__name);
|
|
10659
10664
|
}
|
|
10660
10665
|
/* istanbul ignore next */
|
|
10661
10666
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -11099,9 +11104,9 @@ function isMemoSame(cached, memo) {
|
|
|
11099
11104
|
}
|
|
11100
11105
|
|
|
11101
11106
|
// Core API ------------------------------------------------------------------
|
|
11102
|
-
const version = "3.2.
|
|
11107
|
+
const version = "3.2.37";
|
|
11103
11108
|
/**
|
|
11104
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
11109
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11105
11110
|
* @internal
|
|
11106
11111
|
*/
|
|
11107
11112
|
const ssrUtils = (null);
|