vue 3.4.37 → 3.4.38
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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +11 -8
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +11 -8
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +2 -2
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +2 -2
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.38
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -9683,7 +9683,7 @@ function isMemoSame(cached, memo) {
|
|
|
9683
9683
|
return true;
|
|
9684
9684
|
}
|
|
9685
9685
|
|
|
9686
|
-
const version = "3.4.
|
|
9686
|
+
const version = "3.4.38";
|
|
9687
9687
|
const warn = warn$1 ;
|
|
9688
9688
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9689
9689
|
const devtools = devtools$1 ;
|
|
@@ -12558,8 +12558,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
12558
12558
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
12559
12559
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
12560
12560
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
12561
|
-
const
|
|
12562
|
-
|
|
12561
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
12562
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
12563
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
12563
12564
|
let state = 0 /* inMemberExp */;
|
|
12564
12565
|
let stateStack = [];
|
|
12565
12566
|
let currentOpenBracketCount = 0;
|
|
@@ -12621,6 +12622,9 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
12621
12622
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
12622
12623
|
};
|
|
12623
12624
|
const isMemberExpression = isMemberExpressionBrowser ;
|
|
12625
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
12626
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
12627
|
+
const isFnExpression = isFnExpressionBrowser ;
|
|
12624
12628
|
function assert(condition, msg) {
|
|
12625
12629
|
if (!condition) {
|
|
12626
12630
|
throw new Error(msg || `unexpected compiler condition`);
|
|
@@ -15920,7 +15924,6 @@ function processSlotOutlet(node, context) {
|
|
|
15920
15924
|
};
|
|
15921
15925
|
}
|
|
15922
15926
|
|
|
15923
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
15924
15927
|
const transformOn$1 = (dir, node, context, augmentor) => {
|
|
15925
15928
|
const { loc, modifiers, arg } = dir;
|
|
15926
15929
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -15964,8 +15967,8 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
15964
15967
|
}
|
|
15965
15968
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
15966
15969
|
if (exp) {
|
|
15967
|
-
const isMemberExp = isMemberExpression(exp
|
|
15968
|
-
const isInlineStatement = !(isMemberExp ||
|
|
15970
|
+
const isMemberExp = isMemberExpression(exp);
|
|
15971
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp));
|
|
15969
15972
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
15970
15973
|
{
|
|
15971
15974
|
validateBrowserExpression(
|
|
@@ -16113,7 +16116,7 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
16113
16116
|
return createTransformProps();
|
|
16114
16117
|
}
|
|
16115
16118
|
const maybeRef = false;
|
|
16116
|
-
if (!expString.trim() || !isMemberExpression(
|
|
16119
|
+
if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
|
|
16117
16120
|
context.onError(
|
|
16118
16121
|
createCompilerError(42, exp.loc)
|
|
16119
16122
|
);
|