oxc-transform 0.147.0 → 0.149.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 (2) hide show
  1. package/index.js +54 -55
  2. package/package.json +23 -23
package/index.js CHANGED
@@ -5,7 +5,6 @@
5
5
 
6
6
  import { createRequire } from 'module'
7
7
  const require = createRequire(import.meta.url)
8
- const __dirname = new URL('.', import.meta.url).pathname
9
8
 
10
9
  const { readFileSync } = require('fs')
11
10
  let nativeBinding = null
@@ -81,8 +80,8 @@ function requireNative() {
81
80
  try {
82
81
  const binding = require('@oxc-transform/binding-android-arm64')
83
82
  const bindingPackageVersion = require('@oxc-transform/binding-android-arm64/package.json').version
84
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
85
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
83
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
84
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
86
85
  }
87
86
  return binding
88
87
  } catch (e) {
@@ -97,8 +96,8 @@ function requireNative() {
97
96
  try {
98
97
  const binding = require('@oxc-transform/binding-android-arm-eabi')
99
98
  const bindingPackageVersion = require('@oxc-transform/binding-android-arm-eabi/package.json').version
100
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
99
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
100
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
102
101
  }
103
102
  return binding
104
103
  } catch (e) {
@@ -118,8 +117,8 @@ function requireNative() {
118
117
  try {
119
118
  const binding = require('@oxc-transform/binding-win32-x64-gnu')
120
119
  const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-gnu/package.json').version
121
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
122
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
120
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
121
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
123
122
  }
124
123
  return binding
125
124
  } catch (e) {
@@ -134,8 +133,8 @@ function requireNative() {
134
133
  try {
135
134
  const binding = require('@oxc-transform/binding-win32-x64-msvc')
136
135
  const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-msvc/package.json').version
137
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
136
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
137
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
139
138
  }
140
139
  return binding
141
140
  } catch (e) {
@@ -151,8 +150,8 @@ function requireNative() {
151
150
  try {
152
151
  const binding = require('@oxc-transform/binding-win32-ia32-msvc')
153
152
  const bindingPackageVersion = require('@oxc-transform/binding-win32-ia32-msvc/package.json').version
154
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
155
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
153
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
154
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
156
155
  }
157
156
  return binding
158
157
  } catch (e) {
@@ -167,8 +166,8 @@ function requireNative() {
167
166
  try {
168
167
  const binding = require('@oxc-transform/binding-win32-arm64-msvc')
169
168
  const bindingPackageVersion = require('@oxc-transform/binding-win32-arm64-msvc/package.json').version
170
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
169
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
170
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
172
171
  }
173
172
  return binding
174
173
  } catch (e) {
@@ -186,8 +185,8 @@ function requireNative() {
186
185
  try {
187
186
  const binding = require('@oxc-transform/binding-darwin-universal')
188
187
  const bindingPackageVersion = require('@oxc-transform/binding-darwin-universal/package.json').version
189
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
190
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
188
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
189
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
191
190
  }
192
191
  return binding
193
192
  } catch (e) {
@@ -202,8 +201,8 @@ function requireNative() {
202
201
  try {
203
202
  const binding = require('@oxc-transform/binding-darwin-x64')
204
203
  const bindingPackageVersion = require('@oxc-transform/binding-darwin-x64/package.json').version
205
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
204
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
205
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
207
206
  }
208
207
  return binding
209
208
  } catch (e) {
@@ -218,8 +217,8 @@ function requireNative() {
218
217
  try {
219
218
  const binding = require('@oxc-transform/binding-darwin-arm64')
220
219
  const bindingPackageVersion = require('@oxc-transform/binding-darwin-arm64/package.json').version
221
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
220
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
221
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
223
222
  }
224
223
  return binding
225
224
  } catch (e) {
@@ -238,8 +237,8 @@ function requireNative() {
238
237
  try {
239
238
  const binding = require('@oxc-transform/binding-freebsd-x64')
240
239
  const bindingPackageVersion = require('@oxc-transform/binding-freebsd-x64/package.json').version
241
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
240
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
241
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
243
242
  }
244
243
  return binding
245
244
  } catch (e) {
@@ -254,8 +253,8 @@ function requireNative() {
254
253
  try {
255
254
  const binding = require('@oxc-transform/binding-freebsd-arm64')
256
255
  const bindingPackageVersion = require('@oxc-transform/binding-freebsd-arm64/package.json').version
257
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
256
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
257
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
259
258
  }
260
259
  return binding
261
260
  } catch (e) {
@@ -275,8 +274,8 @@ function requireNative() {
275
274
  try {
276
275
  const binding = require('@oxc-transform/binding-linux-x64-musl')
277
276
  const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-musl/package.json').version
278
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
279
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
277
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
278
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
280
279
  }
281
280
  return binding
282
281
  } catch (e) {
@@ -291,8 +290,8 @@ function requireNative() {
291
290
  try {
292
291
  const binding = require('@oxc-transform/binding-linux-x64-gnu')
293
292
  const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-gnu/package.json').version
294
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
295
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
293
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
294
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
296
295
  }
297
296
  return binding
298
297
  } catch (e) {
@@ -309,8 +308,8 @@ function requireNative() {
309
308
  try {
310
309
  const binding = require('@oxc-transform/binding-linux-arm64-musl')
311
310
  const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-musl/package.json').version
312
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
313
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
311
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
312
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
314
313
  }
315
314
  return binding
316
315
  } catch (e) {
@@ -325,8 +324,8 @@ function requireNative() {
325
324
  try {
326
325
  const binding = require('@oxc-transform/binding-linux-arm64-gnu')
327
326
  const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-gnu/package.json').version
328
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
327
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
328
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
330
329
  }
331
330
  return binding
332
331
  } catch (e) {
@@ -343,8 +342,8 @@ function requireNative() {
343
342
  try {
344
343
  const binding = require('@oxc-transform/binding-linux-arm-musleabihf')
345
344
  const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-musleabihf/package.json').version
346
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
347
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
345
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
346
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
348
347
  }
349
348
  return binding
350
349
  } catch (e) {
@@ -359,8 +358,8 @@ function requireNative() {
359
358
  try {
360
359
  const binding = require('@oxc-transform/binding-linux-arm-gnueabihf')
361
360
  const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-gnueabihf/package.json').version
362
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
363
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
361
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
362
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
364
363
  }
365
364
  return binding
366
365
  } catch (e) {
@@ -377,8 +376,8 @@ function requireNative() {
377
376
  try {
378
377
  const binding = require('@oxc-transform/binding-linux-loong64-musl')
379
378
  const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-musl/package.json').version
380
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
381
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
379
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
380
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
382
381
  }
383
382
  return binding
384
383
  } catch (e) {
@@ -393,8 +392,8 @@ function requireNative() {
393
392
  try {
394
393
  const binding = require('@oxc-transform/binding-linux-loong64-gnu')
395
394
  const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-gnu/package.json').version
396
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
397
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
395
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
396
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
398
397
  }
399
398
  return binding
400
399
  } catch (e) {
@@ -411,8 +410,8 @@ function requireNative() {
411
410
  try {
412
411
  const binding = require('@oxc-transform/binding-linux-riscv64-musl')
413
412
  const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-musl/package.json').version
414
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
415
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
413
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
414
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
416
415
  }
417
416
  return binding
418
417
  } catch (e) {
@@ -427,8 +426,8 @@ function requireNative() {
427
426
  try {
428
427
  const binding = require('@oxc-transform/binding-linux-riscv64-gnu')
429
428
  const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-gnu/package.json').version
430
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
431
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
429
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
430
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
432
431
  }
433
432
  return binding
434
433
  } catch (e) {
@@ -444,8 +443,8 @@ function requireNative() {
444
443
  try {
445
444
  const binding = require('@oxc-transform/binding-linux-ppc64-gnu')
446
445
  const bindingPackageVersion = require('@oxc-transform/binding-linux-ppc64-gnu/package.json').version
447
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
448
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
446
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
447
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
449
448
  }
450
449
  return binding
451
450
  } catch (e) {
@@ -460,8 +459,8 @@ function requireNative() {
460
459
  try {
461
460
  const binding = require('@oxc-transform/binding-linux-s390x-gnu')
462
461
  const bindingPackageVersion = require('@oxc-transform/binding-linux-s390x-gnu/package.json').version
463
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
464
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
462
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
463
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
465
464
  }
466
465
  return binding
467
466
  } catch (e) {
@@ -480,8 +479,8 @@ function requireNative() {
480
479
  try {
481
480
  const binding = require('@oxc-transform/binding-openharmony-arm64')
482
481
  const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm64/package.json').version
483
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
484
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
482
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
483
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
485
484
  }
486
485
  return binding
487
486
  } catch (e) {
@@ -496,8 +495,8 @@ function requireNative() {
496
495
  try {
497
496
  const binding = require('@oxc-transform/binding-openharmony-x64')
498
497
  const bindingPackageVersion = require('@oxc-transform/binding-openharmony-x64/package.json').version
499
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
500
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
498
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
499
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
501
500
  }
502
501
  return binding
503
502
  } catch (e) {
@@ -512,8 +511,8 @@ function requireNative() {
512
511
  try {
513
512
  const binding = require('@oxc-transform/binding-openharmony-arm')
514
513
  const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm/package.json').version
515
- if (bindingPackageVersion !== '0.147.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
- throw new Error(`Native binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
514
+ if (bindingPackageVersion !== '0.149.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
515
+ throw new Error(`Native binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
517
516
  }
518
517
  return binding
519
518
  } catch (e) {
@@ -652,8 +651,8 @@ if (!nativeBinding || forceWasi) {
652
651
  if (!candidateFailed) {
653
652
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
654
653
  const bindingPackageVersion = require('@oxc-transform/binding-wasm32-wasi/package.json').version
655
- if (bindingPackageVersion !== '0.147.0') {
656
- throw new Error(`WASI binding package version mismatch, expected 0.147.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
654
+ if (bindingPackageVersion !== '0.149.0') {
655
+ throw new Error(`WASI binding package version mismatch, expected 0.149.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
657
656
  }
658
657
  }
659
658
  wasiBinding = require('@oxc-transform/binding-wasm32-wasi')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxc-transform",
3
- "version": "0.147.0",
3
+ "version": "0.149.0",
4
4
  "description": "Oxc Transformer Node API",
5
5
  "keywords": [
6
6
  "babel",
@@ -22,7 +22,7 @@
22
22
  "directory": "napi/transform"
23
23
  },
24
24
  "funding": {
25
- "url": "https://github.com/sponsors/Boshen"
25
+ "url": "https://github.com/sponsors/oxc-project"
26
26
  },
27
27
  "files": [
28
28
  "browser.js",
@@ -40,10 +40,10 @@
40
40
  "devDependencies": {
41
41
  "@emnapi/core": "2.0.0-alpha.3",
42
42
  "@emnapi/runtime": "2.0.0-alpha.3",
43
- "@napi-rs/cli": "3.8.6",
43
+ "@napi-rs/cli": "3.9.0",
44
44
  "@types/node": "24.1.0",
45
45
  "publint": "0.3.24",
46
- "vitest": "4.1.11"
46
+ "vitest": "5.0.0"
47
47
  },
48
48
  "napi": {
49
49
  "binaryName": "transform",
@@ -80,25 +80,25 @@
80
80
  "node": "^20.19.0 || >=22.12.0"
81
81
  },
82
82
  "optionalDependencies": {
83
- "@oxc-transform/binding-darwin-arm64": "0.147.0",
84
- "@oxc-transform/binding-android-arm64": "0.147.0",
85
- "@oxc-transform/binding-win32-arm64-msvc": "0.147.0",
86
- "@oxc-transform/binding-linux-arm64-gnu": "0.147.0",
87
- "@oxc-transform/binding-linux-arm64-musl": "0.147.0",
88
- "@oxc-transform/binding-openharmony-arm64": "0.147.0",
89
- "@oxc-transform/binding-android-arm-eabi": "0.147.0",
90
- "@oxc-transform/binding-linux-arm-gnueabihf": "0.147.0",
91
- "@oxc-transform/binding-linux-arm-musleabihf": "0.147.0",
92
- "@oxc-transform/binding-win32-ia32-msvc": "0.147.0",
93
- "@oxc-transform/binding-linux-ppc64-gnu": "0.147.0",
94
- "@oxc-transform/binding-linux-riscv64-gnu": "0.147.0",
95
- "@oxc-transform/binding-linux-riscv64-musl": "0.147.0",
96
- "@oxc-transform/binding-linux-s390x-gnu": "0.147.0",
97
- "@oxc-transform/binding-darwin-x64": "0.147.0",
98
- "@oxc-transform/binding-win32-x64-msvc": "0.147.0",
99
- "@oxc-transform/binding-freebsd-x64": "0.147.0",
100
- "@oxc-transform/binding-linux-x64-gnu": "0.147.0",
101
- "@oxc-transform/binding-linux-x64-musl": "0.147.0"
83
+ "@oxc-transform/binding-darwin-arm64": "0.149.0",
84
+ "@oxc-transform/binding-android-arm64": "0.149.0",
85
+ "@oxc-transform/binding-win32-arm64-msvc": "0.149.0",
86
+ "@oxc-transform/binding-linux-arm64-gnu": "0.149.0",
87
+ "@oxc-transform/binding-linux-arm64-musl": "0.149.0",
88
+ "@oxc-transform/binding-openharmony-arm64": "0.149.0",
89
+ "@oxc-transform/binding-android-arm-eabi": "0.149.0",
90
+ "@oxc-transform/binding-linux-arm-gnueabihf": "0.149.0",
91
+ "@oxc-transform/binding-linux-arm-musleabihf": "0.149.0",
92
+ "@oxc-transform/binding-win32-ia32-msvc": "0.149.0",
93
+ "@oxc-transform/binding-linux-ppc64-gnu": "0.149.0",
94
+ "@oxc-transform/binding-linux-riscv64-gnu": "0.149.0",
95
+ "@oxc-transform/binding-linux-riscv64-musl": "0.149.0",
96
+ "@oxc-transform/binding-linux-s390x-gnu": "0.149.0",
97
+ "@oxc-transform/binding-darwin-x64": "0.149.0",
98
+ "@oxc-transform/binding-win32-x64-msvc": "0.149.0",
99
+ "@oxc-transform/binding-freebsd-x64": "0.149.0",
100
+ "@oxc-transform/binding-linux-x64-gnu": "0.149.0",
101
+ "@oxc-transform/binding-linux-x64-musl": "0.149.0"
102
102
  },
103
103
  "scripts": {
104
104
  "build-dev": "napi build --esm --platform",