@vue/compiler-sfc 3.5.1 → 3.5.3

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/compiler-sfc v3.5.1
2
+ * @vue/compiler-sfc v3.5.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -20856,7 +20856,7 @@ function isStaticNode(node) {
20856
20856
  return false;
20857
20857
  }
20858
20858
 
20859
- const version = "3.5.1";
20859
+ const version = "3.5.3";
20860
20860
  const parseCache = parseCache$1;
20861
20861
  const errorMessages = {
20862
20862
  ...CompilerDOM.errorMessages,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.5.1
2
+ * @vue/compiler-sfc v3.5.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -17420,7 +17420,7 @@ const tokenizer$2 = new Tokenizer$1(stack, {
17420
17420
  rawName: raw,
17421
17421
  exp: void 0,
17422
17422
  arg: void 0,
17423
- modifiers: raw === "." ? ["prop"] : [],
17423
+ modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
17424
17424
  loc: getLoc(start)
17425
17425
  };
17426
17426
  if (name === "pre") {
@@ -17463,7 +17463,8 @@ const tokenizer$2 = new Tokenizer$1(stack, {
17463
17463
  setLocEnd(arg.loc, end);
17464
17464
  }
17465
17465
  } else {
17466
- currentProp.modifiers.push(mod);
17466
+ const exp = createSimpleExpression(mod, true, getLoc(start, end));
17467
+ currentProp.modifiers.push(exp);
17467
17468
  }
17468
17469
  },
17469
17470
  onattribdata(start, end) {
@@ -23163,7 +23164,7 @@ const transformBind = (dir, _node, context) => {
23163
23164
  } else if (!arg.isStatic) {
23164
23165
  arg.content = `${arg.content} || ""`;
23165
23166
  }
23166
- if (modifiers.includes("camel")) {
23167
+ if (modifiers.some((mod) => mod.content === "camel")) {
23167
23168
  if (arg.type === 4) {
23168
23169
  if (arg.isStatic) {
23169
23170
  arg.content = camelize(arg.content);
@@ -23176,10 +23177,10 @@ const transformBind = (dir, _node, context) => {
23176
23177
  }
23177
23178
  }
23178
23179
  if (!context.inSSR) {
23179
- if (modifiers.includes("prop")) {
23180
+ if (modifiers.some((mod) => mod.content === "prop")) {
23180
23181
  injectPrefix(arg, ".");
23181
23182
  }
23182
- if (modifiers.includes("attr")) {
23183
+ if (modifiers.some((mod) => mod.content === "attr")) {
23183
23184
  injectPrefix(arg, "^");
23184
23185
  }
23185
23186
  }
@@ -24078,7 +24079,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
24078
24079
  }
24079
24080
  continue;
24080
24081
  }
24081
- if (isVBind && modifiers.includes("prop")) {
24082
+ if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
24082
24083
  patchFlag |= 32;
24083
24084
  }
24084
24085
  const directiveTransform = context.directiveTransforms[name];
@@ -24644,7 +24645,7 @@ const transformModel$1 = (dir, node, context) => {
24644
24645
  props[1].value = context.cache(props[1].value);
24645
24646
  }
24646
24647
  if (dir.modifiers.length && node.tagType === 1) {
24647
- const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
24648
+ const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
24648
24649
  const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
24649
24650
  props.push(
24650
24651
  createObjectProperty(
@@ -25072,7 +25073,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
25072
25073
  const nonKeyModifiers = [];
25073
25074
  const eventOptionModifiers = [];
25074
25075
  for (let i = 0; i < modifiers.length; i++) {
25075
- const modifier = modifiers[i];
25076
+ const modifier = modifiers[i].content;
25076
25077
  if (isEventOptionModifier(modifier)) {
25077
25078
  eventOptionModifiers.push(modifier);
25078
25079
  } else {
@@ -48890,7 +48891,7 @@ var __spreadValues = (a, b) => {
48890
48891
  }
48891
48892
  return a;
48892
48893
  };
48893
- const version = "3.5.1";
48894
+ const version = "3.5.3";
48894
48895
  const parseCache = parseCache$1;
48895
48896
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
48896
48897
  const walk = walk$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "@vue/compiler-sfc",
5
5
  "main": "dist/compiler-sfc.cjs.js",
6
6
  "module": "dist/compiler-sfc.esm-browser.js",
@@ -47,10 +47,10 @@
47
47
  "magic-string": "^0.30.11",
48
48
  "postcss": "^8.4.44",
49
49
  "source-map-js": "^1.2.0",
50
- "@vue/compiler-core": "3.5.1",
51
- "@vue/compiler-dom": "3.5.1",
52
- "@vue/compiler-ssr": "3.5.1",
53
- "@vue/shared": "3.5.1"
50
+ "@vue/compiler-core": "3.5.3",
51
+ "@vue/compiler-dom": "3.5.3",
52
+ "@vue/compiler-ssr": "3.5.3",
53
+ "@vue/shared": "3.5.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.25.2",