@ngrs/compiler 0.2.0 → 0.3.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 +132 -99
  2. package/index.js +59 -57
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -14,36 +14,53 @@ export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-was
14
14
  * in-memory output capture and optional `fileReplacements` overlay) for Vite dev-server and
15
15
  * `@ngrs/build` production builds.
16
16
  */
17
- export declare class NapiProjectCompiler {
17
+ export declare class NgrsProgram {
18
18
  /**
19
19
  * Opens an Angular project from `tsconfig.json` / `tsconfig.app.json` (or its directory) on
20
20
  * disk, applies any `fileReplacements` / HMR / sourcemap / compilation-mode overrides, builds
21
21
  * a single-threaded TypeScript + Angular program, and caches initial emitted JS, `.d.ts`,
22
22
  * diagnostics, and external template/style resource dependencies.
23
23
  */
24
- static open(tsconfigPath: string, options?: NapiProjectOptions | undefined | null): NapiProjectCompiler
24
+ static open(tsconfigPath: string, options?: NgrsProgramOptions | undefined | null): NgrsProgram
25
25
  /**
26
26
  * Spawns a dedicated 64 MiB Rust OS thread running full TypeScript + Angular template +
27
27
  * extended diagnostics concurrently while Vite / Rolldown bundles emitted JavaScript.
28
28
  */
29
29
  startDeferredTypecheck(): void
30
30
  /** Synchronously joins any in-flight deferred typecheck thread and returns all diagnostics. */
31
- finishDeferredTypecheck(): Array<NapiDiagnostic>
31
+ finishDeferredTypecheck(): Array<NgrsDiagnostic>
32
32
  /**
33
- * Returns a `Promise<NapiDiagnostic[]>` that joins the background Rust typecheck OS thread on
33
+ * Returns a `Promise<NgrsDiagnostic[]>` that joins the background Rust typecheck OS thread on
34
34
  * libuv's worker pool without blocking the Node.js main thread while Rolldown finishes bundling.
35
35
  */
36
- finishDeferredTypecheckAsync(): Promise<Array<NapiDiagnostic>>
36
+ finishDeferredTypecheckAsync(): Promise<Array<NgrsDiagnostic>>
37
37
  /**
38
38
  * Looks up cached emitted JavaScript for `file_path` (accepting `.ts`/`.tsx`/`.mts`/`.cts`
39
39
  * source paths, `.js`/`.mjs`/`.cjs` output paths, relative paths, symlinked or canonical
40
40
  * `realpath` paths, and Vite module IDs with `?` query suffixes).
41
41
  */
42
42
  getEmittedJs(filePath: string): string | null
43
+ /**
44
+ * Returns separated `{ code, map }` for `file_path` directly without Base64 encoding or regex
45
+ * extraction on the JavaScript side.
46
+ */
47
+ getEmittedModule(filePath: string): EmittedModule | null
48
+ /** Returns the compiled CSS text produced by native `grass_compiler` for `style_path`, if any. */
49
+ getCompiledStyleCss(stylePath: string): string | null
50
+ /**
51
+ * Returns all SCSS/Sass partial paths (`@use` / `@forward` / `@import`) loaded while compiling
52
+ * `style_path` in Rust.
53
+ */
54
+ getSassPartialsForStyle(stylePath: string): Array<string>
55
+ /**
56
+ * Returns any external `.scss`/`.sass` file paths that could not be compiled natively by
57
+ * `grass_compiler` and require fallback compilation via JS `sass`.
58
+ */
59
+ getUncompiledExternalSassFiles(): Array<string>
43
60
  /** Returns all currently cached emitted JavaScript / `.d.ts` files for the project. */
44
- getAllEmittedFiles(): Array<NapiEmittedFile>
61
+ getAllEmittedFiles(): Array<EmittedFile>
45
62
  /** Returns diagnostics from the most recent compilation (`open` or `rebuild`). */
46
- getDiagnostics(): Array<NapiDiagnostic>
63
+ getDiagnostics(): Array<NgrsDiagnostic>
47
64
  /**
48
65
  * Returns absolute paths of external template and stylesheet resources (`.html`, `.css`,
49
66
  * `.scss`, etc.) referenced by a `.ts` component file.
@@ -69,7 +86,7 @@ export declare class NapiProjectCompiler {
69
86
  * compiled to CSS via Dart Sass) so subsequent [`Self::rebuild`] calls encapsulate the
70
87
  * preprocessed CSS directly.
71
88
  */
72
- setResourceOverrides(files: Array<NapiVirtualFile>): void
89
+ setResourceOverrides(files: Array<VirtualFile>): void
73
90
  /** Clears all in-memory resource overrides registered via [`Self::set_resource_overrides`]. */
74
91
  clearResourceOverrides(): void
75
92
  /**
@@ -88,14 +105,21 @@ export declare class NapiProjectCompiler {
88
105
  * `fileReplacements` targets, or `tsconfig.json`) are modified on disk, updating cached JS,
89
106
  * `.d.ts`, diagnostics, and resource dependency graphs.
90
107
  */
91
- rebuild(changedFiles: Array<string>): NapiRebuildResult
108
+ rebuild(changedFiles: Array<string>): RebuildResult
92
109
  }
93
110
 
94
111
  /**
95
112
  * Compiles an Angular TypeScript project from disk given a path to `tsconfig.json` (or its
96
113
  * containing directory) using [`OsFileSystem`] and [`perform_compilation`].
97
114
  */
98
- export declare function compileProjectOnDisk(tsconfigPath: string): NapiCompileResult
115
+ export declare function compileProjectOnDisk(tsconfigPath: string): CompileResult
116
+
117
+ /** Full compilation output returned by [`transform_angular_files`] and [`compile_project_on_disk`]. */
118
+ export interface CompileResult {
119
+ files: Array<EmittedFile>
120
+ diagnostics: Array<NgrsDiagnostic>
121
+ exitCode: number
122
+ }
99
123
 
100
124
  /**
101
125
  * Compiles a `.scss` or `.sass` stylesheet file on disk to CSS using the pure-Rust
@@ -110,65 +134,41 @@ export declare function compileSassString(source: string, loadPaths?: Array<stri
110
134
  * Compiles a `.scss` or `.sass` stylesheet file on disk to CSS and returns all resolved file
111
135
  * paths read during compilation (`@use` / `@forward` / `@import` partials) for Vite HMR tracking.
112
136
  */
113
- export declare function compileSassWithDeps(filePath: string, loadPaths?: Array<string> | undefined | null, minify?: boolean | undefined | null): NapiSassResult
137
+ export declare function compileSassWithDeps(filePath: string, loadPaths?: Array<string> | undefined | null, minify?: boolean | undefined | null): SassResult
114
138
 
115
139
  /**
116
140
  * Compiles an Angular HTML template and optional component styles directly into Ivy JavaScript
117
141
  * (`ɵɵdefineComponent` or `ɵɵngDeclareComponent` in `"partial"` mode).
118
142
  */
119
- export declare function compileTemplate(template: string, componentName: string, selector: string, options?: NapiTemplateOptions | undefined | null): NapiTemplateCompileResult
143
+ export declare function compileTemplate(template: string, componentName: string, selector: string, options?: TemplateOptions | undefined | null): TemplateCompileResult
144
+
145
+ /** Emitted JavaScript (and optional `.d.ts` declaration) artifact for a compiled source file. */
146
+ export interface EmittedFile {
147
+ path: string
148
+ js: string
149
+ dts?: string
150
+ }
151
+
152
+ /** Emitted JavaScript module and optional raw V3 source-map JSON string (avoiding inline Base64 roundtrips). */
153
+ export interface EmittedModule {
154
+ code: string
155
+ map?: string
156
+ }
120
157
 
121
158
  /**
122
159
  * Extracts `i18n` messages across an entire Angular `tsconfig.json` project on disk and writes
123
160
  * the resulting translation bundle (`messages.xlf`, `messages.xmb`, etc.).
124
161
  */
125
- export declare function extractI18nForProject(tsconfigPath: string, options?: NapiExtractI18NOptions | undefined | null): NapiProjectI18NResult
162
+ export declare function extractI18nForProject(tsconfigPath: string, options?: ExtractI18nOptions | undefined | null): ProjectI18nResult
126
163
 
127
164
  /**
128
165
  * Extracts `i18n` messages from an Angular HTML template and serializes them into `xlf`
129
166
  * (XLIFF 1.2, default), `xlf2` (XLIFF 2.0), or `xmb`.
130
167
  */
131
- export declare function extractI18nFromTemplate(html: string, format?: string | undefined | null, locale?: string | undefined | null): NapiI18NResult
132
-
133
- /**
134
- * Links partially compiled Angular Ivy declarations (`ɵɵngDeclareComponent`,
135
- * `ɵɵngDeclareDirective`, `ɵɵngDeclarePipe`, `ɵɵngDeclareInjectable`, `ɵɵngDeclareNgModule`,
136
- * `ɵɵngDeclareFactory`, etc.) in `.js`/`.mjs` files into full Ivy runtime definitions
137
- * (`ɵɵdefine*`).
138
- */
139
- export declare function linkFile(path: string, source: string, options?: NapiLinkerOptions | undefined | null): NapiLinkResult
140
-
141
- /** Asynchronous worker-pool variant of [`link_file`] returning `Promise<NapiLinkResult>`. */
142
- export declare function linkFileAsync(path: string, source: string, options?: NapiLinkerOptions | undefined | null): Promise<NapiLinkResult>
143
-
144
- /** Full compilation output returned by [`transform_angular_files`] and [`compile_project_on_disk`]. */
145
- export interface NapiCompileResult {
146
- files: Array<NapiEmittedFile>
147
- diagnostics: Array<NapiDiagnostic>
148
- exitCode: number
149
- }
150
-
151
- /** Compiler or template diagnostic returned across the N-API boundary. */
152
- export interface NapiDiagnostic {
153
- code: number
154
- category: string
155
- message: string
156
- file?: string
157
- start?: number
158
- length?: number
159
- line?: number
160
- column?: number
161
- }
162
-
163
- /** Emitted JavaScript (and optional `.d.ts` declaration) artifact for a compiled source file. */
164
- export interface NapiEmittedFile {
165
- path: string
166
- js: string
167
- dts?: string
168
- }
168
+ export declare function extractI18nFromTemplate(html: string, format?: string | undefined | null, locale?: string | undefined | null): I18nResult
169
169
 
170
170
  /** Options controlling project-level `i18n` extraction via [`extract_i18n_for_project`]. */
171
- export interface NapiExtractI18NOptions {
171
+ export interface ExtractI18nOptions {
172
172
  format?: string
173
173
  locale?: string
174
174
  outputPath?: string
@@ -176,48 +176,79 @@ export interface NapiExtractI18NOptions {
176
176
  }
177
177
 
178
178
  /** File replacement rule (`angular.json` `fileReplacements` entry) mapping `replace` -> `with`. */
179
- export interface NapiFileReplacement {
179
+ export interface FileReplacement {
180
180
  replace: string
181
181
  with: string
182
182
  }
183
183
 
184
184
  /** Output of [`extract_i18n_from_template`]. */
185
- export interface NapiI18NResult {
185
+ export interface I18nResult {
186
186
  bundleContent: string
187
187
  messageCount: number
188
- diagnostics: Array<NapiDiagnostic>
188
+ diagnostics: Array<NgrsDiagnostic>
189
189
  }
190
190
 
191
191
  /** Options controlling Angular Ivy partial-declaration linking via [`link_file`]. */
192
- export interface NapiLinkerOptions {
192
+ export interface LinkerOptions {
193
193
  sourceMapping?: boolean
194
194
  linkerJitMode?: boolean
195
195
  unknownDeclarationVersionHandling?: string
196
196
  optimizeForBundling?: boolean
197
197
  }
198
198
 
199
+ /**
200
+ * Links partially compiled Angular Ivy declarations (`ɵɵngDeclareComponent`,
201
+ * `ɵɵngDeclareDirective`, `ɵɵngDeclarePipe`, `ɵɵngDeclareInjectable`, `ɵɵngDeclareNgModule`,
202
+ * `ɵɵngDeclareFactory`, etc.) in `.js`/`.mjs` files into full Ivy runtime definitions
203
+ * (`ɵɵdefine*`).
204
+ */
205
+ export declare function linkFile(path: string, source: string, options?: LinkerOptions | undefined | null): LinkResult
206
+
207
+ /** Asynchronous worker-pool variant of [`link_file`] returning `Promise<LinkResult>`. */
208
+ export declare function linkFileAsync(path: string, source: string, options?: LinkerOptions | undefined | null): Promise<LinkResult>
209
+
210
+ /**
211
+ * Links a batch of `.js`/`.mjs` files in parallel across all CPU cores via Rayon using
212
+ * Longest-Processing-Time-First (`LPT`) work-stealing (`with_max_len(1)`) while preserving input order.
213
+ */
214
+ export declare function linkFiles(files: Array<VirtualFile>, options?: LinkerOptions | undefined | null): Array<LinkResult>
215
+
216
+ /** Asynchronous multi-core Rayon variant of [`link_files`] returning `Promise<LinkResult[]>`. */
217
+ export declare function linkFilesAsync(files: Array<VirtualFile>, options?: LinkerOptions | undefined | null): Promise<Array<LinkResult>>
218
+
199
219
  /** Output of [`link_file`]. */
200
- export interface NapiLinkResult {
220
+ export interface LinkResult {
201
221
  code: string
202
222
  sourceMap?: string
203
223
  linked: boolean
204
- diagnostics: Array<NapiDiagnostic>
224
+ diagnostics: Array<NgrsDiagnostic>
205
225
  }
206
226
 
207
- /** Output of [`extract_i18n_for_project`]. */
208
- export interface NapiProjectI18NResult {
209
- outputFiles: Array<string>
210
- diagnostics: Array<NapiDiagnostic>
211
- exitCode: number
227
+ /**
228
+ * Fast pre-check returning `true` if `source` contains any `ɵɵngDeclare*` Angular partial
229
+ * declaration function names and may require Ivy linking.
230
+ */
231
+ export declare function needsLinking(path: string, source: string): boolean
232
+
233
+ /** Compiler or template diagnostic returned across the N-API boundary. */
234
+ export interface NgrsDiagnostic {
235
+ code: number
236
+ category: string
237
+ message: string
238
+ file?: string
239
+ start?: number
240
+ length?: number
241
+ line?: number
242
+ column?: number
212
243
  }
213
244
 
214
- /** Options controlling stateful project compilation via [`NapiProjectCompiler::open`]. */
215
- export interface NapiProjectOptions {
216
- fileReplacements?: Array<NapiFileReplacement>
245
+ /** Options controlling stateful project compilation via [`NgrsProgram::open`]. */
246
+ export interface NgrsProgramOptions {
247
+ fileReplacements?: Array<FileReplacement>
217
248
  hmr?: boolean
218
249
  sourceMap?: boolean
219
250
  compilationMode?: string
220
- resourceOverrides?: Array<NapiVirtualFile>
251
+ resourceOverrides?: Array<VirtualFile>
221
252
  singleThreaded?: boolean
222
253
  emitDts?: boolean
223
254
  deferTypecheck?: boolean
@@ -225,30 +256,44 @@ export interface NapiProjectOptions {
225
256
  supportJitMode?: boolean
226
257
  inlineStyleLanguage?: string
227
258
  styleIncludePaths?: Array<string>
259
+ disableNativeExternalSass?: boolean
260
+ }
261
+
262
+ /** Output of [`extract_i18n_for_project`]. */
263
+ export interface ProjectI18nResult {
264
+ outputFiles: Array<string>
265
+ diagnostics: Array<NgrsDiagnostic>
266
+ exitCode: number
228
267
  }
229
268
 
230
- /** Output returned by [`NapiProjectCompiler::rebuild`]. */
231
- export interface NapiRebuildResult {
232
- emittedFiles: Array<NapiEmittedFile>
233
- diagnostics: Array<NapiDiagnostic>
269
+ /** Output returned by [`NgrsProgram::rebuild`]. */
270
+ export interface RebuildResult {
271
+ emittedFiles: Array<EmittedFile>
272
+ diagnostics: Array<NgrsDiagnostic>
234
273
  exitCode: number
235
274
  }
236
275
 
237
276
  /** Output of [`compile_sass_with_deps`]. */
238
- export interface NapiSassResult {
277
+ export interface SassResult {
239
278
  css: string
240
279
  loadedFiles: Array<string>
241
280
  }
242
281
 
282
+ /**
283
+ * Encapsulates component CSS with `ViewEncapsulation.Emulated` attribute selectors via
284
+ * [`ShadowCss`].
285
+ */
286
+ export declare function shimStyles(css: string, contentAttr: string, hostAttr: string): string
287
+
243
288
  /** Output of [`compile_template`]. */
244
- export interface NapiTemplateCompileResult {
289
+ export interface TemplateCompileResult {
245
290
  jsCode: string
246
291
  styles: Array<string>
247
- diagnostics: Array<NapiDiagnostic>
292
+ diagnostics: Array<NgrsDiagnostic>
248
293
  }
249
294
 
250
295
  /** Options controlling standalone HTML template compilation via [`compile_template`]. */
251
- export interface NapiTemplateOptions {
296
+ export interface TemplateOptions {
252
297
  preserveWhitespaces?: boolean
253
298
  encapsulation?: string
254
299
  styles?: Array<string>
@@ -256,37 +301,25 @@ export interface NapiTemplateOptions {
256
301
  compilationMode?: string
257
302
  }
258
303
 
304
+ /**
305
+ * Compiles one or more `.ts`/`.html`/`.css` files in-memory via [`MockFileSystemPosix`] and
306
+ * [`NgCompiler`], supporting `"full"`, `"partial"`, and `"experimental-local"` modes.
307
+ */
308
+ export declare function transformAngularFiles(files: Array<VirtualFile>, options?: TransformOptions | undefined | null): CompileResult
309
+
259
310
  /** Options controlling in-memory Angular file transformation via [`transform_angular_files`]. */
260
- export interface NapiTransformOptions {
311
+ export interface TransformOptions {
261
312
  compilationMode?: string
262
313
  sourceMap?: boolean
263
314
  strictTemplates?: boolean
264
- additionalFiles?: Array<NapiVirtualFile>
315
+ additionalFiles?: Array<VirtualFile>
265
316
  }
266
317
 
318
+ /** Returns the `ngrs_napi` crate version. */
319
+ export declare function version(): string
320
+
267
321
  /** Virtual file entry (`path` + UTF-8 `content`) for in-memory compilation. */
268
- export interface NapiVirtualFile {
322
+ export interface VirtualFile {
269
323
  path: string
270
324
  content: string
271
325
  }
272
-
273
- /**
274
- * Fast pre-check returning `true` if `source` contains any `ɵɵngDeclare*` Angular partial
275
- * declaration function names and may require Ivy linking.
276
- */
277
- export declare function needsLinking(path: string, source: string): boolean
278
-
279
- /**
280
- * Encapsulates component CSS with `ViewEncapsulation.Emulated` attribute selectors via
281
- * [`ShadowCss`].
282
- */
283
- export declare function shimStyles(css: string, contentAttr: string, hostAttr: string): string
284
-
285
- /**
286
- * Compiles one or more `.ts`/`.html`/`.css` files in-memory via [`MockFileSystemPosix`] and
287
- * [`NgCompiler`], supporting `"full"`, `"partial"`, and `"experimental-local"` modes.
288
- */
289
- export declare function transformAngularFiles(files: Array<NapiVirtualFile>, options?: NapiTransformOptions | undefined | null): NapiCompileResult
290
-
291
- /** Returns the `ngrs_napi` crate version. */
292
- export declare function version(): string
package/index.js CHANGED
@@ -94,8 +94,8 @@ function requireNative() {
94
94
  try {
95
95
  const binding = require('@ngrs/compiler-android-arm64')
96
96
  const bindingPackageVersion = require('@ngrs/compiler-android-arm64/package.json').version
97
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
98
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
97
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
98
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
99
99
  }
100
100
  return binding
101
101
  } catch (e) {
@@ -110,8 +110,8 @@ function requireNative() {
110
110
  try {
111
111
  const binding = require('@ngrs/compiler-android-arm-eabi')
112
112
  const bindingPackageVersion = require('@ngrs/compiler-android-arm-eabi/package.json').version
113
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
114
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
113
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
114
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
115
115
  }
116
116
  return binding
117
117
  } catch (e) {
@@ -131,8 +131,8 @@ function requireNative() {
131
131
  try {
132
132
  const binding = require('@ngrs/compiler-win32-x64-gnu')
133
133
  const bindingPackageVersion = require('@ngrs/compiler-win32-x64-gnu/package.json').version
134
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
135
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
134
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
135
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
136
136
  }
137
137
  return binding
138
138
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('@ngrs/win32-x64')
149
149
  const bindingPackageVersion = require('@ngrs/win32-x64/package.json').version
150
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -164,8 +164,8 @@ function requireNative() {
164
164
  try {
165
165
  const binding = require('@ngrs/compiler-win32-ia32-msvc')
166
166
  const bindingPackageVersion = require('@ngrs/compiler-win32-ia32-msvc/package.json').version
167
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
168
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
167
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
168
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
169
169
  }
170
170
  return binding
171
171
  } catch (e) {
@@ -180,8 +180,8 @@ function requireNative() {
180
180
  try {
181
181
  const binding = require('@ngrs/win32-arm64')
182
182
  const bindingPackageVersion = require('@ngrs/win32-arm64/package.json').version
183
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
185
  }
186
186
  return binding
187
187
  } catch (e) {
@@ -199,8 +199,8 @@ function requireNative() {
199
199
  try {
200
200
  const binding = require('@ngrs/compiler-darwin-universal')
201
201
  const bindingPackageVersion = require('@ngrs/compiler-darwin-universal/package.json').version
202
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
203
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
202
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
203
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
204
204
  }
205
205
  return binding
206
206
  } catch (e) {
@@ -215,8 +215,8 @@ function requireNative() {
215
215
  try {
216
216
  const binding = require('@ngrs/darwin-x64')
217
217
  const bindingPackageVersion = require('@ngrs/darwin-x64/package.json').version
218
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
219
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
218
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
219
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
220
220
  }
221
221
  return binding
222
222
  } catch (e) {
@@ -231,8 +231,8 @@ function requireNative() {
231
231
  try {
232
232
  const binding = require('@ngrs/darwin-arm64')
233
233
  const bindingPackageVersion = require('@ngrs/darwin-arm64/package.json').version
234
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
235
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
234
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
235
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
236
236
  }
237
237
  return binding
238
238
  } catch (e) {
@@ -251,8 +251,8 @@ function requireNative() {
251
251
  try {
252
252
  const binding = require('@ngrs/compiler-freebsd-x64')
253
253
  const bindingPackageVersion = require('@ngrs/compiler-freebsd-x64/package.json').version
254
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
255
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
254
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
255
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
256
256
  }
257
257
  return binding
258
258
  } catch (e) {
@@ -267,8 +267,8 @@ function requireNative() {
267
267
  try {
268
268
  const binding = require('@ngrs/compiler-freebsd-arm64')
269
269
  const bindingPackageVersion = require('@ngrs/compiler-freebsd-arm64/package.json').version
270
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
271
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
270
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
271
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
272
  }
273
273
  return binding
274
274
  } catch (e) {
@@ -283,8 +283,8 @@ function requireNative() {
283
283
  try {
284
284
  const binding = require('@ngrs/compiler-freebsd-ppc64')
285
285
  const bindingPackageVersion = require('@ngrs/compiler-freebsd-ppc64/package.json').version
286
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
286
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
288
  }
289
289
  return binding
290
290
  } catch (e) {
@@ -304,8 +304,8 @@ function requireNative() {
304
304
  try {
305
305
  const binding = require('@ngrs/linux-x64-musl')
306
306
  const bindingPackageVersion = require('@ngrs/linux-x64-musl/package.json').version
307
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
307
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
309
309
  }
310
310
  return binding
311
311
  } catch (e) {
@@ -320,8 +320,8 @@ function requireNative() {
320
320
  try {
321
321
  const binding = require('@ngrs/linux-x64-gnu')
322
322
  const bindingPackageVersion = require('@ngrs/linux-x64-gnu/package.json').version
323
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
323
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
325
325
  }
326
326
  return binding
327
327
  } catch (e) {
@@ -338,8 +338,8 @@ function requireNative() {
338
338
  try {
339
339
  const binding = require('@ngrs/linux-arm64-musl')
340
340
  const bindingPackageVersion = require('@ngrs/linux-arm64-musl/package.json').version
341
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
341
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
343
343
  }
344
344
  return binding
345
345
  } catch (e) {
@@ -354,8 +354,8 @@ function requireNative() {
354
354
  try {
355
355
  const binding = require('@ngrs/linux-arm64-gnu')
356
356
  const bindingPackageVersion = require('@ngrs/linux-arm64-gnu/package.json').version
357
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
357
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
359
359
  }
360
360
  return binding
361
361
  } catch (e) {
@@ -372,8 +372,8 @@ function requireNative() {
372
372
  try {
373
373
  const binding = require('@ngrs/compiler-linux-arm-musleabihf')
374
374
  const bindingPackageVersion = require('@ngrs/compiler-linux-arm-musleabihf/package.json').version
375
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
375
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
377
377
  }
378
378
  return binding
379
379
  } catch (e) {
@@ -388,8 +388,8 @@ function requireNative() {
388
388
  try {
389
389
  const binding = require('@ngrs/compiler-linux-arm-gnueabihf')
390
390
  const bindingPackageVersion = require('@ngrs/compiler-linux-arm-gnueabihf/package.json').version
391
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
391
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
393
393
  }
394
394
  return binding
395
395
  } catch (e) {
@@ -406,8 +406,8 @@ function requireNative() {
406
406
  try {
407
407
  const binding = require('@ngrs/compiler-linux-loong64-musl')
408
408
  const bindingPackageVersion = require('@ngrs/compiler-linux-loong64-musl/package.json').version
409
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
409
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
411
411
  }
412
412
  return binding
413
413
  } catch (e) {
@@ -422,8 +422,8 @@ function requireNative() {
422
422
  try {
423
423
  const binding = require('@ngrs/compiler-linux-loong64-gnu')
424
424
  const bindingPackageVersion = require('@ngrs/compiler-linux-loong64-gnu/package.json').version
425
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
425
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
427
427
  }
428
428
  return binding
429
429
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('@ngrs/compiler-linux-riscv64-musl')
442
442
  const bindingPackageVersion = require('@ngrs/compiler-linux-riscv64-musl/package.json').version
443
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('@ngrs/compiler-linux-riscv64-gnu')
458
458
  const bindingPackageVersion = require('@ngrs/compiler-linux-riscv64-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -473,8 +473,8 @@ function requireNative() {
473
473
  try {
474
474
  const binding = require('@ngrs/compiler-linux-ppc64-gnu')
475
475
  const bindingPackageVersion = require('@ngrs/compiler-linux-ppc64-gnu/package.json').version
476
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
477
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
476
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
477
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
478
478
  }
479
479
  return binding
480
480
  } catch (e) {
@@ -489,8 +489,8 @@ function requireNative() {
489
489
  try {
490
490
  const binding = require('@ngrs/compiler-linux-s390x-gnu')
491
491
  const bindingPackageVersion = require('@ngrs/compiler-linux-s390x-gnu/package.json').version
492
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
493
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
492
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
493
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
494
494
  }
495
495
  return binding
496
496
  } catch (e) {
@@ -509,8 +509,8 @@ function requireNative() {
509
509
  try {
510
510
  const binding = require('@ngrs/compiler-openharmony-arm64')
511
511
  const bindingPackageVersion = require('@ngrs/compiler-openharmony-arm64/package.json').version
512
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
513
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
512
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
513
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
514
514
  }
515
515
  return binding
516
516
  } catch (e) {
@@ -525,8 +525,8 @@ function requireNative() {
525
525
  try {
526
526
  const binding = require('@ngrs/compiler-openharmony-x64')
527
527
  const bindingPackageVersion = require('@ngrs/compiler-openharmony-x64/package.json').version
528
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
529
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
528
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
529
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
530
530
  }
531
531
  return binding
532
532
  } catch (e) {
@@ -541,8 +541,8 @@ function requireNative() {
541
541
  try {
542
542
  const binding = require('@ngrs/compiler-openharmony-arm')
543
543
  const bindingPackageVersion = require('@ngrs/compiler-openharmony-arm/package.json').version
544
- if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
545
- throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
544
+ if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
545
+ throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
546
546
  }
547
547
  return binding
548
548
  } catch (e) {
@@ -683,8 +683,8 @@ if (!nativeBinding || forceWasi) {
683
683
  if (!candidateFailed) {
684
684
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
685
685
  const bindingPackageVersion = require('@ngrs/compiler-wasm32-wasi/package.json').version
686
- if (bindingPackageVersion !== '0.2.0') {
687
- throw new Error(`WASI binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
686
+ if (bindingPackageVersion !== '0.3.0') {
687
+ throw new Error(`WASI binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
688
688
  }
689
689
  }
690
690
  wasiBinding = require('@ngrs/compiler-wasm32-wasi')
@@ -835,7 +835,7 @@ function __napiStampBindingTarget(exportsObject, target) {
835
835
  // linked import resolves to `undefined`.
836
836
  module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget)
837
837
  module.exports = nativeBinding
838
- module.exports.NapiProjectCompiler = nativeBinding.NapiProjectCompiler
838
+ module.exports.NgrsProgram = nativeBinding.NgrsProgram
839
839
  module.exports.compileProjectOnDisk = nativeBinding.compileProjectOnDisk
840
840
  module.exports.compileSass = nativeBinding.compileSass
841
841
  module.exports.compileSassString = nativeBinding.compileSassString
@@ -845,6 +845,8 @@ module.exports.extractI18nForProject = nativeBinding.extractI18nForProject
845
845
  module.exports.extractI18nFromTemplate = nativeBinding.extractI18nFromTemplate
846
846
  module.exports.linkFile = nativeBinding.linkFile
847
847
  module.exports.linkFileAsync = nativeBinding.linkFileAsync
848
+ module.exports.linkFiles = nativeBinding.linkFiles
849
+ module.exports.linkFilesAsync = nativeBinding.linkFilesAsync
848
850
  module.exports.needsLinking = nativeBinding.needsLinking
849
851
  module.exports.shimStyles = nativeBinding.shimStyles
850
852
  module.exports.transformAngularFiles = nativeBinding.transformAngularFiles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrs/compiler",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Native Rust Angular compiler, template type-checker, Sass preprocessor & Ivy linker N-API bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -32,14 +32,14 @@
32
32
  ]
33
33
  },
34
34
  "optionalDependencies": {
35
- "@ngrs/darwin-arm64": "0.2.0",
36
- "@ngrs/darwin-x64": "0.2.0",
37
- "@ngrs/linux-arm64-gnu": "0.2.0",
38
- "@ngrs/linux-arm64-musl": "0.2.0",
39
- "@ngrs/linux-x64-gnu": "0.2.0",
40
- "@ngrs/linux-x64-musl": "0.2.0",
41
- "@ngrs/win32-arm64": "0.2.0",
42
- "@ngrs/win32-x64": "0.2.0"
35
+ "@ngrs/darwin-arm64": "0.3.0",
36
+ "@ngrs/darwin-x64": "0.3.0",
37
+ "@ngrs/linux-arm64-gnu": "0.3.0",
38
+ "@ngrs/linux-arm64-musl": "0.3.0",
39
+ "@ngrs/linux-x64-gnu": "0.3.0",
40
+ "@ngrs/linux-x64-musl": "0.3.0",
41
+ "@ngrs/win32-arm64": "0.3.0",
42
+ "@ngrs/win32-x64": "0.3.0"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "node ../scripts/build-napi.mjs --release",