@vue/compat 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.37
2
+ * @vue/compat v3.4.38
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5265,7 +5265,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5265
5265
  return vm;
5266
5266
  }
5267
5267
  }
5268
- Vue.version = `2.6.14-compat:${"3.4.37"}`;
5268
+ Vue.version = `2.6.14-compat:${"3.4.38"}`;
5269
5269
  Vue.config = singletonApp.config;
5270
5270
  Vue.use = (plugin, ...options) => {
5271
5271
  if (plugin && isFunction(plugin.install)) {
@@ -11552,7 +11552,7 @@ function isMemoSame(cached, memo) {
11552
11552
  return true;
11553
11553
  }
11554
11554
 
11555
- const version = "3.4.37";
11555
+ const version = "3.4.38";
11556
11556
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11557
11557
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11558
11558
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -14711,8 +14711,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
14711
14711
  const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
14712
14712
  const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
14713
14713
  const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
14714
- const isMemberExpressionBrowser = (path) => {
14715
- path = path.trim().replace(whitespaceRE, (s) => s.trim());
14714
+ const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
14715
+ const isMemberExpressionBrowser = (exp) => {
14716
+ const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
14716
14717
  let state = 0 /* inMemberExp */;
14717
14718
  let stateStack = [];
14718
14719
  let currentOpenBracketCount = 0;
@@ -14774,6 +14775,9 @@ const isMemberExpressionBrowser = (path) => {
14774
14775
  return !currentOpenBracketCount && !currentOpenParensCount;
14775
14776
  };
14776
14777
  const isMemberExpression = isMemberExpressionBrowser ;
14778
+ const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
14779
+ const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
14780
+ const isFnExpression = isFnExpressionBrowser ;
14777
14781
  function assert(condition, msg) {
14778
14782
  if (!condition) {
14779
14783
  throw new Error(msg || `unexpected compiler condition`);
@@ -18213,7 +18217,6 @@ function processSlotOutlet(node, context) {
18213
18217
  };
18214
18218
  }
18215
18219
 
18216
- const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
18217
18220
  const transformOn$1 = (dir, node, context, augmentor) => {
18218
18221
  const { loc, modifiers, arg } = dir;
18219
18222
  if (!dir.exp && !modifiers.length) {
@@ -18257,8 +18260,8 @@ const transformOn$1 = (dir, node, context, augmentor) => {
18257
18260
  }
18258
18261
  let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
18259
18262
  if (exp) {
18260
- const isMemberExp = isMemberExpression(exp.content);
18261
- const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
18263
+ const isMemberExp = isMemberExpression(exp);
18264
+ const isInlineStatement = !(isMemberExp || isFnExpression(exp));
18262
18265
  const hasMultipleStatements = exp.content.includes(`;`);
18263
18266
  if (!!(process.env.NODE_ENV !== "production") && true) {
18264
18267
  validateBrowserExpression(
@@ -18406,7 +18409,7 @@ const transformModel$1 = (dir, node, context) => {
18406
18409
  return createTransformProps();
18407
18410
  }
18408
18411
  const maybeRef = false;
18409
- if (!expString.trim() || !isMemberExpression(expString) && !maybeRef) {
18412
+ if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
18410
18413
  context.onError(
18411
18414
  createCompilerError(42, exp.loc)
18412
18415
  );
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.37
2
+ * @vue/compat v3.4.38
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5253,7 +5253,7 @@ If this is a native custom element, make sure to exclude it from component resol
5253
5253
  return vm;
5254
5254
  }
5255
5255
  }
5256
- Vue.version = `2.6.14-compat:${"3.4.37"}`;
5256
+ Vue.version = `2.6.14-compat:${"3.4.38"}`;
5257
5257
  Vue.config = singletonApp.config;
5258
5258
  Vue.use = (plugin, ...options) => {
5259
5259
  if (plugin && isFunction(plugin.install)) {
@@ -11435,7 +11435,7 @@ Component that was made reactive: `,
11435
11435
  return true;
11436
11436
  }
11437
11437
 
11438
- const version = "3.4.37";
11438
+ const version = "3.4.38";
11439
11439
  const warn = warn$1 ;
11440
11440
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11441
11441
  const devtools = devtools$1 ;
@@ -14530,8 +14530,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14530
14530
  const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
14531
14531
  const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
14532
14532
  const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
14533
- const isMemberExpressionBrowser = (path) => {
14534
- path = path.trim().replace(whitespaceRE, (s) => s.trim());
14533
+ const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
14534
+ const isMemberExpressionBrowser = (exp) => {
14535
+ const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
14535
14536
  let state = 0 /* inMemberExp */;
14536
14537
  let stateStack = [];
14537
14538
  let currentOpenBracketCount = 0;
@@ -14593,6 +14594,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14593
14594
  return !currentOpenBracketCount && !currentOpenParensCount;
14594
14595
  };
14595
14596
  const isMemberExpression = isMemberExpressionBrowser ;
14597
+ const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
14598
+ const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
14599
+ const isFnExpression = isFnExpressionBrowser ;
14596
14600
  function assert(condition, msg) {
14597
14601
  if (!condition) {
14598
14602
  throw new Error(msg || `unexpected compiler condition`);
@@ -18029,7 +18033,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18029
18033
  };
18030
18034
  }
18031
18035
 
18032
- const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
18033
18036
  const transformOn$1 = (dir, node, context, augmentor) => {
18034
18037
  const { loc, modifiers, arg } = dir;
18035
18038
  if (!dir.exp && !modifiers.length) {
@@ -18073,8 +18076,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18073
18076
  }
18074
18077
  let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
18075
18078
  if (exp) {
18076
- const isMemberExp = isMemberExpression(exp.content);
18077
- const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
18079
+ const isMemberExp = isMemberExpression(exp);
18080
+ const isInlineStatement = !(isMemberExp || isFnExpression(exp));
18078
18081
  const hasMultipleStatements = exp.content.includes(`;`);
18079
18082
  {
18080
18083
  validateBrowserExpression(
@@ -18222,7 +18225,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18222
18225
  return createTransformProps();
18223
18226
  }
18224
18227
  const maybeRef = false;
18225
- if (!expString.trim() || !isMemberExpression(expString) && !maybeRef) {
18228
+ if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
18226
18229
  context.onError(
18227
18230
  createCompilerError(42, exp.loc)
18228
18231
  );