@vizejs/native 0.431.0 → 0.433.0

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.
Files changed (3) hide show
  1. package/index.d.ts +9 -0
  2. package/index.js +1 -0
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -88,6 +88,8 @@ export interface BatchCompileOptionsNapi {
88
88
  mode?: string;
89
89
  ssr?: boolean;
90
90
  vapor?: boolean;
91
+ /** Extract Nuxt page metadata only when its integration opts in. */
92
+ nuxtPageMeta?: boolean;
91
93
  customRenderer?: boolean;
92
94
  customElements?: Array<string>;
93
95
  templateSyntax?: string;
@@ -493,6 +495,9 @@ export interface DynamicImportAliasRuleNapi {
493
495
  toPrefix: string;
494
496
  }
495
497
 
498
+ /** Existing formatter line-ending modes, validated at the Node boundary. */
499
+ export type EndOfLineNapi = "lf" | "crlf" | "cr" | "auto";
500
+
496
501
  export declare function extractSfcCustomBlocks(
497
502
  source: string,
498
503
  filename?: string | undefined | null,
@@ -543,6 +548,8 @@ export interface FormatOptionsNapi {
543
548
  useTabs?: boolean;
544
549
  semi?: boolean;
545
550
  singleQuote?: boolean;
551
+ /** Layout line endings; auto follows the first source terminator. */
552
+ endOfLine?: EndOfLineNapi;
546
553
  sortAttributes?: boolean;
547
554
  singleAttributePerLine?: boolean;
548
555
  maxAttributesPerLine?: number;
@@ -1245,6 +1252,8 @@ export interface SfcCompileOptionsNapi {
1245
1252
  sourceMap?: boolean;
1246
1253
  ssr?: boolean;
1247
1254
  vapor?: boolean;
1255
+ /** Extract Nuxt page metadata only when its integration opts in. */
1256
+ nuxtPageMeta?: boolean;
1248
1257
  customRenderer?: boolean;
1249
1258
  customElements?: Array<string>;
1250
1259
  templateSyntax?: string;
package/index.js CHANGED
@@ -28,6 +28,7 @@ module.exports.createViteBareImportCandidates = nativeBinding.createViteBareImpo
28
28
  module.exports.createViteVirtualId = nativeBinding.createViteVirtualId;
29
29
  module.exports.detectViteHmrUpdateType = nativeBinding.detectViteHmrUpdateType;
30
30
  module.exports.diffVitePrecompileFiles = nativeBinding.diffVitePrecompileFiles;
31
+ module.exports.EndOfLineNapi = nativeBinding.EndOfLineNapi;
31
32
  module.exports.extractSfcCustomBlocks = nativeBinding.extractSfcCustomBlocks;
32
33
  module.exports.extractSfcSrcInfo = nativeBinding.extractSfcSrcInfo;
33
34
  module.exports.extractSfcStyleBlocks = nativeBinding.extractSfcStyleBlocks;
package/package.json CHANGED
@@ -47,14 +47,14 @@
47
47
  ]
48
48
  },
49
49
  "optionalDependencies": {
50
- "@vizejs/native-darwin-arm64": "0.431.0",
51
- "@vizejs/native-darwin-x64": "0.431.0",
52
- "@vizejs/native-linux-arm64-gnu": "0.431.0",
53
- "@vizejs/native-linux-arm64-musl": "0.431.0",
54
- "@vizejs/native-linux-x64-gnu": "0.431.0",
55
- "@vizejs/native-linux-x64-musl": "0.431.0",
56
- "@vizejs/native-win32-arm64-msvc": "0.431.0",
57
- "@vizejs/native-win32-x64-msvc": "0.431.0"
50
+ "@vizejs/native-darwin-arm64": "0.433.0",
51
+ "@vizejs/native-darwin-x64": "0.433.0",
52
+ "@vizejs/native-linux-arm64-gnu": "0.433.0",
53
+ "@vizejs/native-linux-arm64-musl": "0.433.0",
54
+ "@vizejs/native-linux-x64-gnu": "0.433.0",
55
+ "@vizejs/native-linux-x64-musl": "0.433.0",
56
+ "@vizejs/native-win32-arm64-msvc": "0.433.0",
57
+ "@vizejs/native-win32-x64-msvc": "0.433.0"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
@@ -65,7 +65,7 @@
65
65
  "url": "https://github.com/ubugeeei-prod/vize"
66
66
  },
67
67
  "types": "index.d.ts",
68
- "version": "0.431.0",
68
+ "version": "0.433.0",
69
69
  "scripts": {
70
70
  "build": "node ./scripts/build-local.mjs --release",
71
71
  "build:ci": "napi build --platform --profile ci --manifest-path ../../crates/vize_vitrine/Cargo.toml -p vize_vitrine --features napi,legacy --output-dir . && node ./scripts/sync-entrypoint.mjs",