brustjs 0.1.32-alpha → 0.1.33-alpha

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.
@@ -82,7 +82,6 @@ export default function AddToTeamButton({ data }: { data: AddTeamProps }) {
82
82
  <Plus
83
83
  size={16}
84
84
  className="pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-white"
85
- isr={{ key: 'LcIconPlus' }}
86
85
  />
87
86
  <button
88
87
  type="button"
@@ -69,7 +69,7 @@ export default function AppLayout({
69
69
  className="inline-flex items-center text-slate-400 transition-colors hover:text-slate-600 dark:hover:text-slate-200"
70
70
  aria-label="brust on GitHub"
71
71
  >
72
- <GitFork size={16} isr={{ key: 'LcIconGitFork' }} />
72
+ <GitFork size={16} />
73
73
  </a>
74
74
  </footer>
75
75
 
@@ -58,7 +58,6 @@ export default function DexFilter({ items }: { items: Card[] }) {
58
58
  <Search
59
59
  size={16}
60
60
  className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"
61
- isr={{ key: 'LcIconSearchField' }}
62
61
  />
63
62
  <input
64
63
  type="search"
@@ -74,7 +73,7 @@ export default function DexFilter({ items }: { items: Card[] }) {
74
73
  x-on-click="setDex"
75
74
  className="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-100 dark:text-slate-200 dark:hover:bg-slate-800"
76
75
  >
77
- <Hash size={14} isr={{ key: 'LcIconHash14' }} />
76
+ <Hash size={14} />
78
77
  Dex#
79
78
  </button>
80
79
  <button
@@ -82,7 +81,7 @@ export default function DexFilter({ items }: { items: Card[] }) {
82
81
  x-on-click="setAz"
83
82
  className="inline-flex items-center gap-1.5 border-l border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-100 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800"
84
83
  >
85
- <ArrowDownAZ size={14} isr={{ key: 'LcIconArrowDownAZ14' }} />
84
+ <ArrowDownAZ size={14} />
86
85
  A–Z
87
86
  </button>
88
87
  </div>
@@ -43,7 +43,7 @@ export default function HeroSearch() {
43
43
  type="submit"
44
44
  className="inline-flex items-center gap-1.5 rounded-xl bg-brand-500 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-brand-600"
45
45
  >
46
- <Search size={16} isr={{ key: 'LcIconSearch' }} />
46
+ <Search size={16} />
47
47
  Search
48
48
  </button>
49
49
  </form>
@@ -51,10 +51,10 @@ export default function ThemeToggle() {
51
51
  className="inline-flex items-center gap-1.5 rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-100 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800"
52
52
  >
53
53
  <span x-show="isDark" className="inline-flex">
54
- <Sun size={16} isr={{ key: 'LcIconSun' }} />
54
+ <Sun size={16} />
55
55
  </span>
56
56
  <span x-show="isLight" className="inline-flex">
57
- <Moon size={16} isr={{ key: 'LcIconMoon' }} />
57
+ <Moon size={16} />
58
58
  </span>
59
59
  <span x-text="label">Dark</span>
60
60
  </button>
@@ -40,12 +40,12 @@ export default function DetailPage({
40
40
  <a href="/" className="no-underline hover:text-slate-600 dark:hover:text-slate-200">
41
41
  PokéDex
42
42
  </a>
43
- <ChevronRight size={14} isr={{ key: 'LcIconChevronRight14' }} />
43
+ <ChevronRight size={14} />
44
44
  <Breadcrumb native crumb={displayName} />
45
45
  </div>
46
46
  {notFound ? (
47
47
  <div className="mx-auto max-w-md rounded-3xl border border-slate-200 bg-white px-6 py-16 text-center shadow-sm dark:border-slate-800 dark:bg-slate-900">
48
- <SearchX size={48} className="mx-auto text-brand-500" isr={{ key: 'LcIconSearchX48' }} />
48
+ <SearchX size={48} className="mx-auto text-brand-500" />
49
49
  <div className="mt-3 text-6xl font-black tracking-tighter text-brand-500">404</div>
50
50
  <h1 className="mt-4 text-2xl font-extrabold tracking-tight text-slate-900 dark:text-white">
51
51
  No Pokémon named “{displayName}”
@@ -57,7 +57,7 @@ export default function DetailPage({
57
57
  href="/pokedex"
58
58
  className="mt-6 inline-flex items-center gap-2 rounded-xl bg-brand-500 px-5 py-2.5 text-sm font-semibold text-white no-underline shadow-sm transition-colors hover:bg-brand-600"
59
59
  >
60
- <ArrowLeft size={16} isr={{ key: 'LcIconArrowLeft' }} />
60
+ <ArrowLeft size={16} />
61
61
  Back to Pokédex
62
62
  </a>
63
63
  </div>
@@ -105,7 +105,7 @@ export default function DetailPage({
105
105
  {heightLabel}
106
106
  </div>
107
107
  <div className="flex items-center justify-center gap-1 text-xs font-medium uppercase tracking-wide text-slate-400">
108
- <Ruler size={12} isr={{ key: 'LcIconRuler12' }} />
108
+ <Ruler size={12} />
109
109
  Height
110
110
  </div>
111
111
  </div>
@@ -114,7 +114,7 @@ export default function DetailPage({
114
114
  {weightLabel}
115
115
  </div>
116
116
  <div className="flex items-center justify-center gap-1 text-xs font-medium uppercase tracking-wide text-slate-400">
117
- <Weight size={12} isr={{ key: 'LcIconWeight12' }} />
117
+ <Weight size={12} />
118
118
  Weight
119
119
  </div>
120
120
  </div>
@@ -153,7 +153,7 @@ export default function DetailPage({
153
153
  Base stats
154
154
  </h2>
155
155
  <span className="inline-flex items-center gap-1 rounded-full bg-slate-100 px-3 py-1 text-xs font-bold tabular-nums text-slate-500 dark:bg-slate-800 dark:text-slate-300">
156
- <Sigma size={12} isr={{ key: 'LcIconSigma12' }} />
156
+ <Sigma size={12} />
157
157
  {statTotal}
158
158
  </span>
159
159
  </div>
@@ -12,7 +12,7 @@ import {
12
12
  Component,
13
13
  Cookie,
14
14
  Database,
15
- Layout,
15
+ LayoutDashboard,
16
16
  List,
17
17
  Navigation,
18
18
  Server,
@@ -43,13 +43,13 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
43
43
  className="inline-flex items-center gap-2 rounded-xl bg-white px-5 py-2.5 text-sm font-semibold text-brand-700 no-underline shadow-sm transition-transform hover:-translate-y-0.5"
44
44
  >
45
45
  Browse Pokédex
46
- <ArrowRight size={16} isr={{ key: 'LcIconArrowRight' }} />
46
+ <ArrowRight size={16} />
47
47
  </a>
48
48
  <a
49
49
  href="/type-chart"
50
50
  className="inline-flex items-center gap-2 rounded-xl bg-white/15 px-5 py-2.5 text-sm font-semibold text-white no-underline ring-1 ring-white/30 transition-colors hover:bg-white/25"
51
51
  >
52
- <Table size={16} isr={{ key: 'LcIconTable' }} />
52
+ <Table size={16} />
53
53
  Type chart
54
54
  </a>
55
55
  </div>
@@ -65,7 +65,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
65
65
  className="inline-flex items-center gap-1 text-sm font-semibold text-brand-600 no-underline hover:underline dark:text-brand-50"
66
66
  >
67
67
  View all
68
- <ArrowRight size={14} isr={{ key: 'LcIconArrowRight14' }} />
68
+ <ArrowRight size={14} />
69
69
  </a>
70
70
  </div>
71
71
  <div className="grid grid-cols-2 gap-3 sm:grid-cols-4">
@@ -126,7 +126,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
126
126
  className="inline-flex shrink-0 items-center gap-2 rounded-xl bg-brand-500 px-5 py-2.5 text-sm font-semibold text-white no-underline shadow-sm transition-colors hover:bg-brand-600"
127
127
  >
128
128
  Start picking
129
- <ArrowRight size={16} isr={{ key: 'LcIconArrowRight' }} />
129
+ <ArrowRight size={16} />
130
130
  </a>
131
131
  </div>
132
132
  </section>
@@ -142,7 +142,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
142
142
  <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
143
143
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
144
144
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
145
- <Server size={16} className="text-brand-500" isr={{ key: 'LcIconServer' }} />
145
+ <Server size={16} className="text-brand-500" />
146
146
  Native SSR routes
147
147
  </div>
148
148
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -151,7 +151,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
151
151
  </div>
152
152
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
153
153
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
154
- <Database size={16} className="text-brand-500" isr={{ key: 'LcIconDatabase' }} />
154
+ <Database size={16} className="text-brand-500" />
155
155
  Loaders + ISR
156
156
  </div>
157
157
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -160,7 +160,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
160
160
  </div>
161
161
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
162
162
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
163
- <Cookie size={16} className="text-brand-500" isr={{ key: 'LcIconCookie' }} />
163
+ <Cookie size={16} className="text-brand-500" />
164
164
  Cookies / request-context
165
165
  </div>
166
166
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -169,7 +169,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
169
169
  </div>
170
170
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
171
171
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
172
- <Box size={16} className="text-brand-500" isr={{ key: 'LcIconBox' }} />
172
+ <Box size={16} className="text-brand-500" />
173
173
  defineStore
174
174
  </div>
175
175
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -178,7 +178,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
178
178
  </div>
179
179
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
180
180
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
181
- <Navigation size={16} className="text-brand-500" isr={{ key: 'LcIconNavigation' }} />
181
+ <Navigation size={16} className="text-brand-500" />
182
182
  Client navigation
183
183
  </div>
184
184
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -188,7 +188,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
188
188
  </div>
189
189
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
190
190
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
191
- <Component size={16} className="text-brand-500" isr={{ key: 'LcIconComponent' }} />
191
+ <Component size={16} className="text-brand-500" />
192
192
  React islands
193
193
  </div>
194
194
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -197,7 +197,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
197
197
  </div>
198
198
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
199
199
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
200
- <List size={16} className="text-brand-500" isr={{ key: 'LcIconList' }} />
200
+ <List size={16} className="text-brand-500" />
201
201
  Keyed x-for
202
202
  </div>
203
203
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -206,7 +206,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
206
206
  </div>
207
207
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
208
208
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
209
- <Layout size={16} className="text-brand-500" isr={{ key: 'LcIconLayout' }} />
209
+ <LayoutDashboard size={16} className="text-brand-500" />
210
210
  Nested Outlet layout
211
211
  </div>
212
212
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
@@ -215,7 +215,7 @@ export default function HomePage({ featured, typeTiles }: HomeData) {
215
215
  </div>
216
216
  <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-900">
217
217
  <div className="flex items-center gap-2 text-sm font-bold text-slate-900 dark:text-white">
218
- <Zap size={16} className="text-brand-500" isr={{ key: 'LcIconZap' }} />
218
+ <Zap size={16} className="text-brand-500" />
219
219
  Treaty actions
220
220
  </div>
221
221
  <div className="mt-1 text-sm text-slate-500 dark:text-slate-400">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brustjs",
3
- "version": "0.1.32-alpha",
3
+ "version": "0.1.33-alpha",
4
4
  "description": "Bun + Rust SSR framework — React on the server, Rust everywhere else (napi cdylib + per-worker SharedArrayBuffer).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,12 +40,12 @@
40
40
  "typescript": "^6.0.3"
41
41
  },
42
42
  "optionalDependencies": {
43
- "brustjs-darwin-x64": "0.1.32-alpha",
44
- "brustjs-darwin-arm64": "0.1.32-alpha",
45
- "brustjs-linux-x64-gnu": "0.1.32-alpha",
46
- "brustjs-linux-arm64-gnu": "0.1.32-alpha",
47
- "brustjs-linux-x64-musl": "0.1.32-alpha",
48
- "brustjs-linux-arm64-musl": "0.1.32-alpha"
43
+ "brustjs-darwin-x64": "0.1.33-alpha",
44
+ "brustjs-darwin-arm64": "0.1.33-alpha",
45
+ "brustjs-linux-x64-gnu": "0.1.33-alpha",
46
+ "brustjs-linux-arm64-gnu": "0.1.33-alpha",
47
+ "brustjs-linux-x64-musl": "0.1.33-alpha",
48
+ "brustjs-linux-arm64-musl": "0.1.33-alpha"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": "^19.2.6",
@@ -481,6 +481,7 @@ export async function emitNativeTemplates(opts: NativeRouteEmitOpts): Promise<vo
481
481
  source: string,
482
482
  path: string,
483
483
  componentSources?: Record<string, string>,
484
+ lucideIcons?: Record<string, string>,
484
485
  ) => { template: string; islandsJson: string; warnings?: string[] })
485
486
  | null = null
486
487
  if (nativeRoutes.length > 0) {
@@ -560,9 +561,20 @@ export async function emitNativeTemplates(opts: NativeRouteEmitOpts): Promise<vo
560
561
  ;({ sources, mergedImports } = gatherComponentSources(sourcePath))
561
562
  }
562
563
 
564
+ // Lucide icons live in component files (inlined via <Comp native/>), so scan the
565
+ // route file plus every LOCAL component source path for lucide-react imports.
566
+ const lucidePaths = new Set<string>()
567
+ // route file only if it's a real on-disk file (synthetic __chain.tsx is not)
568
+ if (existsSync(routeSourcePath)) lucidePaths.add(routeSourcePath)
569
+ for (const imp of mergedImports.values()) {
570
+ if (!imp.bare && typeof imp.spec === 'string') lucidePaths.add(imp.spec)
571
+ }
572
+ const lucideIcons: Record<string, string> = {}
573
+ for (const p of lucidePaths) Object.assign(lucideIcons, await extractLucideIcons(p))
574
+
563
575
  let compiled: { template: string; islandsJson: string; warnings?: string[] }
564
576
  try {
565
- compiled = compileJsx!(routeSource, routeSourcePath, sources)
577
+ compiled = compileJsx!(routeSource, routeSourcePath, sources, lucideIcons)
566
578
  } catch (e) {
567
579
  throw new Error(
568
580
  `native route "${name}" failed to compile (${routeSourcePath}):\n${String(e)}`,
@@ -734,6 +746,50 @@ export function scanImportRefs(file: string): Map<string, ResolvedImport> {
734
746
  return map
735
747
  }
736
748
 
749
+ /** Convert a PascalCase/camelCase identifier to kebab-case
750
+ * (`ChevronRight` → `chevron-right`). Used to map a lucide icon's exported
751
+ * name to its per-icon ESM module filename. */
752
+ function toKebabCase(s: string): string {
753
+ return s.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase()
754
+ }
755
+
756
+ /** Extract static SVG node data for every `lucide-react` icon imported by
757
+ * `file`, keyed by its in-source local name.
758
+ *
759
+ * For each lucide import (`entry.bare && entry.spec === 'lucide-react'`), the
760
+ * icon's exported name (`imported` for named/aliased, the local name for a
761
+ * default import) is kebab-cased to locate `lucide-react/dist/esm/icons/
762
+ * <kebab>.mjs`, whose `__iconNode` array is reshaped into the JSON the Rust
763
+ * compiler deserializes: `{ cls, node: [[tag, [[attr,val],…]], …] }`. The
764
+ * lucide-internal `key` attr is stripped and all attr values are coerced to
765
+ * strings. An unresolvable icon name is silently omitted. */
766
+ export async function extractLucideIcons(file: string): Promise<Record<string, string>> {
767
+ const refs = scanImportRefs(file)
768
+ const out: Record<string, string> = {}
769
+ for (const [local, entry] of refs) {
770
+ if (!entry.bare || entry.spec !== 'lucide-react') continue
771
+ const pascal = entry.imported ?? local // default import → local name
772
+ const kebab = toKebabCase(pascal)
773
+ try {
774
+ const mod = await import(`lucide-react/dist/esm/icons/${kebab}.mjs`)
775
+ const iconNode = mod.__iconNode
776
+ if (!Array.isArray(iconNode)) continue
777
+ const node = iconNode.map(([tag, attrs]: [string, Record<string, unknown>]) => {
778
+ const pairs: [string, string][] = []
779
+ for (const [k, v] of Object.entries(attrs)) {
780
+ if (k === 'key') continue
781
+ pairs.push([k, String(v)])
782
+ }
783
+ return [tag, pairs]
784
+ })
785
+ out[local] = JSON.stringify({ cls: `lucide lucide-${kebab}`, node })
786
+ } catch {
787
+ // unresolvable icon name → omit (graceful)
788
+ }
789
+ }
790
+ return out
791
+ }
792
+
737
793
  /** Scan the entry file's `import Name from './path'` declarations and build a
738
794
  * map of localName -> resolved absolute path (DEFAULT-LOCAL only — package
739
795
  * specifiers skipped). Extension resolution tries `.tsx`, `.ts`, `/index.tsx`,
@@ -7,7 +7,7 @@ export interface CachedIslandJs {
7
7
  props: string
8
8
  }
9
9
 
10
- export declare function compileJsx(source: string, path: string, componentSources?: Record<string, string> | undefined | null): NapiCompiledJsx
10
+ export declare function compileJsx(source: string, path: string, componentSources?: Record<string, string> | undefined | null, lucideIcons?: Record<string, string> | undefined | null): NapiCompiledJsx
11
11
 
12
12
  export declare function configureCache(maxEntries: number): NapiResult<undefined>
13
13
 
package/runtime/index.js CHANGED
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('brustjs-android-arm64')
79
79
  const bindingPackageVersion = require('brustjs-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('brustjs-android-arm-eabi')
95
95
  const bindingPackageVersion = require('brustjs-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -114,8 +114,8 @@ function requireNative() {
114
114
  try {
115
115
  const binding = require('brustjs-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('brustjs-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('brustjs-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('brustjs-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('brustjs-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('brustjs-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.1.32-alpha' && 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.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.1.33-alpha' && 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.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('brustjs-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('brustjs-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -182,8 +182,8 @@ function requireNative() {
182
182
  try {
183
183
  const binding = require('brustjs-darwin-universal')
184
184
  const bindingPackageVersion = require('brustjs-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('brustjs-darwin-x64')
200
200
  const bindingPackageVersion = require('brustjs-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('brustjs-darwin-arm64')
216
216
  const bindingPackageVersion = require('brustjs-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('brustjs-freebsd-x64')
236
236
  const bindingPackageVersion = require('brustjs-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('brustjs-freebsd-arm64')
252
252
  const bindingPackageVersion = require('brustjs-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -271,8 +271,8 @@ function requireNative() {
271
271
  try {
272
272
  const binding = require('brustjs-linux-x64-musl')
273
273
  const bindingPackageVersion = require('brustjs-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -287,8 +287,8 @@ function requireNative() {
287
287
  try {
288
288
  const binding = require('brustjs-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('brustjs-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -305,8 +305,8 @@ function requireNative() {
305
305
  try {
306
306
  const binding = require('brustjs-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('brustjs-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -321,8 +321,8 @@ function requireNative() {
321
321
  try {
322
322
  const binding = require('brustjs-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('brustjs-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -339,8 +339,8 @@ function requireNative() {
339
339
  try {
340
340
  const binding = require('brustjs-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('brustjs-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -355,8 +355,8 @@ function requireNative() {
355
355
  try {
356
356
  const binding = require('brustjs-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('brustjs-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -373,8 +373,8 @@ function requireNative() {
373
373
  try {
374
374
  const binding = require('brustjs-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('brustjs-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -389,8 +389,8 @@ function requireNative() {
389
389
  try {
390
390
  const binding = require('brustjs-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('brustjs-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -407,8 +407,8 @@ function requireNative() {
407
407
  try {
408
408
  const binding = require('brustjs-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('brustjs-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -423,8 +423,8 @@ function requireNative() {
423
423
  try {
424
424
  const binding = require('brustjs-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('brustjs-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('brustjs-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('brustjs-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '0.1.32-alpha' && 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.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.1.33-alpha' && 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.1.33-alpha 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('brustjs-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('brustjs-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.1.32-alpha' && 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.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.1.33-alpha' && 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.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('brustjs-openharmony-arm64')
478
478
  const bindingPackageVersion = require('brustjs-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('brustjs-openharmony-x64')
494
494
  const bindingPackageVersion = require('brustjs-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('brustjs-openharmony-arm')
510
510
  const bindingPackageVersion = require('brustjs-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '0.1.32-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 0.1.32-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.1.33-alpha' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 0.1.33-alpha but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {