Avatar for the oxc-project user
oxc-project
oxc-resolver
BlogDocsChangelog

Branches performance

Pull requests

fix(napi): replace panics with error returns to prevent WASM traps#1055
last run
2 days ago
fix(napi): replace panics with error returns to prevent WASM traps Convert `panic!()` and `unwrap()` calls in the NAPI binding layer to proper `napi::Result` error returns. This prevents unrecoverable WASM `unreachable` traps when invalid options are provided, particularly in WebContainer/WASI environments where `panic = "abort"`. - Change `From` impls to `TryFrom` for `Restriction` and `TsconfigOptions` - Update `ResolverFactory::new` and `clone_with_options` to return `napi::Result` - Replace `unwrap()` with `unwrap_or_default()` in tracing init - Bump minimum napi version from 3 to 3.8 Closes #635 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 days ago
a0b7165
fix/napi-remove-panics
CodSpeed Performance Gauge
0%
chore(deps): update dependency rust to v1.94.0
2 days ago
b955523
renovate/rust-toolchain
CodSpeed Performance Gauge
+8%
chore: satisfy clippy map_unwrap_or lint
3 days ago
2180037
fix/resolve-file-root-invalid-input
CodSpeed Performance Gauge
-3%
fix(dts): add .json fallback for json extension substitution Match TypeScript's `tryAddingExtensions` behavior for `.json` imports: after trying `.d.json.ts`, also try the `.json` extension itself. Without this, `import "./data.json"` would only find `./data.d.json.ts` and miss the actual `./data.json` file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 days ago
b9e95cb
fix/dts-json-fallback
CodSpeed Performance Gauge
+4%
Ā© 2026 CodSpeed Technology
Home Terms Privacy Docs