@vue/compiler-sfc 3.5.0 → 3.5.1

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.0
2
+ * @vue/compiler-sfc v3.5.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -19507,7 +19507,7 @@ function genRuntimeProps(ctx) {
19507
19507
  );
19508
19508
  }
19509
19509
  if (defaults.length) {
19510
- propsDecls = `/*#__PURE__*/${ctx.helper(
19510
+ propsDecls = `/*@__PURE__*/${ctx.helper(
19511
19511
  `mergeDefaults`
19512
19512
  )}(${propsDecls}, {
19513
19513
  ${defaults.join(",\n ")}
@@ -19519,7 +19519,7 @@ function genRuntimeProps(ctx) {
19519
19519
  }
19520
19520
  const modelsDecls = genModelProps(ctx);
19521
19521
  if (propsDecls && modelsDecls) {
19522
- return `/*#__PURE__*/${ctx.helper(
19522
+ return `/*@__PURE__*/${ctx.helper(
19523
19523
  "mergeModels"
19524
19524
  )}(${propsDecls}, ${modelsDecls})`;
19525
19525
  } else {
@@ -19543,7 +19543,7 @@ function extractRuntimeProps(ctx) {
19543
19543
  ${propStrings.join(",\n ")}
19544
19544
  }`;
19545
19545
  if (ctx.propsRuntimeDefaults && !hasStaticDefaults) {
19546
- propsDecls = `/*#__PURE__*/${ctx.helper(
19546
+ propsDecls = `/*@__PURE__*/${ctx.helper(
19547
19547
  "mergeDefaults"
19548
19548
  )}(${propsDecls}, ${ctx.getString(ctx.propsRuntimeDefaults)})`;
19549
19549
  }
@@ -19887,7 +19887,7 @@ function genRuntimeEmits(ctx) {
19887
19887
  }
19888
19888
  if (ctx.hasDefineModelCall) {
19889
19889
  let modelEmitsDecl = `[${Object.keys(ctx.modelDecls).map((n) => JSON.stringify(`update:${n}`)).join(", ")}]`;
19890
- emitsDecl = emitsDecl ? `/*#__PURE__*/${ctx.helper(
19890
+ emitsDecl = emitsDecl ? `/*@__PURE__*/${ctx.helper(
19891
19891
  "mergeModels"
19892
19892
  )}(${emitsDecl}, ${modelEmitsDecl})` : modelEmitsDecl;
19893
19893
  }
@@ -20647,7 +20647,7 @@ return ${returned}
20647
20647
  ctx.s.prependLeft(
20648
20648
  startOffset,
20649
20649
  `
20650
- ${genDefaultAs} /*#__PURE__*/${ctx.helper(
20650
+ ${genDefaultAs} /*@__PURE__*/${ctx.helper(
20651
20651
  `defineComponent`
20652
20652
  )}({${def}${runtimeOptions}
20653
20653
  ${hasAwait ? `async ` : ``}setup(${args}) {
@@ -20659,7 +20659,7 @@ ${exposeCall}`
20659
20659
  ctx.s.prependLeft(
20660
20660
  startOffset,
20661
20661
  `
20662
- ${genDefaultAs} /*#__PURE__*/Object.assign(${defaultExport ? `${normalScriptDefaultVar}, ` : ""}${definedOptions ? `${definedOptions}, ` : ""}{${runtimeOptions}
20662
+ ${genDefaultAs} /*@__PURE__*/Object.assign(${defaultExport ? `${normalScriptDefaultVar}, ` : ""}${definedOptions ? `${definedOptions}, ` : ""}{${runtimeOptions}
20663
20663
  ${hasAwait ? `async ` : ``}setup(${args}) {
20664
20664
  ${exposeCall}`
20665
20665
  );
@@ -20856,7 +20856,7 @@ function isStaticNode(node) {
20856
20856
  return false;
20857
20857
  }
20858
20858
 
20859
- const version = "3.5.0";
20859
+ const version = "3.5.1";
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.0
2
+ * @vue/compiler-sfc v3.5.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -21913,7 +21913,7 @@ var SourceMapGenerator$6 = sourceMap$2.SourceMapGenerator = sourceMapGenerator$1
21913
21913
  var SourceMapConsumer$5 = sourceMap$2.SourceMapConsumer = sourceMapConsumer$1.SourceMapConsumer;
21914
21914
  sourceMap$2.SourceNode = sourceNode$1.SourceNode;
21915
21915
 
21916
- const PURE_ANNOTATION = `/*#__PURE__*/`;
21916
+ const PURE_ANNOTATION = `/*@__PURE__*/`;
21917
21917
  const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
21918
21918
  function createCodegenContext(ast, {
21919
21919
  mode = "function",
@@ -47511,7 +47511,7 @@ function genRuntimeProps(ctx) {
47511
47511
  );
47512
47512
  }
47513
47513
  if (defaults.length) {
47514
- propsDecls = `/*#__PURE__*/${ctx.helper(
47514
+ propsDecls = `/*@__PURE__*/${ctx.helper(
47515
47515
  `mergeDefaults`
47516
47516
  )}(${propsDecls}, {
47517
47517
  ${defaults.join(",\n ")}
@@ -47523,7 +47523,7 @@ function genRuntimeProps(ctx) {
47523
47523
  }
47524
47524
  const modelsDecls = genModelProps(ctx);
47525
47525
  if (propsDecls && modelsDecls) {
47526
- return `/*#__PURE__*/${ctx.helper(
47526
+ return `/*@__PURE__*/${ctx.helper(
47527
47527
  "mergeModels"
47528
47528
  )}(${propsDecls}, ${modelsDecls})`;
47529
47529
  } else {
@@ -47547,7 +47547,7 @@ function extractRuntimeProps(ctx) {
47547
47547
  ${propStrings.join(",\n ")}
47548
47548
  }`;
47549
47549
  if (ctx.propsRuntimeDefaults && !hasStaticDefaults) {
47550
- propsDecls = `/*#__PURE__*/${ctx.helper(
47550
+ propsDecls = `/*@__PURE__*/${ctx.helper(
47551
47551
  "mergeDefaults"
47552
47552
  )}(${propsDecls}, ${ctx.getString(ctx.propsRuntimeDefaults)})`;
47553
47553
  }
@@ -47891,7 +47891,7 @@ function genRuntimeEmits(ctx) {
47891
47891
  }
47892
47892
  if (ctx.hasDefineModelCall) {
47893
47893
  let modelEmitsDecl = `[${Object.keys(ctx.modelDecls).map((n) => JSON.stringify(`update:${n}`)).join(", ")}]`;
47894
- emitsDecl = emitsDecl ? `/*#__PURE__*/${ctx.helper(
47894
+ emitsDecl = emitsDecl ? `/*@__PURE__*/${ctx.helper(
47895
47895
  "mergeModels"
47896
47896
  )}(${emitsDecl}, ${modelEmitsDecl})` : modelEmitsDecl;
47897
47897
  }
@@ -48666,7 +48666,7 @@ return ${returned}
48666
48666
  ctx.s.prependLeft(
48667
48667
  startOffset,
48668
48668
  `
48669
- ${genDefaultAs} /*#__PURE__*/${ctx.helper(
48669
+ ${genDefaultAs} /*@__PURE__*/${ctx.helper(
48670
48670
  `defineComponent`
48671
48671
  )}({${def}${runtimeOptions}
48672
48672
  ${hasAwait ? `async ` : ``}setup(${args}) {
@@ -48678,7 +48678,7 @@ ${exposeCall}`
48678
48678
  ctx.s.prependLeft(
48679
48679
  startOffset,
48680
48680
  `
48681
- ${genDefaultAs} /*#__PURE__*/Object.assign(${defaultExport ? `${normalScriptDefaultVar}, ` : ""}${definedOptions ? `${definedOptions}, ` : ""}{${runtimeOptions}
48681
+ ${genDefaultAs} /*@__PURE__*/Object.assign(${defaultExport ? `${normalScriptDefaultVar}, ` : ""}${definedOptions ? `${definedOptions}, ` : ""}{${runtimeOptions}
48682
48682
  ${hasAwait ? `async ` : ``}setup(${args}) {
48683
48683
  ${exposeCall}`
48684
48684
  );
@@ -48890,7 +48890,7 @@ var __spreadValues = (a, b) => {
48890
48890
  }
48891
48891
  return a;
48892
48892
  };
48893
- const version = "3.5.0";
48893
+ const version = "3.5.1";
48894
48894
  const parseCache = parseCache$1;
48895
48895
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
48896
48896
  const walk = walk$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
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.0",
51
- "@vue/compiler-dom": "3.5.0",
52
- "@vue/shared": "3.5.0",
53
- "@vue/compiler-ssr": "3.5.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"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.25.2",