@vizejs/native 0.310.0 → 0.314.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 +19 -0
  2. package/index.js +1 -0
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -93,6 +93,15 @@ export interface BatchCompileOptionsNapi {
93
93
  includeMacroArtifacts?: boolean;
94
94
  /** Include template/style/script content hashes (for HMR). Default OFF. */
95
95
  includeHashes?: boolean;
96
+ /**
97
+ * Emit a Source Map v3 document per file (`map`). Default OFF.
98
+ *
99
+ * The pre-compile batch is the path every build takes, so a production
100
+ * build with `build.sourcemap` on has to be able to ask for maps here or
101
+ * the bundle's maps point at the virtual module instead of the `.vue`
102
+ * file (#3399).
103
+ */
104
+ includeSourceMap?: boolean;
96
105
  }
97
106
 
98
107
  export interface BatchCompileResultNapi {
@@ -118,6 +127,9 @@ export interface BatchFileInputNapi {
118
127
  export interface BatchFileResultNapi {
119
128
  path: string;
120
129
  code: string;
130
+ /** Source Map v3 document (JSON) describing `code`, present only when
131
+ * `includeSourceMap` was requested and a line could be anchored (#3399). */
132
+ map?: string;
121
133
  css?: string;
122
134
  scopeId: string;
123
135
  hasScoped: boolean;
@@ -146,6 +158,9 @@ export declare function buildInspectorGraph(
146
158
  files: Array<InspectorSourceFileNapi>,
147
159
  ): InspectorGraphNapi;
148
160
 
161
+ /** Resolve effective lint rules and provenance using Vize's execution matcher. */
162
+ export declare function inspectLintPlan(plan: string, root: string, files: Array<string>): string;
163
+
149
164
  /** Catalog entry for NAPI */
150
165
  export interface CatalogEntryNapi {
151
166
  title: string;
@@ -919,6 +934,10 @@ export interface SfcCompileOptionsNapi {
919
934
 
920
935
  export interface SfcCompileResultNapi {
921
936
  code: string;
937
+ /** Source Map v3 document (JSON) describing `code`, present only when
938
+ * `sourceMap` was requested and at least one authored line could be
939
+ * anchored (#3399). Its single `sources` entry is the authored `.vue` path. */
940
+ map?: string;
922
941
  css?: string;
923
942
  errors: Array<string>;
924
943
  warnings: Array<string>;
package/index.js CHANGED
@@ -46,6 +46,7 @@ module.exports.hasSfcScopedStyle = nativeBinding.hasSfcScopedStyle;
46
46
  module.exports.hasViteHmrChanges = nativeBinding.hasViteHmrChanges;
47
47
  module.exports.hasVitePrecompileFileMetadataChanged =
48
48
  nativeBinding.hasVitePrecompileFileMetadataChanged;
49
+ module.exports.inspectLintPlan = nativeBinding.inspectLintPlan;
49
50
  module.exports.isBuiltinViteDefine = nativeBinding.isBuiltinViteDefine;
50
51
  module.exports.isSfcImportableAssetUrl = nativeBinding.isSfcImportableAssetUrl;
51
52
  module.exports.isViteBareSpecifier = nativeBinding.isViteBareSpecifier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.310.0",
3
+ "version": "0.314.0",
4
4
  "description": "High-performance Vue.js compiler - Native bindings",
5
5
  "keywords": [
6
6
  "compiler",
@@ -35,14 +35,14 @@
35
35
  "@napi-rs/cli": "3.6.2"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@vizejs/native-darwin-arm64": "0.310.0",
39
- "@vizejs/native-darwin-x64": "0.310.0",
40
- "@vizejs/native-linux-arm64-gnu": "0.310.0",
41
- "@vizejs/native-linux-arm64-musl": "0.310.0",
42
- "@vizejs/native-linux-x64-gnu": "0.310.0",
43
- "@vizejs/native-linux-x64-musl": "0.310.0",
44
- "@vizejs/native-win32-arm64-msvc": "0.310.0",
45
- "@vizejs/native-win32-x64-msvc": "0.310.0"
38
+ "@vizejs/native-darwin-arm64": "0.314.0",
39
+ "@vizejs/native-darwin-x64": "0.314.0",
40
+ "@vizejs/native-linux-arm64-gnu": "0.314.0",
41
+ "@vizejs/native-linux-arm64-musl": "0.314.0",
42
+ "@vizejs/native-linux-x64-gnu": "0.314.0",
43
+ "@vizejs/native-linux-x64-musl": "0.314.0",
44
+ "@vizejs/native-win32-arm64-msvc": "0.314.0",
45
+ "@vizejs/native-win32-x64-msvc": "0.314.0"
46
46
  },
47
47
  "napi": {
48
48
  "binaryName": "vize-vitrine",