@vue/compat 3.4.0-beta.3 → 3.4.0-beta.4
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 +38 -18
- package/dist/vue.cjs.prod.js +33 -15
- package/dist/vue.esm-browser.js +13 -7
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +13 -7
- package/dist/vue.global.js +13 -7
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +13 -7
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +13 -7
- package/dist/vue.runtime.global.js +13 -7
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -2009,8 +2009,10 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2009
2009
|
if (count > RECURSION_LIMIT) {
|
|
2010
2010
|
const instance = fn.ownerInstance;
|
|
2011
2011
|
const componentName = instance && getComponentName(instance.type);
|
|
2012
|
-
|
|
2013
|
-
`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function
|
|
2012
|
+
handleError(
|
|
2013
|
+
`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
2014
|
+
null,
|
|
2015
|
+
10
|
|
2014
2016
|
);
|
|
2015
2017
|
return true;
|
|
2016
2018
|
} else {
|
|
@@ -6555,7 +6557,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6555
6557
|
return vm;
|
|
6556
6558
|
}
|
|
6557
6559
|
}
|
|
6558
|
-
Vue.version = `2.6.14-compat:${"3.4.0-beta.
|
|
6560
|
+
Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
|
|
6559
6561
|
Vue.config = singletonApp.config;
|
|
6560
6562
|
Vue.use = (p, ...options) => {
|
|
6561
6563
|
if (p && isFunction(p.install)) {
|
|
@@ -8283,7 +8285,7 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8283
8285
|
let actual;
|
|
8284
8286
|
let expected;
|
|
8285
8287
|
if (key === "class") {
|
|
8286
|
-
actual = el.
|
|
8288
|
+
actual = el.getAttribute("class");
|
|
8287
8289
|
expected = normalizeClass(clientValue);
|
|
8288
8290
|
if (actual !== expected) {
|
|
8289
8291
|
mismatchType = mismatchKey = `class`;
|
|
@@ -11276,7 +11278,7 @@ function isMemoSame(cached, memo) {
|
|
|
11276
11278
|
return true;
|
|
11277
11279
|
}
|
|
11278
11280
|
|
|
11279
|
-
const version = "3.4.0-beta.
|
|
11281
|
+
const version = "3.4.0-beta.4";
|
|
11280
11282
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11281
11283
|
const _ssrUtils = {
|
|
11282
11284
|
createComponentInstance,
|
|
@@ -12726,7 +12728,9 @@ const modifierGuards = {
|
|
|
12726
12728
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
12727
12729
|
};
|
|
12728
12730
|
const withModifiers = (fn, modifiers) => {
|
|
12729
|
-
|
|
12731
|
+
const cache = fn._withMods || (fn._withMods = {});
|
|
12732
|
+
const cacheKey = modifiers.join(".");
|
|
12733
|
+
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
12730
12734
|
for (let i = 0; i < modifiers.length; i++) {
|
|
12731
12735
|
const guard = modifierGuards[modifiers[i]];
|
|
12732
12736
|
if (guard && guard(event, modifiers))
|
|
@@ -12761,7 +12765,9 @@ const withKeys = (fn, modifiers) => {
|
|
|
12761
12765
|
);
|
|
12762
12766
|
}
|
|
12763
12767
|
}
|
|
12764
|
-
|
|
12768
|
+
const cache = fn._withKeys || (fn._withKeys = {});
|
|
12769
|
+
const cacheKey = modifiers.join(".");
|
|
12770
|
+
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
12765
12771
|
if (!("key" in event)) {
|
|
12766
12772
|
return;
|
|
12767
12773
|
}
|
|
@@ -14370,12 +14376,23 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
14370
14376
|
} else if (node.type === "ObjectProperty" && parent.type === "ObjectPattern") {
|
|
14371
14377
|
node.inPattern = true;
|
|
14372
14378
|
} else if (isFunctionType(node)) {
|
|
14373
|
-
|
|
14379
|
+
if (node.scopeIds) {
|
|
14380
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
14381
|
+
} else {
|
|
14382
|
+
walkFunctionParams(
|
|
14383
|
+
node,
|
|
14384
|
+
(id) => markScopeIdentifier(node, id, knownIds)
|
|
14385
|
+
);
|
|
14386
|
+
}
|
|
14374
14387
|
} else if (node.type === "BlockStatement") {
|
|
14375
|
-
|
|
14376
|
-
node,
|
|
14377
|
-
|
|
14378
|
-
|
|
14388
|
+
if (node.scopeIds) {
|
|
14389
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
14390
|
+
} else {
|
|
14391
|
+
walkBlockDeclarations(
|
|
14392
|
+
node,
|
|
14393
|
+
(id) => markScopeIdentifier(node, id, knownIds)
|
|
14394
|
+
);
|
|
14395
|
+
}
|
|
14379
14396
|
}
|
|
14380
14397
|
},
|
|
14381
14398
|
leave(node, parent) {
|
|
@@ -14494,16 +14511,19 @@ function extractIdentifiers(param, nodes = []) {
|
|
|
14494
14511
|
}
|
|
14495
14512
|
return nodes;
|
|
14496
14513
|
}
|
|
14497
|
-
function
|
|
14498
|
-
const { name } = child;
|
|
14499
|
-
if (node.scopeIds && node.scopeIds.has(name)) {
|
|
14500
|
-
return;
|
|
14501
|
-
}
|
|
14514
|
+
function markKnownIds(name, knownIds) {
|
|
14502
14515
|
if (name in knownIds) {
|
|
14503
14516
|
knownIds[name]++;
|
|
14504
14517
|
} else {
|
|
14505
14518
|
knownIds[name] = 1;
|
|
14506
14519
|
}
|
|
14520
|
+
}
|
|
14521
|
+
function markScopeIdentifier(node, child, knownIds) {
|
|
14522
|
+
const { name } = child;
|
|
14523
|
+
if (node.scopeIds && node.scopeIds.has(name)) {
|
|
14524
|
+
return;
|
|
14525
|
+
}
|
|
14526
|
+
markKnownIds(name, knownIds);
|
|
14507
14527
|
(node.scopeIds || (node.scopeIds = /* @__PURE__ */ new Set())).add(name);
|
|
14508
14528
|
}
|
|
14509
14529
|
const isFunctionType = (node) => {
|
|
@@ -14643,7 +14663,7 @@ const isMemberExpressionNode = (path, context) => {
|
|
|
14643
14663
|
plugins: context.expressionPlugins
|
|
14644
14664
|
});
|
|
14645
14665
|
ret = unwrapTSNode(ret);
|
|
14646
|
-
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier";
|
|
14666
|
+
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier" && ret.name !== "undefined";
|
|
14647
14667
|
} catch (e) {
|
|
14648
14668
|
return false;
|
|
14649
14669
|
}
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -5254,7 +5254,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5254
5254
|
return vm;
|
|
5255
5255
|
}
|
|
5256
5256
|
}
|
|
5257
|
-
Vue.version = `2.6.14-compat:${"3.4.0-beta.
|
|
5257
|
+
Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
|
|
5258
5258
|
Vue.config = singletonApp.config;
|
|
5259
5259
|
Vue.use = (p, ...options) => {
|
|
5260
5260
|
if (p && isFunction(p.install)) {
|
|
@@ -9063,7 +9063,7 @@ function isMemoSame(cached, memo) {
|
|
|
9063
9063
|
return true;
|
|
9064
9064
|
}
|
|
9065
9065
|
|
|
9066
|
-
const version = "3.4.0-beta.
|
|
9066
|
+
const version = "3.4.0-beta.4";
|
|
9067
9067
|
const ErrorTypeStrings = null;
|
|
9068
9068
|
const _ssrUtils = {
|
|
9069
9069
|
createComponentInstance,
|
|
@@ -10464,7 +10464,9 @@ const modifierGuards = {
|
|
|
10464
10464
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
10465
10465
|
};
|
|
10466
10466
|
const withModifiers = (fn, modifiers) => {
|
|
10467
|
-
|
|
10467
|
+
const cache = fn._withMods || (fn._withMods = {});
|
|
10468
|
+
const cacheKey = modifiers.join(".");
|
|
10469
|
+
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
10468
10470
|
for (let i = 0; i < modifiers.length; i++) {
|
|
10469
10471
|
const guard = modifierGuards[modifiers[i]];
|
|
10470
10472
|
if (guard && guard(event, modifiers))
|
|
@@ -10493,7 +10495,9 @@ const withKeys = (fn, modifiers) => {
|
|
|
10493
10495
|
}
|
|
10494
10496
|
}
|
|
10495
10497
|
}
|
|
10496
|
-
|
|
10498
|
+
const cache = fn._withKeys || (fn._withKeys = {});
|
|
10499
|
+
const cacheKey = modifiers.join(".");
|
|
10500
|
+
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
10497
10501
|
if (!("key" in event)) {
|
|
10498
10502
|
return;
|
|
10499
10503
|
}
|
|
@@ -11986,12 +11990,23 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
11986
11990
|
} else if (node.type === "ObjectProperty" && parent.type === "ObjectPattern") {
|
|
11987
11991
|
node.inPattern = true;
|
|
11988
11992
|
} else if (isFunctionType(node)) {
|
|
11989
|
-
|
|
11993
|
+
if (node.scopeIds) {
|
|
11994
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
11995
|
+
} else {
|
|
11996
|
+
walkFunctionParams(
|
|
11997
|
+
node,
|
|
11998
|
+
(id) => markScopeIdentifier(node, id, knownIds)
|
|
11999
|
+
);
|
|
12000
|
+
}
|
|
11990
12001
|
} else if (node.type === "BlockStatement") {
|
|
11991
|
-
|
|
11992
|
-
node,
|
|
11993
|
-
|
|
11994
|
-
|
|
12002
|
+
if (node.scopeIds) {
|
|
12003
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
12004
|
+
} else {
|
|
12005
|
+
walkBlockDeclarations(
|
|
12006
|
+
node,
|
|
12007
|
+
(id) => markScopeIdentifier(node, id, knownIds)
|
|
12008
|
+
);
|
|
12009
|
+
}
|
|
11995
12010
|
}
|
|
11996
12011
|
},
|
|
11997
12012
|
leave(node, parent) {
|
|
@@ -12110,16 +12125,19 @@ function extractIdentifiers(param, nodes = []) {
|
|
|
12110
12125
|
}
|
|
12111
12126
|
return nodes;
|
|
12112
12127
|
}
|
|
12113
|
-
function
|
|
12114
|
-
const { name } = child;
|
|
12115
|
-
if (node.scopeIds && node.scopeIds.has(name)) {
|
|
12116
|
-
return;
|
|
12117
|
-
}
|
|
12128
|
+
function markKnownIds(name, knownIds) {
|
|
12118
12129
|
if (name in knownIds) {
|
|
12119
12130
|
knownIds[name]++;
|
|
12120
12131
|
} else {
|
|
12121
12132
|
knownIds[name] = 1;
|
|
12122
12133
|
}
|
|
12134
|
+
}
|
|
12135
|
+
function markScopeIdentifier(node, child, knownIds) {
|
|
12136
|
+
const { name } = child;
|
|
12137
|
+
if (node.scopeIds && node.scopeIds.has(name)) {
|
|
12138
|
+
return;
|
|
12139
|
+
}
|
|
12140
|
+
markKnownIds(name, knownIds);
|
|
12123
12141
|
(node.scopeIds || (node.scopeIds = /* @__PURE__ */ new Set())).add(name);
|
|
12124
12142
|
}
|
|
12125
12143
|
const isFunctionType = (node) => {
|
|
@@ -12259,7 +12277,7 @@ const isMemberExpressionNode = (path, context) => {
|
|
|
12259
12277
|
plugins: context.expressionPlugins
|
|
12260
12278
|
});
|
|
12261
12279
|
ret = unwrapTSNode(ret);
|
|
12262
|
-
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier";
|
|
12280
|
+
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier" && ret.name !== "undefined";
|
|
12263
12281
|
} catch (e) {
|
|
12264
12282
|
return false;
|
|
12265
12283
|
}
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1958,8 +1958,10 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
1958
1958
|
if (count > RECURSION_LIMIT) {
|
|
1959
1959
|
const instance = fn.ownerInstance;
|
|
1960
1960
|
const componentName = instance && getComponentName(instance.type);
|
|
1961
|
-
|
|
1962
|
-
`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function
|
|
1961
|
+
handleError(
|
|
1962
|
+
`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1963
|
+
null,
|
|
1964
|
+
10
|
|
1963
1965
|
);
|
|
1964
1966
|
return true;
|
|
1965
1967
|
} else {
|
|
@@ -6477,7 +6479,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6477
6479
|
return vm;
|
|
6478
6480
|
}
|
|
6479
6481
|
}
|
|
6480
|
-
Vue.version = `2.6.14-compat:${"3.4.0-beta.
|
|
6482
|
+
Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
|
|
6481
6483
|
Vue.config = singletonApp.config;
|
|
6482
6484
|
Vue.use = (p, ...options) => {
|
|
6483
6485
|
if (p && isFunction(p.install)) {
|
|
@@ -8205,7 +8207,7 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8205
8207
|
let actual;
|
|
8206
8208
|
let expected;
|
|
8207
8209
|
if (key === "class") {
|
|
8208
|
-
actual = el.
|
|
8210
|
+
actual = el.getAttribute("class");
|
|
8209
8211
|
expected = normalizeClass(clientValue);
|
|
8210
8212
|
if (actual !== expected) {
|
|
8211
8213
|
mismatchType = mismatchKey = `class`;
|
|
@@ -11181,7 +11183,7 @@ function isMemoSame(cached, memo) {
|
|
|
11181
11183
|
return true;
|
|
11182
11184
|
}
|
|
11183
11185
|
|
|
11184
|
-
const version = "3.4.0-beta.
|
|
11186
|
+
const version = "3.4.0-beta.4";
|
|
11185
11187
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11186
11188
|
const ssrUtils = null;
|
|
11187
11189
|
const resolveFilter = resolveFilter$1 ;
|
|
@@ -12640,7 +12642,9 @@ const modifierGuards = {
|
|
|
12640
12642
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
12641
12643
|
};
|
|
12642
12644
|
const withModifiers = (fn, modifiers) => {
|
|
12643
|
-
|
|
12645
|
+
const cache = fn._withMods || (fn._withMods = {});
|
|
12646
|
+
const cacheKey = modifiers.join(".");
|
|
12647
|
+
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
12644
12648
|
for (let i = 0; i < modifiers.length; i++) {
|
|
12645
12649
|
const guard = modifierGuards[modifiers[i]];
|
|
12646
12650
|
if (guard && guard(event, modifiers))
|
|
@@ -12675,7 +12679,9 @@ const withKeys = (fn, modifiers) => {
|
|
|
12675
12679
|
);
|
|
12676
12680
|
}
|
|
12677
12681
|
}
|
|
12678
|
-
|
|
12682
|
+
const cache = fn._withKeys || (fn._withKeys = {});
|
|
12683
|
+
const cacheKey = modifiers.join(".");
|
|
12684
|
+
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
12679
12685
|
if (!("key" in event)) {
|
|
12680
12686
|
return;
|
|
12681
12687
|
}
|