@vizejs/native 0.795.0 → 0.797.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.
package/index.d.ts CHANGED
@@ -185,6 +185,33 @@ export interface BatchCompileResultWithFilesNapi {
185
185
  timeMs: number;
186
186
  }
187
187
 
188
+ /**
189
+ * What one target of a multi-target batch sets. An omitted field keeps the
190
+ * value of the call's options.
191
+ */
192
+ export interface BatchCompileTargetNapi {
193
+ ssr?: boolean;
194
+ vapor?: boolean;
195
+ /** Inline the render function into `setup()` and keep the ES module. */
196
+ inlineTemplate?: boolean;
197
+ }
198
+
199
+ export interface BatchCompileTargetsResultNapi {
200
+ /**
201
+ * One result per target, in target order. Each lists the files in input
202
+ * order, and its `timeMs` is the time of the whole call.
203
+ */
204
+ targets: Array<BatchCompileResultWithFilesNapi>;
205
+ /**
206
+ * Per file, in input order: whether every later target compiled the
207
+ * first target's `dependencies` and so leaves them out. A component typed
208
+ * through a barrel depends on every module of it, so the list would
209
+ * otherwise cross the boundary once per target.
210
+ */
211
+ dependenciesShared: Array<boolean>;
212
+ timeMs: number;
213
+ }
214
+
188
215
  export interface BatchFileInputNapi {
189
216
  path: string;
190
217
  source: string;
@@ -389,6 +416,12 @@ export declare function compileSfcBatch(
389
416
  options?: BatchCompileOptionsNapi | undefined | null,
390
417
  ): BatchCompileResultNapi;
391
418
 
419
+ export declare function compileSfcBatchForTargets(
420
+ files: Array<BatchFileInputNapi>,
421
+ options: BatchCompileOptionsNapi | undefined | null,
422
+ targets: Array<BatchCompileTargetNapi>,
423
+ ): BatchCompileTargetsResultNapi;
424
+
392
425
  export declare function compileSfcBatchWithResults(
393
426
  files: Array<BatchFileInputNapi>,
394
427
  options?: BatchCompileOptionsNapi | undefined | null,
package/index.js CHANGED
@@ -43,6 +43,7 @@ module.exports.compileCss = nativeBinding.compileCss;
43
43
  module.exports.compileJsx = nativeBinding.compileJsx;
44
44
  module.exports.compileSfc = nativeBinding.compileSfc;
45
45
  module.exports.compileSfcBatch = nativeBinding.compileSfcBatch;
46
+ module.exports.compileSfcBatchForTargets = nativeBinding.compileSfcBatchForTargets;
46
47
  module.exports.compileSfcBatchWithResults = nativeBinding.compileSfcBatchWithResults;
47
48
  module.exports.compileTsrx = nativeBinding.compileTsrx;
48
49
  module.exports.compileVapor = nativeBinding.compileVapor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.795.0",
3
+ "version": "0.797.0",
4
4
  "description": "High-performance Vue.js compiler - Native bindings",
5
5
  "keywords": [
6
6
  "compiler",
@@ -39,14 +39,14 @@
39
39
  "@napi-rs/cli": "3.10.12"
40
40
  },
41
41
  "optionalDependencies": {
42
- "@vizejs/native-darwin-x64": "0.795.0",
43
- "@vizejs/native-darwin-arm64": "0.795.0",
44
- "@vizejs/native-win32-x64-msvc": "0.795.0",
45
- "@vizejs/native-win32-arm64-msvc": "0.795.0",
46
- "@vizejs/native-linux-x64-gnu": "0.795.0",
47
- "@vizejs/native-linux-x64-musl": "0.795.0",
48
- "@vizejs/native-linux-arm64-gnu": "0.795.0",
49
- "@vizejs/native-linux-arm64-musl": "0.795.0"
42
+ "@vizejs/native-darwin-x64": "0.797.0",
43
+ "@vizejs/native-darwin-arm64": "0.797.0",
44
+ "@vizejs/native-win32-x64-msvc": "0.797.0",
45
+ "@vizejs/native-win32-arm64-msvc": "0.797.0",
46
+ "@vizejs/native-linux-x64-gnu": "0.797.0",
47
+ "@vizejs/native-linux-x64-musl": "0.797.0",
48
+ "@vizejs/native-linux-arm64-gnu": "0.797.0",
49
+ "@vizejs/native-linux-arm64-musl": "0.797.0"
50
50
  },
51
51
  "napi": {
52
52
  "binaryName": "vize-vitrine",
@@ -1,4 +1,5 @@
1
- // Generated from tools/config/pkl/package-tasks/npm/native/tasks.pkl
1
+ // DO NOT EDIT. Generated from tools/config/pkl/package-tasks/npm/native/tasks.pkl.
2
+ // Edit the Pkl source and run `node tools/commands/generate/repository-config.ts`.
2
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
4
  //#region \0rolldown/runtime.js
4
5
  var __create = Object.create;