@vizejs/native 0.681.0 → 0.683.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 -0
  2. package/index.js +2 -0
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -84,6 +84,8 @@ export interface AutogenOutputNapi {
84
84
  }
85
85
 
86
86
  export interface BatchCompileOptionsNapi {
87
+ /** Fallback tsconfig when inputs have no nearest user project. */
88
+ typeResolutionFallbackTsconfig?: string;
87
89
  whitespace?: string;
88
90
  mode?: string;
89
91
  ssr?: boolean;
@@ -169,6 +171,8 @@ export interface BatchFileInputNapi {
169
171
  }
170
172
 
171
173
  export interface BatchFileResultNapi {
174
+ /** Project authority for configuration watches shared across components. */
175
+ typeProject?: TypeProjectContextNapi;
172
176
  path: string;
173
177
  code: string;
174
178
  /**
@@ -1338,6 +1342,8 @@ export interface SfcBlockAttributeNapi {
1338
1342
  }
1339
1343
 
1340
1344
  export interface SfcCompileOptionsNapi {
1345
+ /** Fallback tsconfig when an input has no nearest user project. */
1346
+ typeResolutionFallbackTsconfig?: string;
1341
1347
  whitespace?: string;
1342
1348
  filename?: string;
1343
1349
  mode?: string;
@@ -1376,6 +1382,8 @@ export interface SfcCompileOptionsNapi {
1376
1382
  }
1377
1383
 
1378
1384
  export interface SfcCompileResultNapi {
1385
+ /** Project authority for configuration watches shared across components. */
1386
+ typeProject?: TypeProjectContextNapi;
1379
1387
  code: string;
1380
1388
  /**
1381
1389
  * Source Map v3 document (JSON) describing `code`, present only when
@@ -1868,3 +1876,16 @@ export interface OxlintHtmlOutcome {
1868
1876
  completed?: OxlintHtmlCompleted;
1869
1877
  refused?: OxlintHtmlRefusal;
1870
1878
  }
1879
+
1880
+ export declare function typeProjectOwners(path: string): Array<string>;
1881
+
1882
+ export declare function typeProjectInputs(
1883
+ root: string,
1884
+ revision: string,
1885
+ knownRevision?: string | undefined | null,
1886
+ ): Array<string> | null;
1887
+
1888
+ export interface TypeProjectContextNapi {
1889
+ root: string;
1890
+ revision: string;
1891
+ }
package/index.js CHANGED
@@ -100,5 +100,7 @@ module.exports.transformViteCssVarsForPipeline = nativeBinding.transformViteCssV
100
100
  module.exports.typeCheck = nativeBinding.typeCheck;
101
101
  module.exports.typeCheckBatch = nativeBinding.typeCheckBatch;
102
102
  module.exports.typeCheckWithVirtualTsVisitors = nativeBinding.typeCheckWithVirtualTsVisitors;
103
+ module.exports.typeProjectInputs = nativeBinding.typeProjectInputs;
104
+ module.exports.typeProjectOwners = nativeBinding.typeProjectOwners;
103
105
  module.exports.validateDesignTokenReference = nativeBinding.validateDesignTokenReference;
104
106
  module.exports.wrapSfcScopedPreprocessorStyle = nativeBinding.wrapSfcScopedPreprocessorStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.681.0",
3
+ "version": "0.683.0",
4
4
  "description": "High-performance Vue.js compiler - Native bindings",
5
5
  "keywords": [
6
6
  "compiler",
@@ -38,14 +38,14 @@
38
38
  "@napi-rs/cli": "3.6.2"
39
39
  },
40
40
  "optionalDependencies": {
41
- "@vizejs/native-darwin-arm64": "0.681.0",
42
- "@vizejs/native-darwin-x64": "0.681.0",
43
- "@vizejs/native-linux-arm64-gnu": "0.681.0",
44
- "@vizejs/native-linux-arm64-musl": "0.681.0",
45
- "@vizejs/native-linux-x64-gnu": "0.681.0",
46
- "@vizejs/native-linux-x64-musl": "0.681.0",
47
- "@vizejs/native-win32-arm64-msvc": "0.681.0",
48
- "@vizejs/native-win32-x64-msvc": "0.681.0"
41
+ "@vizejs/native-darwin-arm64": "0.683.0",
42
+ "@vizejs/native-darwin-x64": "0.683.0",
43
+ "@vizejs/native-linux-arm64-gnu": "0.683.0",
44
+ "@vizejs/native-linux-arm64-musl": "0.683.0",
45
+ "@vizejs/native-linux-x64-gnu": "0.683.0",
46
+ "@vizejs/native-linux-x64-musl": "0.683.0",
47
+ "@vizejs/native-win32-arm64-msvc": "0.683.0",
48
+ "@vizejs/native-win32-x64-msvc": "0.683.0"
49
49
  },
50
50
  "napi": {
51
51
  "binaryName": "vize-vitrine",