@vizejs/native 0.174.0 → 0.175.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 +22 -0
  2. package/index.js +53 -52
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -61,10 +61,14 @@ export interface AutogenOutputNapi {
61
61
  }
62
62
 
63
63
  export interface BatchCompileOptionsNapi {
64
+ mode?: string;
64
65
  ssr?: boolean;
65
66
  vapor?: boolean;
66
67
  customRenderer?: boolean;
67
68
  vueParserQuirks?: boolean;
69
+ runtimeModuleName?: string;
70
+ runtimeGlobalName?: string;
71
+ vueVersion?: string;
68
72
  /** Preserve TypeScript in output when true */
69
73
  isTs?: boolean;
70
74
  threads?: number;
@@ -205,6 +209,10 @@ export interface CompilerOptions {
205
209
  customRenderer?: boolean;
206
210
  /** Enable Vue parser quirk compatibility for known edge cases. */
207
211
  vueParserQuirks?: boolean;
212
+ /** Module name for runtime imports. */
213
+ runtimeModuleName?: string;
214
+ /** Global variable name for standalone/function mode. */
215
+ runtimeGlobalName?: string;
208
216
  /**
209
217
  * Script extension handling: "preserve" (keep TypeScript) or "downcompile" (transpile to JS)
210
218
  * Defaults to "downcompile"
@@ -576,6 +584,16 @@ export declare function normalizeViteResolvedVuePath(id: string): string | null;
576
584
 
577
585
  export declare function normalizeViteVirtualVueModuleId(id: string): string;
578
586
 
587
+ /**
588
+ * Normalize a raw `vize.config.*` export into the public resolved shape.
589
+ *
590
+ * The implementation works directly with NAPI values instead of serializing
591
+ * through JSON. That keeps JavaScript-only values such as `RegExp` filters
592
+ * intact while still moving the merge, null stripping, and legacy alias
593
+ * handling out of the TypeScript loader.
594
+ */
595
+ export declare function normalizeVizeConfig(value: unknown): unknown;
596
+
579
597
  /** Palette options for NAPI */
580
598
  export interface PaletteOptionsNapi {
581
599
  inferOptions?: boolean;
@@ -728,11 +746,15 @@ export interface SfcBlockAttributeNapi {
728
746
 
729
747
  export interface SfcCompileOptionsNapi {
730
748
  filename?: string;
749
+ mode?: string;
731
750
  sourceMap?: boolean;
732
751
  ssr?: boolean;
733
752
  vapor?: boolean;
734
753
  customRenderer?: boolean;
735
754
  vueParserQuirks?: boolean;
755
+ runtimeModuleName?: string;
756
+ runtimeGlobalName?: string;
757
+ vueVersion?: string;
736
758
  /** Preserve TypeScript in output when true */
737
759
  isTs?: boolean;
738
760
  /** Scope ID for scoped CSS (e.g., "data-v-abc123") */
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.165.0" &&
83
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
88
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
106
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
111
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
137
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
142
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
160
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
165
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
184
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
189
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
207
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
212
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
232
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
237
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
254
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
259
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
276
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
281
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
302
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
307
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
324
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
352
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
357
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
375
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
400
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
405
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
423
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
448
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
453
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
471
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
496
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
501
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
519
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
544
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
549
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
567
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
591
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
596
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
614
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
641
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
646
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
664
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
+ `Native binding package version mismatch, expected 0.174.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.165.0" &&
687
+ bindingPackageVersion !== "0.174.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.165.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
+ `Native binding package version mismatch, expected 0.174.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
693
693
  );
694
694
  }
695
695
  return binding;
@@ -810,6 +810,7 @@ module.exports.normalizeVitePrecompileBatchSize = nativeBinding.normalizeVitePre
810
810
  module.exports.normalizeViteRequireBase = nativeBinding.normalizeViteRequireBase;
811
811
  module.exports.normalizeViteResolvedVuePath = nativeBinding.normalizeViteResolvedVuePath;
812
812
  module.exports.normalizeViteVirtualVueModuleId = nativeBinding.normalizeViteVirtualVueModuleId;
813
+ module.exports.normalizeVizeConfig = nativeBinding.normalizeVizeConfig;
813
814
  module.exports.parseArt = nativeBinding.parseArt;
814
815
  module.exports.parseCssAst = nativeBinding.parseCssAst;
815
816
  module.exports.parseDesignTokensFromJson = nativeBinding.parseDesignTokensFromJson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.174.0",
3
+ "version": "0.175.0",
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.174.0",
40
- "@vizejs/native-darwin-x64": "0.174.0",
41
- "@vizejs/native-linux-arm64-gnu": "0.174.0",
42
- "@vizejs/native-linux-arm64-musl": "0.174.0",
43
- "@vizejs/native-linux-x64-gnu": "0.174.0",
44
- "@vizejs/native-linux-x64-musl": "0.174.0",
45
- "@vizejs/native-win32-arm64-msvc": "0.174.0",
46
- "@vizejs/native-win32-x64-msvc": "0.174.0"
39
+ "@vizejs/native-darwin-arm64": "0.175.0",
40
+ "@vizejs/native-darwin-x64": "0.175.0",
41
+ "@vizejs/native-linux-arm64-gnu": "0.175.0",
42
+ "@vizejs/native-linux-arm64-musl": "0.175.0",
43
+ "@vizejs/native-linux-x64-gnu": "0.175.0",
44
+ "@vizejs/native-linux-x64-musl": "0.175.0",
45
+ "@vizejs/native-win32-arm64-msvc": "0.175.0",
46
+ "@vizejs/native-win32-x64-msvc": "0.175.0"
47
47
  },
48
48
  "napi": {
49
49
  "binaryName": "vize-vitrine",