@vizejs/native 0.272.0 → 0.272.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.
Files changed (3) hide show
  1. package/index.d.ts +111 -86
  2. package/index.js +52 -52
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -65,13 +65,28 @@ export interface BatchCompileOptionsNapi {
65
65
  ssr?: boolean;
66
66
  vapor?: boolean;
67
67
  customRenderer?: boolean;
68
- templateSyntax?: "standard" | "strict" | "quirks";
68
+ templateSyntax?: string;
69
69
  runtimeModuleName?: string;
70
70
  runtimeGlobalName?: string;
71
71
  vueVersion?: string;
72
72
  /** Preserve TypeScript in output when true */
73
73
  isTs?: boolean;
74
74
  threads?: number;
75
+ /**
76
+ * Include per-block style metadata (incl. `styles[].content`). Default OFF.
77
+ *
78
+ * `code`/`css` are always materialized; the per-block `styles` payload
79
+ * re-sends the raw CSS that `css` already carries, so the default boundary
80
+ * omits it to avoid duplicate UTF-8 -> V8 copies. Consumers that need the
81
+ * preprocessor/CSS-modules metadata opt in explicitly.
82
+ */
83
+ includeStyles?: boolean;
84
+ /** Include parsed custom blocks. Default OFF. */
85
+ includeCustomBlocks?: boolean;
86
+ /** Include compile-time macro artifacts. Default OFF. */
87
+ includeMacroArtifacts?: boolean;
88
+ /** Include template/style/script content hashes (for HMR). Default OFF. */
89
+ includeHashes?: boolean;
75
90
  }
76
91
 
