@vizejs/native 0.515.0 → 0.517.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 +21 -1
  2. package/index.js +1 -0
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -162,6 +162,7 @@ export interface BatchCompileResultWithFilesNapi {
162
162
  export interface BatchFileInputNapi {
163
163
  path: string;
164
164
  source: string;
165
+ scopeId?: string;
165
166
  }
166
167
 
167
168
  export interface BatchFileResultNapi {
@@ -525,7 +526,7 @@ export declare function flattenDesignTokenCategories(categories: string): string
525
526
  /** Format options for NAPI. */
526
527
  export interface FormatOptionsNapi {
527
528
  /** Existing formatter defaults; explicit options below take precedence. */
528
- preset?: "vize" | "prettier";
529
+ preset?: "vize" | "prettier" | "compact";
529
530
  /** Explicit Vue version; omitted uses Vue 3. */
530
531
  vueVersion?: string;
531
532
  /** Oxfmt-compatible import sorting; false disables it. */
@@ -1423,6 +1424,25 @@ export declare function typeCheckBatch(
1423
1424
  options?: TypeCheckOptionsNapi | undefined | null,
1424
1425
  ): BatchTypeCheckResultNapi;
1425
1426
 
1427
+ /**
1428
+ * Type check one SFC and publish its generated virtual TypeScript to explicitly
1429
+ * registered visitor plugins. The ordinary `typeCheck` path remains plugin-free.
1430
+ */
1431
+ export declare function typeCheckWithVirtualTsVisitors(
1432
+ source: string,
1433
+ plugins: Array<VirtualTsVisitorPluginNapi>,
1434
+ options?: TypeCheckOptionsNapi | undefined | null,
1435
+ ): TypeCheckResultNapi;
1436
+
1437
+ /** One negotiated observer for generated virtual TypeScript. */
1438
+ export interface VirtualTsVisitorPluginNapi {
1439
+ name: string;
1440
+ version: string;
1441
+ fingerprint: string;
1442
+ /** Receives one serialized `VisitorEvent<"virtual-ts">` and returns an empty string. */
1443
+ run: (eventJson: string) => string;
1444
+ }
1445
+
1426
1446
  /** Type check capabilities result */
1427
1447
  export interface TypeCheckCapabilitiesNapi {
1428
1448
  mode: string;
package/index.js CHANGED
@@ -96,5 +96,6 @@ module.exports.toViteBrowserImportPrefix = nativeBinding.toViteBrowserImportPref
96
96
  module.exports.transformViteCssVarsForPipeline = nativeBinding.transformViteCssVarsForPipeline;
97
97
  module.exports.typeCheck = nativeBinding.typeCheck;
98
98
  module.exports.typeCheckBatch = nativeBinding.typeCheckBatch;
99
+ module.exports.typeCheckWithVirtualTsVisitors = nativeBinding.typeCheckWithVirtualTsVisitors;
99
100
  module.exports.validateDesignTokenReference = nativeBinding.validateDesignTokenReference;
100
101
  module.exports.wrapSfcScopedPreprocessorStyle = nativeBinding.wrapSfcScopedPreprocessorStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.515.0",
3
+ "version": "0.517.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.515.0",
40
- "@vizejs/native-darwin-x64": "0.515.0",
41
- "@vizejs/native-linux-arm64-gnu": "0.515.0",
42
- "@vizejs/native-linux-arm64-musl": "0.515.0",
43
- "@vizejs/native-linux-x64-gnu": "0.515.0",
44
- "@vizejs/native-linux-x64-musl": "0.515.0",
45
- "@vizejs/native-win32-arm64-msvc": "0.515.0",
46
- "@vizejs/native-win32-x64-msvc": "0.515.0"
39
+ "@vizejs/native-darwin-arm64": "0.517.0",
40
+ "@vizejs/native-darwin-x64": "0.517.0",
41
+ "@vizejs/native-linux-arm64-gnu": "0.517.0",
42
+ "@vizejs/native-linux-arm64-musl": "0.517.0",
43
+ "@vizejs/native-linux-x64-gnu": "0.517.0",
44
+ "@vizejs/native-linux-x64-musl": "0.517.0",
45
+ "@vizejs/native-win32-arm64-msvc": "0.517.0",
46
+ "@vizejs/native-win32-x64-msvc": "0.517.0"
47
47
  },
48
48
  "napi": {
49
49
  "binaryName": "vize-vitrine",