From 4fb507b805a0b393cf912c8e6bfc6adac8ab93c3 Mon Sep 17 00:00:00 2001 From: "oxc-guard[bot]" <276638029+oxc-guard[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:32:09 +0000 Subject: [PATCH] chore: release v11.22.0 --- CHANGELOG.md | 31 +++++++++++++++ Cargo.lock | 4 +- Cargo.toml | 4 +- napi/Cargo.toml | 2 +- napi/index.js | 104 ++++++++++++++++++++++++------------------------ package.json | 2 +- 6 files changed, 89 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8ee2277..3cf3375d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [11.22.0](https://github.com/oxc-project/oxc-resolver/compare/v11.21.3...v11.22.0) - 2026-06-26 + +### 🚀 Features + +- *(file_system)* make FileSystemOs cheaply cloneable and Debug ([#1230](https://github.com/oxc-project/oxc-resolver/pull/1230)) (by @Boshen) + +### 🚜 Refactor + +- *(package-json)* dedupe simd/serde backends behind JSON traits ([#1229](https://github.com/oxc-project/oxc-resolver/pull/1229)) (by @Boshen) + +### 📚 Documentation + +- *(path)* trim verbose comments in normalize_with ([#1233](https://github.com/oxc-project/oxc-resolver/pull/1233)) (by @Boshen) + +### ⚡ Performance + +- reduce tsconfig paths binary size ([#1250](https://github.com/oxc-project/oxc-resolver/pull/1250)) (by @Boshen) +- avoid UTF-8 validation on alias and .d.ts resolve hot paths ([#1244](https://github.com/oxc-project/oxc-resolver/pull/1244)) (by @Boshen) +- *(alias)* skip UTF-8 validation of resolved path when no alias key matches ([#1240](https://github.com/oxc-project/oxc-resolver/pull/1240)) (by @Boshen) +- *(tsconfig)* reuse cached lstat to avoid redundant stat in get_tsconfig ([#1238](https://github.com/oxc-project/oxc-resolver/pull/1238)) (by @Boshen) +- *(resolve)* compute parent once in package.json scope walk ([#1235](https://github.com/oxc-project/oxc-resolver/pull/1235)) (by @Boshen) +- *(specifier)* SIMD fast-reject of specifiers without query/fragment ([#1234](https://github.com/oxc-project/oxc-resolver/pull/1234)) (by @Boshen) +- *(tsconfig)* cut allocations in glob ownership matching ([#1232](https://github.com/oxc-project/oxc-resolver/pull/1232)) (by @Boshen) +- *(path)* drop Chain in normalize_with ([#1231](https://github.com/oxc-project/oxc-resolver/pull/1231)) (by @Boshen) +- *(browser-field)* fast-reject non-matching keys before normalize ([#1227](https://github.com/oxc-project/oxc-resolver/pull/1227)) (by @Boshen) + +### Contributors + +* @Boshen +* @renovate[bot] + ## [11.21.3](https://github.com/oxc-project/oxc-resolver/compare/v11.21.2...v11.21.3) - 2026-06-18 ### 🐛 Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index 3745b84c..e0b976b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -785,7 +785,7 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "oxc_resolver" -version = "11.21.3" +version = "11.22.0" dependencies = [ "cfg-if", "compact_str", @@ -821,7 +821,7 @@ dependencies = [ [[package]] name = "oxc_resolver_napi" -version = "11.21.3" +version = "11.22.0" dependencies = [ "mimalloc-safe", "napi", diff --git a/Cargo.toml b/Cargo.toml index a6bc1f37..06668323 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,11 +16,11 @@ rust-version = "1.88.0" description = "ESM / CJS module resolution" [workspace.dependencies] -oxc_resolver = { version = "11.21.3", path = "." } +oxc_resolver = { version = "11.22.0", path = "." } [package] name = "oxc_resolver" -version = "11.21.3" +version = "11.22.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/Cargo.toml b/napi/Cargo.toml index 99811948..649c4b09 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_resolver_napi" -version = "11.21.3" +version = "11.22.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/index.js b/napi/index.js index 0806a533..1f7fedd9 100644 --- a/napi/index.js +++ b/napi/index.js @@ -77,8 +77,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-android-arm64') const bindingPackageVersion = require('@oxc-resolver/binding-android-arm64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -93,8 +93,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-android-arm-eabi') const bindingPackageVersion = require('@oxc-resolver/binding-android-arm-eabi/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -114,8 +114,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-win32-x64-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -130,8 +130,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-win32-x64-msvc') const bindingPackageVersion = require('@oxc-resolver/binding-win32-x64-msvc/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -147,8 +147,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-win32-ia32-msvc') const bindingPackageVersion = require('@oxc-resolver/binding-win32-ia32-msvc/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -163,8 +163,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-win32-arm64-msvc') const bindingPackageVersion = require('@oxc-resolver/binding-win32-arm64-msvc/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -182,8 +182,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-darwin-universal') const bindingPackageVersion = require('@oxc-resolver/binding-darwin-universal/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -198,8 +198,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-darwin-x64') const bindingPackageVersion = require('@oxc-resolver/binding-darwin-x64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -214,8 +214,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-darwin-arm64') const bindingPackageVersion = require('@oxc-resolver/binding-darwin-arm64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -234,8 +234,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-freebsd-x64') const bindingPackageVersion = require('@oxc-resolver/binding-freebsd-x64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -250,8 +250,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-freebsd-arm64') const bindingPackageVersion = require('@oxc-resolver/binding-freebsd-arm64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -271,8 +271,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-x64-musl') const bindingPackageVersion = require('@oxc-resolver/binding-linux-x64-musl/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -287,8 +287,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-x64-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -305,8 +305,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-arm64-musl') const bindingPackageVersion = require('@oxc-resolver/binding-linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -321,8 +321,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-arm64-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -339,8 +339,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-arm-musleabihf') const bindingPackageVersion = require('@oxc-resolver/binding-linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -355,8 +355,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-arm-gnueabihf') const bindingPackageVersion = require('@oxc-resolver/binding-linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -373,8 +373,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-loong64-musl') const bindingPackageVersion = require('@oxc-resolver/binding-linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -389,8 +389,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-loong64-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -407,8 +407,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-riscv64-musl') const bindingPackageVersion = require('@oxc-resolver/binding-linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -423,8 +423,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-riscv64-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -440,8 +440,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-ppc64-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -456,8 +456,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-linux-s390x-gnu') const bindingPackageVersion = require('@oxc-resolver/binding-linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -476,8 +476,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-openharmony-arm64') const bindingPackageVersion = require('@oxc-resolver/binding-openharmony-arm64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -492,8 +492,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-openharmony-x64') const bindingPackageVersion = require('@oxc-resolver/binding-openharmony-x64/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -508,8 +508,8 @@ function requireNative() { try { const binding = require('@oxc-resolver/binding-openharmony-arm') const bindingPackageVersion = require('@oxc-resolver/binding-openharmony-arm/package.json').version - if (bindingPackageVersion !== '11.21.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 11.21.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '11.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 11.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/package.json b/package.json index 30628206..a1c4582e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oxc-resolver", - "version": "11.21.3", + "version": "11.22.0", "description": "Oxc Resolver Node API", "homepage": "https://oxc.rs", "license": "MIT",