77
92
  export interface BatchCompileResultNapi {
@@ -167,6 +182,11 @@ export declare function compileCss(
167
182
  options?: CssCompileOptionsNapi | undefined | null,
168
183
  ): CssCompileResultNapi;
169
184
 
185
+ export declare function compileJsx(
186
+ source: string,
187
+ options?: JsxCompileOptionsNapi | undefined | null,
188
+ ): JsxCompileResultNapi;
189
+
170
190
  /** Compile result */
171
191
  export interface CompileResult {
172
192
  /** Generated code */
@@ -207,8 +227,8 @@ export interface CompilerOptions {
207
227
  isTs?: boolean;
208
228
  /** Whether the template targets a custom renderer instead of the DOM. */
209
229
  customRenderer?: boolean;
210
- /** Template syntax compatibility mode. */
211
- templateSyntax?: "standard" | "strict" | "quirks";
230
+ /** Template syntax compatibility mode: "standard", "strict", or "quirks". */
231
+ templateSyntax?: string;
212
232
  /** Module name for runtime imports. */
213
233
  runtimeModuleName?: string;
214
234
  /** Global variable name for standalone/function mode. */
@@ -220,88 +240,6 @@ export interface CompilerOptions {
220
240
  scriptExt?: string;
221
241
  }
222
242
 
223
- export declare function compileJsx(
224
- source: string,
225
- options?: JsxCompileOptionsNapi | undefined | null,
226
- ): JsxCompileResultNapi;
227
-
228
- /** Options for `compileJsx`. */
229
- export interface JsxCompileOptionsNapi {
230
- /** Source filename, used to infer the language when `lang` is omitted. */
231
- filename?: string;
232
- /**
233
- * Source language: "jsx" or "tsx". Defaults to "jsx" (or is inferred from a
234
- * `.tsx` `filename`).
235
- */
236
- lang?: string;
237
- /**
238
- * Default output mode: "vdom" (default) or "vapor". Mirrors the
239
- * `compiler.jsxMode` config key and takes precedence over `vapor`.
240
- * Per-component "use vue:vapor" / "use vue:vdom" directives override it.
241
- */
242
- jsxMode?: string;
243
- /**
244
- * Legacy default-mode toggle: `true` compiles components to Vapor, `false`
245
- * (default) to VDOM. Kept for back-compat; prefer `jsxMode`. Ignored when
246
- * `jsxMode` is set.
247
- */
248
- vapor?: boolean;
249
- /**
250
- * Emit a v3 source map for the generated render code. When `true`, the
251
- * result's `map` carries the map JSON; when `false` (default), `map` is
252
- * `null` and no mapping work is done (#1533).
253
- */
254
- sourceMap?: boolean;
255
- }
256
-
257
- /** Result of `compileJsx`. */
258
- export interface JsxCompileResultNapi {
259
- /**
260
- * Generated render code for the module: the deduplicated runtime-helper
261
- * preamble (`import { … } from "vue"`) followed by every component's render
262
- * code in source order. A self-contained module string, matching the shape
263
- * `compileSfc` returns (the runtime-helper imports are no longer dropped,
264
- * #1533).
265
- */
266
- code: string;
267
- /**
268
- * v3 source map (JSON) for `code`, present only when `sourceMap` was
269
- * requested and the module is a single component (the per-file shape the
270
- * bundler plugins consume). `null` otherwise (#1533).
271
- */
272
- map?: string;
273
- /** Error-severity diagnostic messages. */
274
- errors: Array<string>;
275
- /** Warning-severity diagnostic messages. */
276
- warnings: Array<string>;
277
- /**
278
- * Extracted `<style scoped>` blocks across the module's components, in
279
- * source order (#1495). Empty when no component had a `<style scoped>`. Each
280
- * entry's CSS is already scope-rewritten; the bundler plugins emit it
281
- * through the same path SFC styles use (#1533).
282
- */
283
- scopedStyles: Array<JsxScopedStyleNapi>;
284
- }
285
-
286
- /**
287
- * A JSX component's extracted `<style scoped>` block, surfaced to the bundler
288
- * plugins so a `.jsx`/`.tsx` component's scoped CSS reaches the same emission
289
- * path as SFC `<style>` blocks (#1495, #1533).
290
- */
291
- export interface JsxScopedStyleNapi {
292
- /**
293
- * The generated scope id, e.g. `data-v-1a2b3c4d`. Already injected into the
294
- * component's rendered elements; surfaced here so the bundler can name the
295
- * emitted stylesheet deterministically.
296
- */
297
- scopeId: string;
298
- /**
299
- * The scoped-rewritten CSS, with the `data-v-<hash>` attribute already
300
- * applied to selectors. A bundler emits this verbatim.
301
- */
302
- css: string;
303
- }
304
-
305
243
  export declare function compileSfc(
306
244
  source: string,
307
245
  options?: SfcCompileOptionsNapi | undefined | null,
@@ -596,6 +534,85 @@ export declare function isSfcImportableAssetUrl(url: string): boolean;
596
534
 
597
535
  export declare function isViteBareSpecifier(id: string): boolean;
598
536
 
537
+ /** Options for [`compile_jsx`]. */
538
+ export interface JsxCompileOptionsNapi {
539
+ /** Source filename, used to infer the language when `lang` is omitted. */
540
+ filename?: string;
541
+ /**
542
+ * Source language: `"jsx"` or `"tsx"`. Defaults to `"jsx"` (or is inferred
543
+ * from a `.tsx` `filename`).
544
+ */
545
+ lang?: string;
546
+ /**
547
+ * Default output mode: `"vdom"` (default) or `"vapor"`. Mirrors the
548
+ * `compiler.jsxMode` config key and takes precedence over `vapor`.
549
+ * Per-component `"use vue:vapor"` / `"use vue:vdom"` directives override it.
550
+ */
551
+ jsxMode?: string;
552
+ /**
553
+ * Legacy default-mode toggle: `true` compiles components to Vapor, `false`
554
+ * (default) to VDOM. Kept for back-compat; prefer `jsxMode`. Ignored when
555
+ * `jsxMode` is set.
556
+ */
557
+ vapor?: boolean;
558
+ /**
559
+ * Emit a v3 source map for the generated render code. When `true`, the
560
+ * result's `map` carries the map JSON; when `false` (default), `map` is
561
+ * `null` and no mapping work is done (#1533).
562
+ */
563
+ sourceMap?: boolean;
564
+ /** Emit SSR render code instead of client render code. */
565
+ ssr?: boolean;
566
+ }
567
+
568
+ /** Result of [`compile_jsx`]. */
569
+ export interface JsxCompileResultNapi {
570
+ /**
571
+ * Generated render code for the module: the deduplicated runtime-helper
572
+ * preamble (`import { … } from "vue"`) followed by every component's render
573
+ * code in source order. This is a self-contained module string, matching
574
+ * the shape `compileSfc` returns, so a bundler can emit it directly
575
+ * (the runtime-helper imports are no longer dropped, #1533).
576
+ */
577
+ code: string;
578
+ /**
579
+ * v3 source map (JSON) for `code`, present only when `sourceMap` was
580
+ * requested and the module is a single component (the per-file shape the
581
+ * bundler plugins consume). `null` otherwise (#1533).
582
+ */
583
+ map?: string;
584
+ /** Error-severity diagnostic messages. */
585
+ errors: Array<string>;
586
+ /** Warning-severity diagnostic messages. */
587
+ warnings: Array<string>;
588
+ /**
589
+ * Extracted `<style scoped>` blocks across the module's components, in
590
+ * source order (#1495). Empty when no component had a `<style scoped>`. Each
591
+ * entry's CSS is already scope-rewritten; the bundler plugins emit it
592
+ * through the same path SFC styles use (#1533).
593
+ */
594
+ scopedStyles: Array<JsxScopedStyleNapi>;
595
+ }
596
+
597
+ /**
598
+ * A JSX component's extracted `<style scoped>` block, surfaced to the bundler
599
+ * plugins so a `.jsx`/`.tsx` component's scoped CSS reaches the same emission
600
+ * path as SFC `<style>` blocks (#1495, #1533).
601
+ */
602
+ export interface JsxScopedStyleNapi {
603
+ /**
604
+ * The generated scope id, e.g. `data-v-1a2b3c4d`. Already injected into the
605
+ * component's rendered elements; surfaced here so the bundler can name the
606
+ * emitted stylesheet deterministically.
607
+ */
608
+ scopeId: string;
609
+ /**
610
+ * The scoped-rewritten CSS, with the `data-v-<hash>` attribute already
611
+ * applied to selectors. A bundler emits this verbatim.
612
+ */
613
+ css: string;
614
+ }
615
+
599
616
  /** Lint Vue SFC files matching patterns (native multithreading, .gitignore-aware) */
600
617
  export declare function lint(
601
618
  patterns: Array<string>,
@@ -612,9 +629,13 @@ export interface LintOptionsNapi {
612
629
  quiet?: boolean;
613
630
  /** Automatically fix problems when diagnostics provide safe text edits */
614
631
  fix?: boolean;
632
+ /** Help display level: "full", "short", "none" */
615
633
  helpLevel?: string;
634
+ /** Lint preset: "general-recommended", "essential", "incremental", "ecosystem", "opinionated", or "nuxt" */
616
635
  preset?: string;
636
+ /** Enable native type-aware lint rules */
617
637
  typeAware?: boolean;
638
+ /** Path to the Corsa executable used by type-aware lint rules */
618
639
  corsaPath?: string;
619
640
  }
620
641
 
@@ -725,11 +746,15 @@ export interface PatinaLintOptionsNapi {
725
746
  filename?: string;
726
747
  /** Locale code: "en", "ja", or "zh" */
727
748
  locale?: string;
749
+ /** Help display level: "full", "short", or "none" */
728
750
  helpLevel?: string;
751
+ /** Lint preset: "general-recommended", "essential", "incremental", "ecosystem", "opinionated", or "nuxt" */
729
752
  preset?: string;
730
753
  /** Optional list of Patina rule names to enable */
731
754
  enabledRules?: Array<string>;
755
+ /** Enable native type-aware lint rules */
732
756
  typeAware?: boolean;
757
+ /** Path to the Corsa executable used by type-aware lint rules */
733
758
  corsaPath?: string;
734
759
  }
735
760
 
@@ -833,7 +858,7 @@ export interface SfcCompileOptionsNapi {
833
858
  ssr?: boolean;
834
859
  vapor?: boolean;
835
860
  customRenderer?: boolean;
836
- templateSyntax?: "standard" | "strict" | "quirks";
861
+ templateSyntax?: string;
837
862
  runtimeModuleName?: string;
838
863
  runtimeGlobalName?: string;
839
864
  vueVersion?: string;
package/index.js CHANGED
@@ -80,12 +80,12 @@ function requireNative() {
80
80
  const binding = require("@vizejs/native-android-arm64");
81
81
  const bindingPackageVersion = require("@vizejs/native-android-arm64/package.json").version;
82
82
  if (
83
- bindingPackageVersion !== "0.174.0" &&
83
+ bindingPackageVersion !== "0.272.0" &&
84
84
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
85
85
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
86
86
  ) {
87
87
  throw new Error(
88
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
88
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
89
89
  );
90
90
  }
91
91
  return binding;
@@ -103,12 +103,12 @@ function requireNative() {
103
103
  const bindingPackageVersion =
104
104
  require("@vizejs/native-android-arm-eabi/package.json").version;
105
105
  if (
106
- bindingPackageVersion !== "0.174.0" &&
106
+ bindingPackageVersion !== "0.272.0" &&
107
107
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
108
108
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
109
109
  ) {
110
110
  throw new Error(
111
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
111
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
112
112
  );
113
113
  }
114
114
  return binding;
@@ -134,12 +134,12 @@ function requireNative() {
134
134
  const bindingPackageVersion =
135
135
  require("@vizejs/native-win32-x64-gnu/package.json").version;
136
136
  if (
137
- bindingPackageVersion !== "0.174.0" &&
137
+ bindingPackageVersion !== "0.272.0" &&
138
138
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
139
139
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
140
140
  ) {
141
141
  throw new Error(
142
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
142
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
143
143
  );
144
144
  }
145
145
  return binding;
@@ -157,12 +157,12 @@ function requireNative() {
157
157
  const bindingPackageVersion =
158
158
  require("@vizejs/native-win32-x64-msvc/package.json").version;
159
159
  if (
160
- bindingPackageVersion !== "0.174.0" &&
160
+ bindingPackageVersion !== "0.272.0" &&
161
161
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
162
162
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
163
163
  ) {
164
164
  throw new Error(
165
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
165
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
166
166
  );
167
167
  }
168
168
  return binding;
@@ -181,12 +181,12 @@ function requireNative() {
181
181
  const bindingPackageVersion =
182
182
  require("@vizejs/native-win32-ia32-msvc/package.json").version;
183
183
  if (
184
- bindingPackageVersion !== "0.174.0" &&
184
+ bindingPackageVersion !== "0.272.0" &&
185
185
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
186
186
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
187
187
  ) {
188
188
  throw new Error(
189
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
189
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
190
190
  );
191
191
  }
192
192
  return binding;
@@ -204,12 +204,12 @@ function requireNative() {
204
204
  const bindingPackageVersion =
205
205
  require("@vizejs/native-win32-arm64-msvc/package.json").version;
206
206
  if (
207
- bindingPackageVersion !== "0.174.0" &&
207
+ bindingPackageVersion !== "0.272.0" &&
208
208
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
209
209
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
210
210
  ) {
211
211
  throw new Error(
212
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
212
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
213
213
  );
214
214
  }
215
215
  return binding;
@@ -229,12 +229,12 @@ function requireNative() {
229
229
  const binding = require("@vizejs/native-darwin-universal");
230
230
  const bindingPackageVersion = require("@vizejs/native-darwin-universal/package.json").version;
231
231
  if (
232
- bindingPackageVersion !== "0.174.0" &&
232
+ bindingPackageVersion !== "0.272.0" &&
233
233
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
234
234
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
235
235
  ) {
236
236
  throw new Error(
237
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
237
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
238
238
  );
239
239
  }
240
240
  return binding;
@@ -251,12 +251,12 @@ function requireNative() {
251
251
  const binding = require("@vizejs/native-darwin-x64");
252
252
  const bindingPackageVersion = require("@vizejs/native-darwin-x64/package.json").version;
253
253
  if (
254
- bindingPackageVersion !== "0.174.0" &&
254
+ bindingPackageVersion !== "0.272.0" &&
255
255
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
256
256
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
257
257
  ) {
258
258
  throw new Error(
259
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
259
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
260
260
  );
261
261
  }
262
262
  return binding;
@@ -273,12 +273,12 @@ function requireNative() {
273
273
  const binding = require("@vizejs/native-darwin-arm64");
274
274
  const bindingPackageVersion = require("@vizejs/native-darwin-arm64/package.json").version;
275
275
  if (
276
- bindingPackageVersion !== "0.174.0" &&
276
+ bindingPackageVersion !== "0.272.0" &&
277
277
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
278
278
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
279
279
  ) {
280
280
  throw new Error(
281
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
281
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
282
282
  );
283
283
  }
284
284
  return binding;
@@ -299,12 +299,12 @@ function requireNative() {
299
299
  const binding = require("@vizejs/native-freebsd-x64");
300
300
  const bindingPackageVersion = require("@vizejs/native-freebsd-x64/package.json").version;
301
301
  if (
302
- bindingPackageVersion !== "0.174.0" &&
302
+ bindingPackageVersion !== "0.272.0" &&
303
303
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
304
304
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
305
305
  ) {
306
306
  throw new Error(
307
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
307
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
308
308
  );
309
309
  }
310
310
  return binding;
@@ -321,12 +321,12 @@ function requireNative() {
321
321
  const binding = require("@vizejs/native-freebsd-arm64");
322
322
  const bindingPackageVersion = require("@vizejs/native-freebsd-arm64/package.json").version;
323
323
  if (
324
- bindingPackageVersion !== "0.174.0" &&
324
+ bindingPackageVersion !== "0.272.0" &&
325
325
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
326
326
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
327
327
  ) {
328
328
  throw new Error(
329
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
330
330
  );
331
331
  }
332
332
  return binding;
@@ -349,12 +349,12 @@ function requireNative() {
349
349
  const bindingPackageVersion =
350
350
  require("@vizejs/native-linux-x64-musl/package.json").version;
351
351
  if (
352
- bindingPackageVersion !== "0.174.0" &&
352
+ bindingPackageVersion !== "0.272.0" &&
353
353
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
354
354
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
355
355
  ) {
356
356
  throw new Error(
357
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
357
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
358
358
  );
359
359
  }
360
360
  return binding;
@@ -372,12 +372,12 @@ function requireNative() {
372
372
  const bindingPackageVersion =
373
373
  require("@vizejs/native-linux-x64-gnu/package.json").version;
374
374
  if (
375
- bindingPackageVersion !== "0.174.0" &&
375
+ bindingPackageVersion !== "0.272.0" &&
376
376
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
377
377
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
378
378
  ) {
379
379
  throw new Error(
380
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
381
381
  );
382
382
  }
383
383
  return binding;
@@ -397,12 +397,12 @@ function requireNative() {
397
397
  const bindingPackageVersion =
398
398
  require("@vizejs/native-linux-arm64-musl/package.json").version;
399
399
  if (
400
- bindingPackageVersion !== "0.174.0" &&
400
+ bindingPackageVersion !== "0.272.0" &&
401
401
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
402
402
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
403
403
  ) {
404
404
  throw new Error(
405
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
405
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
406
406
  );
407
407
  }
408
408
  return binding;
@@ -420,12 +420,12 @@ function requireNative() {
420
420
  const bindingPackageVersion =
421
421
  require("@vizejs/native-linux-arm64-gnu/package.json").version;
422
422
  if (
423
- bindingPackageVersion !== "0.174.0" &&
423
+ bindingPackageVersion !== "0.272.0" &&
424
424
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
425
425
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
426
426
  ) {
427
427
  throw new Error(
428
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
429
429
  );
430
430
  }
431
431
  return binding;
@@ -445,12 +445,12 @@ function requireNative() {
445
445
  const bindingPackageVersion =
446
446
  require("@vizejs/native-linux-arm-musleabihf/package.json").version;
447
447
  if (
448
- bindingPackageVersion !== "0.174.0" &&
448
+ bindingPackageVersion !== "0.272.0" &&
449
449
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
450
450
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
451
451
  ) {
452
452
  throw new Error(
453
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
453
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
454
454
  );
455
455
  }
456
456
  return binding;
@@ -468,12 +468,12 @@ function requireNative() {
468
468
  const bindingPackageVersion =
469
469
  require("@vizejs/native-linux-arm-gnueabihf/package.json").version;
470
470
  if (
471
- bindingPackageVersion !== "0.174.0" &&
471
+ bindingPackageVersion !== "0.272.0" &&
472
472
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
473
473
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
474
474
  ) {
475
475
  throw new Error(
476
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
477
477
  );
478
478
  }
479
479
  return binding;
@@ -493,12 +493,12 @@ function requireNative() {
493
493
  const bindingPackageVersion =
494
494
  require("@vizejs/native-linux-loong64-musl/package.json").version;
495
495
  if (
496
- bindingPackageVersion !== "0.174.0" &&
496
+ bindingPackageVersion !== "0.272.0" &&
497
497
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
498
498
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
499
499
  ) {
500
500
  throw new Error(
501
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
501
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
502
502
  );
503
503
  }
504
504
  return binding;
@@ -516,12 +516,12 @@ function requireNative() {
516
516
  const bindingPackageVersion =
517
517
  require("@vizejs/native-linux-loong64-gnu/package.json").version;
518
518
  if (
519
- bindingPackageVersion !== "0.174.0" &&
519
+ bindingPackageVersion !== "0.272.0" &&
520
520
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
521
521
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
522
522
  ) {
523
523
  throw new Error(
524
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
525
525
  );
526
526
  }
527
527
  return binding;
@@ -541,12 +541,12 @@ function requireNative() {
541
541
  const bindingPackageVersion =
542
542
  require("@vizejs/native-linux-riscv64-musl/package.json").version;
543
543
  if (
544
- bindingPackageVersion !== "0.174.0" &&
544
+ bindingPackageVersion !== "0.272.0" &&
545
545
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
546
546
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
547
547
  ) {
548
548
  throw new Error(
549
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
549
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
550
550
  );
551
551
  }
552
552
  return binding;
@@ -564,12 +564,12 @@ function requireNative() {
564
564
  const bindingPackageVersion =
565
565
  require("@vizejs/native-linux-riscv64-gnu/package.json").version;
566
566
  if (
567
- bindingPackageVersion !== "0.174.0" &&
567
+ bindingPackageVersion !== "0.272.0" &&
568
568
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
569
569
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
570
570
  ) {
571
571
  throw new Error(
572
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
573
573
  );
574
574
  }
575
575
  return binding;
@@ -588,12 +588,12 @@ function requireNative() {
588
588
  const bindingPackageVersion =
589
589
  require("@vizejs/native-linux-ppc64-gnu/package.json").version;
590
590
  if (
591
- bindingPackageVersion !== "0.174.0" &&
591
+ bindingPackageVersion !== "0.272.0" &&
592
592
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
593
593
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
594
594
  ) {
595
595
  throw new Error(
596
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
596
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
597
597
  );
598
598
  }
599
599
  return binding;
@@ -611,12 +611,12 @@ function requireNative() {
611
611
  const bindingPackageVersion =
612
612
  require("@vizejs/native-linux-s390x-gnu/package.json").version;
613
613
  if (
614
- bindingPackageVersion !== "0.174.0" &&
614
+ bindingPackageVersion !== "0.272.0" &&
615
615
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
616
616
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
617
617
  ) {
618
618
  throw new Error(
619
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
620
620
  );
621
621
  }
622
622
  return binding;
@@ -638,12 +638,12 @@ function requireNative() {
638
638
  const bindingPackageVersion =
639
639
  require("@vizejs/native-openharmony-arm64/package.json").version;
640
640
  if (
641
- bindingPackageVersion !== "0.174.0" &&
641
+ bindingPackageVersion !== "0.272.0" &&
642
642
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
643
643
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
644
644
  ) {
645
645
  throw new Error(
646
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
646
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
647
647
  );
648
648
  }
649
649
  return binding;
@@ -661,12 +661,12 @@ function requireNative() {
661
661
  const bindingPackageVersion =
662
662
  require("@vizejs/native-openharmony-x64/package.json").version;
663
663
  if (
664
- bindingPackageVersion !== "0.174.0" &&
664
+ bindingPackageVersion !== "0.272.0" &&
665
665
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
666
666
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
667
667
  ) {
668
668
  throw new Error(
669
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
670
670
  );
671
671
  }
672
672
  return binding;
@@ -684,12 +684,12 @@ function requireNative() {
684
684
  const bindingPackageVersion =
685
685
  require("@vizejs/native-openharmony-arm/package.json").version;
686
686
  if (
687
- bindingPackageVersion !== "0.174.0" &&
687
+ bindingPackageVersion !== "0.272.0" &&
688
688
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
689
689
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
690
690
  ) {
691
691
  throw new Error(
692
- `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
+ `Native binding package version mismatch, expected 0.272.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
693
693
  );
694
694
  }
695
695
  return binding;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.272.0",
3
+ "version": "0.272.1",
4
4
  "description": "High-performance Vue.js compiler - Native bindings",
5
5
  "keywords": [
6
6
  "compiler",
@@ -36,14 +36,14 @@
36
36
  "@napi-rs/cli": "3.6.2"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@vizejs/native-darwin-arm64": "0.272.0",
40
- "@vizejs/native-darwin-x64": "0.272.0",
41
- "@vizejs/native-linux-arm64-gnu": "0.272.0",
42
- "@vizejs/native-linux-arm64-musl": "0.272.0",
43
- "@vizejs/native-linux-x64-gnu": "0.272.0",
44
- "@vizejs/native-linux-x64-musl": "0.272.0",
45
- "@vizejs/native-win32-arm64-msvc": "0.272.0",
46
- "@vizejs/native-win32-x64-msvc": "0.272.0"
39
+ "@vizejs/native-darwin-arm64": "0.272.1",
40
+ "@vizejs/native-darwin-x64": "0.272.1",
41
+ "@vizejs/native-linux-arm64-gnu": "0.272.1",
42
+ "@vizejs/native-linux-arm64-musl": "0.272.1",
43
+ "@vizejs/native-linux-x64-gnu": "0.272.1",
44
+ "@vizejs/native-linux-x64-musl": "0.272.1",
45
+ "@vizejs/native-win32-arm64-msvc": "0.272.1",
46
+ "@vizejs/native-win32-x64-msvc": "0.272.1"
47
47
  },
48
48
  "napi": {
49
49
  "binaryName": "vize-vitrine",