unrs-release-plz[bot] and GitHub
ea92aa1ff9
chore: release v1.12.2 ( #208 )
2026-05-19 10:00:27 +00:00
unrs-release-plz[bot] and GitHub
a43f02978c
chore: release v1.12.1 ( #205 )
2026-05-19 03:36:35 +00:00
757427ee43
chore: release v1.12.0 ( #203 )
...
Co-authored-by: JounQin <[email protected] >
2026-05-18 21:47:16 +08:00
JounQin
76f1ea665d
chore: don't publish unrs_resolver_napi
2026-05-18 21:19:19 +08:00
JounQin
6cfb0b02c7
Merge remote-tracking branch 'upstream/main' into chore/merge_upstream
2026-05-18 20:49:40 +08:00
2baa000fb7
chore(deps): update rust crates ( #1136 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [fancy-regex](https://redirect.github.com/fancy-regex/fancy-regex ) |
dependencies | minor | `^0.17.0` → `^0.18.0` |
| [fancy-regex](https://redirect.github.com/fancy-regex/fancy-regex ) |
dev-dependencies | minor | `^0.17.0` → `^0.18.0` |
|
[json-strip-comments](https://redirect.github.com/oxc-project/json-strip-comments )
| dependencies | patch | `3.1.0` → `3.1.1` |
| [mimalloc-safe](https://redirect.github.com/napi-rs/mimalloc-safe ) |
dependencies | patch | `0.1.56` → `0.1.61` |
---
### Release Notes
<details>
<summary>fancy-regex/fancy-regex (fancy-regex)</summary>
###
[`v0.18.0`](https://redirect.github.com/fancy-regex/fancy-regex/blob/HEAD/CHANGELOG.md#0180---2026-04-24 )
[Compare
Source](https://redirect.github.com/fancy-regex/fancy-regex/compare/0.17.0...0.18.0 )
##### Added
- Add support for `\N` to mean any character except newline, for
Oniguruma compatibility
([#​206](https://redirect.github.com/fancy-regex/fancy-regex/issues/206 ))
- Add support for `(*FAIL)` backtracking control verb
([#​210](https://redirect.github.com/fancy-regex/fancy-regex/issues/210 ))
- Add support for more `\p{...}` and `\P{...}` aliases, for Oniguruma
compatibility
([#​207](https://redirect.github.com/fancy-regex/fancy-regex/issues/207 ))
- Add support for word boundaries and zero-length fancy patterns inside
variable lookbehinds (at top level)
([#​216](https://redirect.github.com/fancy-regex/fancy-regex/issues/216 ))
- Add support for `\R` to mean general newline, matching all common line
break characters, treating `\r\n` atomically
([#​220](https://redirect.github.com/fancy-regex/fancy-regex/issues/220 ))
- Add support for the regex crate's `(?R)` CRLF mode flag
([#​238](https://redirect.github.com/fancy-regex/fancy-regex/issues/238 ))
- Add support for subroutine calls (including recursion up to 20 levels
deep, matching Oniguruma behavior) `\g<1>`
([#​230](https://redirect.github.com/fancy-regex/fancy-regex/issues/230 ))
- Add support for Oniguruma's absent repeater `(?~abc)`
([#​233](https://redirect.github.com/fancy-regex/fancy-regex/issues/233 ))
- Add support for ignoring empty matches
([#​240](https://redirect.github.com/fancy-regex/fancy-regex/issues/240 ))
- Add support for treating unnamed capture groups as non-capturing when
named groups exist
([#​241](https://redirect.github.com/fancy-regex/fancy-regex/issues/241 ))
##### Changed
- `RegexBuilder` can now build multiple patterns with the same options
([#​213](https://redirect.github.com/fancy-regex/fancy-regex/issues/213 ))
- Parsing of capture group names is now more lenient
([#​241](https://redirect.github.com/fancy-regex/fancy-regex/issues/241 ))
##### Fixed
- Fixed bug with parsing nested character classes containing unescaped
`]`
([#​211](https://redirect.github.com/fancy-regex/fancy-regex/issues/211 ))
</details>
<details>
<summary>oxc-project/json-strip-comments (json-strip-comments)</summary>
###
[`v3.1.1`](https://redirect.github.com/oxc-project/json-strip-comments/releases/tag/json-strip-comments-v3.1.1 )
[Compare
Source](https://redirect.github.com/oxc-project/json-strip-comments/compare/json-strip-comments-v3.1.0...json-strip-comments-v3.1.1 )
##### Added
- add `strip_slice` api
([#​116](https://redirect.github.com/oxc-project/json-strip-comments/pull/116 ))
##### Other
- *(deps)* update github-actions
([#​114](https://redirect.github.com/oxc-project/json-strip-comments/pull/114 ))
- *(deps)* update dependency rust to v1.91.1
([#​113](https://redirect.github.com/oxc-project/json-strip-comments/pull/113 ))
- *(deps)* lock file maintenance
([#​111](https://redirect.github.com/oxc-project/json-strip-comments/pull/111 ))
- *(deps)* update codspeedhq/action action to v4.3.3
([#​110](https://redirect.github.com/oxc-project/json-strip-comments/pull/110 ))
- *(deps)* lock file maintenance rust crates
([#​109](https://redirect.github.com/oxc-project/json-strip-comments/pull/109 ))
- *(deps)* update oxc-project/setup-rust action to v1.0.8
([#​107](https://redirect.github.com/oxc-project/json-strip-comments/pull/107 ))
- *(deps)* update dependency rust to v1.91.0
([#​106](https://redirect.github.com/oxc-project/json-strip-comments/pull/106 ))
- *(deps)* lock file maintenance
([#​103](https://redirect.github.com/oxc-project/json-strip-comments/pull/103 ))
- *(deps)* update codspeedhq/action action to v4.3.1
([#​102](https://redirect.github.com/oxc-project/json-strip-comments/pull/102 ))
- *(deps)* lock file maintenance rust crates
([#​101](https://redirect.github.com/oxc-project/json-strip-comments/pull/101 ))
- *(deps)* update actions/setup-node action to v6
([#​99](https://redirect.github.com/oxc-project/json-strip-comments/pull/99 ))
- *(deps)* update codspeedhq/action action to v4.2.1
([#​98](https://redirect.github.com/oxc-project/json-strip-comments/pull/98 ))
- *(deps)* lock file maintenance rust crates
([#​97](https://redirect.github.com/oxc-project/json-strip-comments/pull/97 ))
- *(deps)* update github-actions
([#​95](https://redirect.github.com/oxc-project/json-strip-comments/pull/95 ))
- *(deps)* update github-actions
([#​91](https://redirect.github.com/oxc-project/json-strip-comments/pull/91 ))
- *(deps)* update oxc-project/setup-rust action to v1.0.6
([#​89](https://redirect.github.com/oxc-project/json-strip-comments/pull/89 ))
- fix benchmark
- *(deps)* lock file maintenance rust crates
([#​86](https://redirect.github.com/oxc-project/json-strip-comments/pull/86 ))
- *(deps)* update github-actions
([#​84](https://redirect.github.com/oxc-project/json-strip-comments/pull/84 ))
- *(deps)* update dependency rust to v1.90.0
([#​83](https://redirect.github.com/oxc-project/json-strip-comments/pull/83 ))
</details>
<details>
<summary>napi-rs/mimalloc-safe (mimalloc-safe)</summary>
###
[`v0.1.61`](https://redirect.github.com/napi-rs/mimalloc-safe/blob/HEAD/CHANGELOG.md#0161---2026-05-16 )
[Compare
Source](https://redirect.github.com/napi-rs/mimalloc-safe/compare/mimalloc-safe-v0.1.60...mimalloc-safe-v0.1.61 )
##### Chore
- Updated the following local packages: libmimalloc-sys2
###
[`v0.1.60`](https://redirect.github.com/napi-rs/mimalloc-safe/blob/HEAD/CHANGELOG.md#0160---2026-05-14 )
[Compare
Source](https://redirect.github.com/napi-rs/mimalloc-safe/compare/mimalloc-safe-v0.1.59...mimalloc-safe-v0.1.60 )
##### Chore
- Updated the following local packages: libmimalloc-sys2
###
[`v0.1.59`](https://redirect.github.com/napi-rs/mimalloc-safe/blob/HEAD/CHANGELOG.md#0159---2026-05-09 )
[Compare
Source](https://redirect.github.com/napi-rs/mimalloc-safe/compare/mimalloc-safe-v0.1.58...mimalloc-safe-v0.1.59 )
##### Chore
- Updated the following local packages: libmimalloc-sys2
###
[`v0.1.58`](https://redirect.github.com/napi-rs/mimalloc-safe/blob/HEAD/CHANGELOG.md#0158---2026-04-25 )
[Compare
Source](https://redirect.github.com/napi-rs/mimalloc-safe/compare/mimalloc-safe-v0.1.57...mimalloc-safe-v0.1.58 )
##### Chore
- Updated the following local packages: libmimalloc-sys2
###
[`v0.1.57`](https://redirect.github.com/napi-rs/mimalloc-safe/blob/HEAD/CHANGELOG.md#0157---2026-04-16 )
[Compare
Source](https://redirect.github.com/napi-rs/mimalloc-safe/compare/mimalloc-safe-v0.1.56...mimalloc-safe-v0.1.57 )
##### Chore
- Updated the following local packages: libmimalloc-sys2
</details>
---
### Configuration
📅 **Schedule**: (in timezone Asia/Shanghai)
- Branch creation
- "before 10am on monday"
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNzkuMyIsInVwZGF0ZWRJblZlciI6IjQzLjE3OS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-17 17:07:19 +00:00
3c2de9837e
chore(deps): update rust crate indexmap to v2.14.0 ( #1102 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [indexmap](https://redirect.github.com/indexmap-rs/indexmap ) |
dependencies | minor | `2.13.1` → `2.14.0` |
---
### Release Notes
<details>
<summary>indexmap-rs/indexmap (indexmap)</summary>
###
[`v2.14.0`](https://redirect.github.com/indexmap-rs/indexmap/blob/HEAD/RELEASES.md#2140-2026-04-09 )
[Compare
Source](https://redirect.github.com/indexmap-rs/indexmap/compare/2.13.1...2.14.0 )
- **MSRV**: Rust 1.85.0 or later is now required.
- Updated the `hashbrown` dependency to 0.17.
- Made more `map::Slice` methods `const`: `new_mut`, `first_mut`,
`last_mut`,
`split_at_mut`, `split_at_mut_checked`, `split_first_mut`,
`split_last_mut`
</details>
---
### Configuration
📅 **Schedule**: (in timezone Asia/Shanghai)
- Branch creation
- "before 10am on monday"
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMTAuMiIsInVwZGF0ZWRJblZlciI6IjQzLjExMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Boshen <[email protected] >
Co-authored-by: Hanzo Dev <[email protected] >
2026-05-16 07:53:35 +00:00
26c8a7e046
chore(deps): update napi ( #1088 )
...
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/ ) |
[Adoption](https://docs.renovatebot.com/merge-confidence/ ) |
[Passing](https://docs.renovatebot.com/merge-confidence/ ) |
[Confidence](https://docs.renovatebot.com/merge-confidence/ ) | Type |
Update |
|---|---|---|---|---|---|---|---|
| [@napi-rs/cli](https://napi.rs/ )
([source](https://redirect.github.com/napi-rs/napi-rs )) | [`3.5.1` →
`3.6.1`](https://renovatebot.com/diffs/npm/@napi-rs%2fcli/3.5.1/3.6.1 ) |

|

|

|

| devDependencies | minor |
| [napi](https://redirect.github.com/napi-rs/napi-rs ) | `3.8.3` →
`3.8.4` |

|

|

|

| dependencies | patch |
| [napi-derive](https://redirect.github.com/napi-rs/napi-rs ) | `3.5.2` →
`3.5.3` |

|

|

|

| dependencies | patch |
---
### Release Notes
<details>
<summary>napi-rs/napi-rs (@​napi-rs/cli)</summary>
###
[`v3.6.1`](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
[Compare
Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
###
[`v3.6.0`](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
[Compare
Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
</details>
---
### Configuration
📅 **Schedule**: (in timezone Asia/Shanghai)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45NC4xIiwidXBkYXRlZEluVmVyIjoiNDMuMTEwLjIiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Boshen <[email protected] >
Co-authored-by: Hanzo Dev <[email protected] >
2026-04-15 10:20:25 +00:00
Boshen and Hanzo Dev
a4604e8d43
refactor: consolidate fixture directories for better test file mapping
...
- Move dot/, abnormal-relative-* into fixtures/resolve/ (used by resolve.rs)
- Move global-pnp/ into fixtures/pnp/ (used by pnp.rs)
- Move pnpm-workspace/ into fixtures/pnpm/ (used by napi tests)
- Move bench-tsconfig-paths/ into fixtures/tsconfig/ (used by benches)
- Delete unused fixtures/prefer-file-over-dir/
Co-authored-by: Hanzo Dev <[email protected] >
2026-03-24 15:32:04 +08:00
5fb5c110c3
chore: migrate to Vite+ ( #1062 )
...
Co-authored-by: Hanzo Dev <[email protected] >
2026-03-15 00:09:44 +08:00
6af8030b33
fix(napi): replace panics with error returns to prevent WASM traps ( #1055 )
...
## Summary
- Convert `panic!()` and `unwrap()` calls in the NAPI binding layer to
proper `napi::Result` error returns, preventing unrecoverable WASM
`unreachable` traps in WebContainer/WASI environments
- Change `From` impls to `TryFrom` for `Restriction` and
`TsconfigOptions`, propagating errors through `ResolverFactory::new` and
`clone_with_options`
- Replace `unwrap()` with `unwrap_or_default()` in tracing
initialization
- Bump minimum napi version from `3` to `3.8` to include upstream bug
fixes
related #635
Co-authored-by: Hanzo Dev <[email protected] >
2026-03-06 05:57:33 +00:00
Boshen and GitHub
c608596881
fix: avoid panic in resolve_file for parentless paths ( #1053 )
...
## Summary
- return an `InvalidInput` `ResolveError::IOError` from `resolve_file`
when the provided path has no parent (instead of panicking)
- extract that error construction into a dedicated `#[cold]` helper
- add Rust and NAPI regression tests for root/parentless file inputs
- include a no-op clippy rewrite in `src/dts_resolver.rs` (`map_or`) so
`just ready` passes on this branch
## Verification
- `just ready`
- `cargo test -q resolve_file_rejects_parentless_path`
- `pnpm test -- napi/tests/file-resolve.test.mjs`
2026-03-06 00:02:34 +08:00
0ea61ae02b
fix(dts): prefer declaration extensions over JS in exports-resolved paths ( #1047 )
...
## Summary
- Fix `dts_resolve_esm_match` to try TS/declaration extension
substitution (e.g. `.mjs` → `.d.mts`) **before** checking if the
original JS file exists, matching TypeScript's
`loadFileNameFromPackageJsonField` behavior
- Previously, `resolveDtsSync` would return `.mjs` instead of `.d.mts`
for packages like `magic-string` that have both the JS entry and its
declaration file
Closes #1046
---------
Co-authored-by: Hanzo Dev <[email protected] >
2026-03-05 11:59:13 +08:00
Boshen and GitHub
35f674cd9b
chore: release v11.19.1 ( #1034 )
2026-02-28 11:39:39 +08:00
Boshen and GitHub
d3978a079a
chore: release v11.19.0 ( #1029 )
2026-02-25 16:50:04 +08:00
811330a81c
feat: add node_path option to disable NODE_PATH env var behavior ( #1031 )
...
## Summary
- Adds a `node_path` boolean option (default `true`) to `ResolveOptions`
that controls whether entries from the `NODE_PATH` environment variable
are appended to `modules` during option sanitization.
- `NODE_PATH` is a deprecated Node.js feature not part of ESM
resolution. Setting `node_path: false` disables this behavior, allowing
consumers like Vite to opt out.
Closes #1030
Co-authored-by: Hanzo Dev <[email protected] >
2026-02-25 13:11:25 +08:00
96c05e5602
feat: add DTS resolver matching TypeScript's bundler mode ( #997 )
...
## Summary
- Add `resolve_dts()` method to `ResolverGeneric` implementing
TypeScript's `ts.resolveModuleName` with `moduleResolution: "bundler"`
algorithm
- Two-pass `node_modules` walk: all ancestors for TS/DTS + `@types`
before trying JS — fixes the fundamental algorithmic difference that JS
workarounds can't address
- `@types` scoped name mangling (`@babel/core` → `@types/babel__core`)
- TypeScript extension substitution (`.js` → `.ts`, `.d.ts`) following
TS priority order
- `typesVersions` package.json field support
- `exports` field absolute priority (blocks `types`/`typings`/`main`
when present)
- NAPI bindings: `resolveDtsSync` / `resolveDtsAsync`
- 20 test cases covering relative resolution, extension
substitution/priority, directory modules, `@types`, exports,
`typesVersions`, `typings` field, and name mangling
Closes #549
Co-authored-by: Hanzo Dev <[email protected] >
2026-02-24 16:15:12 +08:00
Boshen and GitHub
813e39dd13
chore: release v11.18.0 ( #1007 )
...
## 🤖 New release
* `oxc_resolver`: 11.17.1 -> 11.18.0
* `oxc_resolver_napi`: 11.17.1 -> 11.18.0
<details><summary><i><b>Changelog</b></i></summary><p>
## `oxc_resolver`
<blockquote>
##
[11.18.0](https://github.com/oxc-project/oxc-resolver/compare/v11.17.1...v11.18.0 )
- 2026-02-20
### <!-- 0 -->🚀 Features
- support NODE_PATH module lookup
([#1020 ](https://github.com/oxc-project/oxc-resolver/pull/1020 )) (by
@Boshen)
### Contributors
* @Boshen
* @renovate[bot]
</blockquote>
</p></details>
---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/ ).
2026-02-21 00:32:38 +08:00
Boshen and GitHub
1c277c2ec0
chore: release v11.17.1 ( #1000 )
2026-02-08 20:30:00 +08:00
Boshen and GitHub
550cc50df5
chore: release v11.17.0 ( #991 )
2026-01-29 18:42:45 +08:00
Boshen and GitHub
c44d5aa0ac
chore: release v11.16.4 ( #981 )
2026-01-23 19:34:03 +08:00
Boshen and GitHub
d787edf52d
chore: release v11.16.3 ( #950 )
2026-01-14 17:24:12 +08:00
Boshen and Hanzo Dev
422d1df79e
test: fix skipped tests in options.test.mjs
...
The tests were calling `createTest()` immediately as the second argument
to `it()`, causing vitest to receive `undefined` as the callback and
treat them as todo tests.
Co-authored-by: Hanzo Dev <[email protected] >
2026-01-14 16:58:55 +08:00
fc630aa2d3
chore(deps): update napi ( #952 )
...
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/ ) |
[Adoption](https://docs.renovatebot.com/merge-confidence/ ) |
[Passing](https://docs.renovatebot.com/merge-confidence/ ) |
[Confidence](https://docs.renovatebot.com/merge-confidence/ ) | Type |
Update |
|---|---|---|---|---|---|---|---|
| [@napi-rs/cli](https://napi.rs/ )
([source](https://redirect.github.com/napi-rs/napi-rs )) | [`3.5.0` ->
`3.5.1`](https://renovatebot.com/diffs/npm/@napi-rs%2fcli/3.5.0/3.5.1 ) |

|

|

|

| devDependencies | patch |
| [napi](https://redirect.github.com/napi-rs/napi-rs ) | `3.7.1` ->
`3.8.0` |

|

|

|

| dependencies | minor |
| [napi-derive](https://redirect.github.com/napi-rs/napi-rs ) | `3.4.1`
-> `3.5.0` |

|

|

|

| dependencies | minor |
---
### Release Notes
<details>
<summary>napi-rs/napi-rs (@​napi-rs/cli)</summary>
###
[`v3.5.1`](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
[Compare
Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Boshen <[email protected] >
2025-12-30 11:39:27 +00:00
Boshen and GitHub
9f18efb646
chore: release v11.16.2 ( #945 )
2025-12-26 18:27:01 +08:00
Boshen
99d5239398
chore: bump deps
2025-12-26 18:13:20 +08:00
Boshen and GitHub
889edd76eb
chore: release v11.16.1 ( #935 )
2025-12-24 23:52:32 +08:00
0ac11e5fff
chore(deps): update dependency oxfmt to ^0.20.0 ( #934 )
...
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/ ) |
[Adoption](https://docs.renovatebot.com/merge-confidence/ ) |
[Passing](https://docs.renovatebot.com/merge-confidence/ ) |
[Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|---|---|
| [oxfmt](https://oxc.rs )
([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt ))
| [`^0.19.0` ->
`^0.20.0`](https://renovatebot.com/diffs/npm/oxfmt/0.19.0/0.20.0 ) |

|

|

|

|
---
### Release Notes
<details>
<summary>oxc-project/oxc (oxfmt)</summary>
###
[`v0.20.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxfmt/CHANGELOG.md#0200---2025-12-22 )
[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxfmt_v0.19.0...oxfmt_v0.20.0 )
##### 🚀 Features
-
[`97a02d1`](https://redirect.github.com/oxc-project/oxc/commit/97a02d1 )
oxfmt: Add `insertFinalNewline` option
([#​17251](https://redirect.github.com/oxc-project/oxc/issues/17251 ))
(leaysgur)
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-22 12:57:36 +00:00
Boshen and GitHub
187583f008
chore: release v11.16.0 ( #906 )
2025-12-18 15:14:09 +08:00
Boshen and GitHub
1f55a436c2
chore(js): replace dprint with oxfmt ( #925 )
2025-12-15 22:35:58 +08:00
8a1e2ceddc
chore(deps): update rust crate fancy-regex to ^0.17.0 ( #921 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [fancy-regex](https://redirect.github.com/fancy-regex/fancy-regex ) |
dependencies | minor | `^0.16.2` -> `^0.17.0` |
| [fancy-regex](https://redirect.github.com/fancy-regex/fancy-regex ) |
dev-dependencies | minor | `^0.16.2` -> `^0.17.0` |
---
### Release Notes
<details>
<summary>fancy-regex/fancy-regex (fancy-regex)</summary>
###
[`v0.17.0`](https://redirect.github.com/fancy-regex/fancy-regex/blob/HEAD/CHANGELOG.md#0170---2025-12-13 )
[Compare
Source](https://redirect.github.com/fancy-regex/fancy-regex/compare/0.16.2...0.17.0 )
##### Added
- Add support for "easy" variable-length lookbehinds (enabled via new
feature flag)
([#​194](https://redirect.github.com/fancy-regex/fancy-regex/issues/194 ),
[#​196](https://redirect.github.com/fancy-regex/fancy-regex/issues/196 ))
- Add support for more word boundaries: `\b{start}`, `\b{end}`,
`\b{start-half}`, `\b{end-half}`
([#​193](https://redirect.github.com/fancy-regex/fancy-regex/issues/193 ))
- Allow `{...}` repetition syntax after assertions (except in Oniguruma
mode)
([#​193](https://redirect.github.com/fancy-regex/fancy-regex/issues/193 ))
- Add Oniguruma mode flag to playground
([#​199](https://redirect.github.com/fancy-regex/fancy-regex/issues/199 ))
##### Changed
- Rewrite Theory section of Readme in a more formal style
([#​187](https://redirect.github.com/fancy-regex/fancy-regex/issues/187 ))
- Box `CompileError` in `Error` enum to reduce size
([#​204](https://redirect.github.com/fancy-regex/fancy-regex/issues/204 ))
- Bail out early when `\G` fails to match for increased performance
([#​198](https://redirect.github.com/fancy-regex/fancy-regex/issues/198 ))
- Handle `ignore_whitespace` case in parsing escape sequences
([#​193](https://redirect.github.com/fancy-regex/fancy-regex/issues/193 ))
- Add tests to ensure that `Regex` is `Send` and `Sync`
([#​195](https://redirect.github.com/fancy-regex/fancy-regex/issues/195 ))
##### Fixed
- Fix clippy lint warnings
([#​204](https://redirect.github.com/fancy-regex/fancy-regex/issues/204 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNDIuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-14 18:37:31 +00:00
翠 and GitHub
8beb8afdf8
chore: add warning comment for clear_cache method ( #913 )
...
Added a comment for
https://github.com/oxc-project/oxc-resolver/issues/909
2025-12-09 11:47:05 +08:00
Boshen and GitHub
7af098283b
chore: release v11.15.0 ( #898 )
2025-12-04 23:32:38 +08:00
Boshen
c6ccd55342
feat!: disallow manually passing a list of references to TsconfigOptions::references ( #902 )
...
Manually passing in a list of references is useless.
`tsconfig.json` should always be the source of truth.
Searching on github shows no one uses this option.
2025-12-04 07:58:51 +00:00
574c91d18c
feat(napi): expose resolve_file API as resolveFileSync and resolveFileAsync ( #900 )
...
## Summary
Exposes the Rust `resolve_file` API to NAPI as `resolveFileSync` and
`resolveFileAsync` methods on the `ResolverFactory` class.
### What's New
- **`resolveFileSync(file: string, request: string)`** - Synchronous
file-based resolution
- **`resolveFileAsync(file: string, request: string)`** - Asynchronous
file-based resolution
### Key Difference from `sync()`
- `sync(directory, specifier)` - Takes a **directory path**, uses
manually configured tsconfig if provided
- `resolveFileSync(file, specifier)` - Takes a **file path**,
automatically discovers tsconfig.json by traversing parent directories
### Why This Matters
When resolving from a specific file (e.g., in bundlers, linters, or
language servers), `resolveFileSync` automatically finds the correct
`tsconfig.json` by:
- Traversing parent directories from the file location
- Respecting TypeScript project references
- Honoring `include`, `exclude`, and `files` fields to determine which
tsconfig applies
- Ensuring tsconfig `paths` aliases work correctly based on the file's
context
## Changes
### Core Implementation (`napi/src/lib.rs`)
- Added `resolve_file()` helper function (mirrors existing `resolve()`
pattern)
- Added `ResolveFileTask` struct for async operations
- Added `resolve_file_sync()` method to `ResolverFactory`
- Added `resolve_file_async()` method to `ResolverFactory`
### TypeScript Definitions (`napi/index.d.ts`)
- Added type definitions for `resolveFileSync()` and
`resolveFileAsync()`
- Includes JSDoc comments explaining automatic tsconfig discovery
### Tests (`napi/tests/file-resolve.test.mjs` - NEW FILE)
- 12 comprehensive tests covering:
- Basic sync/async file resolution
- Error handling (file not found, invalid paths)
- Module type detection
- Builtin module handling
- Consistency between sync and async methods
### Documentation (`README.md`)
- Added "File-based Resolution" section with usage examples
- Explained when and why to use file-based resolution
- Documented automatic tsconfig discovery behavior
## Test Plan
- [x] All Rust tests pass (157 tests)
- [x] All Node.js/NAPI tests pass (64 tests including 12 new tests)
- [x] Formatting and linting checks pass
- [x] Build successful
- [x] TypeScript definitions generated correctly
- [x] Documentation updated
## Test Results
```
✓ tests/file-resolve.test.mjs (12 tests) 6ms
✓ tests/file-protocol.test.mjs (9 tests) 11ms
✓ tests/simple.test.mjs (3 tests) 17ms
✓ tests/options.test.mjs (7 tests | 5 skipped) 5ms
✓ tests/resolver.test.mjs (33 tests) 56ms
Test Files 5 passed (5)
Tests 59 passed | 5 todo (64)
```
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Hanzo Dev <[email protected] >
2025-12-03 16:13:09 +08:00
Boshen and GitHub
98922c791e
chore: release v11.14.2 ( #892 )
2025-12-02 19:41:53 +08:00
Boshen and GitHub
a9a3816876
chore: release v11.14.1 ( #874 )
2025-11-30 11:15:56 +08:00
Boshen
57ea39f0af
test: change all fixture directory names to dashed case ( #884 )
2025-11-28 10:24:24 +00:00
Boshen and GitHub
1f3df0daac
chore: release v11.14.0 ( #832 )
2025-11-24 15:44:37 +08:00
Boshen and GitHub
f4c0d27e82
chore: release v11.13.2 ( #813 )
2025-11-12 12:44:42 +08:00
98c0d8d04e
chore(deps): bump napi; bump msrv to 1.88.0 for napi ( #814 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-06 18:53:24 +08:00
Boshen
d70e9f983f
chore(deps): bump deps ( #812 )
2025-11-05 09:50:08 +00:00
Boshen and GitHub
e8dd9f41a4
chore: release v11.13.1 ( #801 )
2025-11-05 09:22:47 +08:00
Boshen and GitHub
f14d93c5d2
chore: release v11.13.0 ( #795 )
2025-11-02 12:41:02 +08:00
Boshen and GitHub
f9df133875
chore: release v11.12.0 ( #788 )
2025-10-27 21:26:31 +08:00
7458799185
chore(deps): lock file maintenance npm packages ( #785 )
...
This PR contains the following updates:
| Package | Type | Update | Change | Age | Adoption | Passing |
Confidence |
|---|---|---|---|---|---|---|---|
| | | lockFileMaintenance | All locks refreshed | | | | |
| [@napi-rs/cli](https://redirect.github.com/napi-rs/napi-rs ) |
devDependencies | minor | [`3.3.1` ->
`3.4.1`](https://renovatebot.com/diffs/npm/@napi-rs%2fcli/3.3.1/3.4.1 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [pnpm](https://pnpm.io )
([source](https://redirect.github.com/pnpm/pnpm/tree/HEAD/pnpm )) |
packageManager | minor | [`10.18.3` ->
`10.19.0`](https://renovatebot.com/diffs/npm/pnpm/10.18.3/10.19.0 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [vitest](https://vitest.dev )
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest ))
| devDependencies | patch | [`4.0.3` ->
`4.0.4`](https://renovatebot.com/diffs/npm/vitest/4.0.3/4.0.4 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
🔧 This Pull Request updates lock files to use the latest dependency
versions.
---
### Release Notes
<details>
<summary>napi-rs/napi-rs (@​napi-rs/cli)</summary>
###
[`v3.4.1`](https://redirect.github.com/napi-rs/napi-rs/releases/tag/%40napi-rs/cli%403.4.1 )
[Compare
Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
##### Bug Fixes
- **cli:** remove createRequire in cjs binding
([#​2976](https://redirect.github.com/napi-rs/napi-rs/issues/2976 ))
([c388c12](https://redirect.github.com/napi-rs/napi-rs/commit/c388c120cfefbe40b16176615840203e3e1c6e75 ))
###
[`v3.4.0`](https://redirect.github.com/napi-rs/napi-rs/releases/tag/%40napi-rs/cli%403.4.0 )
[Compare
Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected] ...@napi-rs/[email protected] )
##### Bug Fixes
- **cli:** correct OpenHarmony SDK path detection logic
([#​2963](https://redirect.github.com/napi-rs/napi-rs/issues/2963 ))
([b453673](https://redirect.github.com/napi-rs/napi-rs/commit/b4536731acfae389e634887a0923dd6f2a6bfaa0 ))
- **napi:** do not invoke process.report on Windows
([#​2972](https://redirect.github.com/napi-rs/napi-rs/issues/2972 ))
([01485ff](https://redirect.github.com/napi-rs/napi-rs/commit/01485ff4231395b0f39d7bbd9b8053992f9d3923 ))
##### Features
- **cli:** resolve command from args
([#​2973](https://redirect.github.com/napi-rs/napi-rs/issues/2973 ))
([13cb9dc](https://redirect.github.com/napi-rs/napi-rs/commit/13cb9dc1e06678c72aa18efb8041f2d18301d288 ))
</details>
<details>
<summary>pnpm/pnpm (pnpm)</summary>
###
[`v10.19.0`](https://redirect.github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#10190 )
[Compare
Source](https://redirect.github.com/pnpm/pnpm/compare/v10.18.3...v10.19.0 )
##### Minor Changes
- You can now allow specific versions of dependencies to run postinstall
scripts. `onlyBuiltDependencies` now accepts package names with lists of
trusted versions. For example:
```yaml
onlyBuiltDependencies:
- [email protected] || 21.6.5
- [email protected] .1
```
Related PR:
[#​10104](https://redirect.github.com/pnpm/pnpm/pull/10104 ).
- Added support for exact versions in `minimumReleaseAgeExclude`
[#​9985](https://redirect.github.com/pnpm/pnpm/issues/9985 ).
You can now list one or more specific versions that pnpm should allow to
install, even if those versions don’t satisfy the maturity requirement
set by `minimumReleaseAge`. For example:
```yaml
minimumReleaseAge: 1440
minimumReleaseAgeExclude:
- [email protected]
- [email protected] .0 || 5.102.1
```
</details>
<details>
<summary>vitest-dev/vitest (vitest)</summary>
###
[`v4.0.4`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v4.0.4 )
##### 🐞 Bug Fixes
- **browser**:
- Correct typo - by
[@​benmccann](https://redirect.github.com/benmccann ) in
[#​8796](https://redirect.github.com/vitest-dev/vitest/issues/8796 )
[<samp>(ede1f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/ede1f39d6 )
- Publish a missing context file for webdriverio - by
[@​sheremet-va](https://redirect.github.com/sheremet-va ) in
[#​8824](https://redirect.github.com/vitest-dev/vitest/issues/8824 )
[<samp>(7c7b6)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7c7b6f0b1 )
- **mocker**:
- Support mocking builtins without `node:` prefix - by
[@​sheremet-va](https://redirect.github.com/sheremet-va ) in
[#​8829](https://redirect.github.com/vitest-dev/vitest/issues/8829 )
[<samp>(06208)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/06208d30b )
- **pool**:
- Runner's error listener causing `MaxListenersExceededWarning` - by
[@​AriPerkkio](https://redirect.github.com/AriPerkkio ) in
[#​8820](https://redirect.github.com/vitest-dev/vitest/issues/8820 )
[<samp>(d1bff)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d1bff3bb3 )
- Capture workers `stdio` to logger - by
[@​AriPerkkio](https://redirect.github.com/AriPerkkio ) in
[#​8809](https://redirect.github.com/vitest-dev/vitest/issues/8809 )
[<samp>(fb95f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/fb95fc736 )
- **spy**:
- Allow classes in `vi.mocked` utility - by
[@​sheremet-va](https://redirect.github.com/sheremet-va ) in
[#​8839](https://redirect.github.com/vitest-dev/vitest/issues/8839 )
[<samp>(f8756)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f87568d64 )
- **worker**:
- Rpc listener leak when `isolate: false` - by
[@​AriPerkkio](https://redirect.github.com/AriPerkkio ) in
[#​8821](https://redirect.github.com/vitest-dev/vitest/issues/8821 )
[<samp>(573dc)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/573dc06fe )
##### 🏎 Performance
- **utils**: Optimized reducer to avoid creating new objects - by
[@​Connormiha](https://redirect.github.com/Connormiha ) in
[#​8818](https://redirect.github.com/vitest-dev/vitest/issues/8818 )
[<samp>(d19ce)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d19cece3a )
##### [View changes on
GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v4.0.3...v4.0.4 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 9am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc-resolver ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTYuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE1OS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Boshen <[email protected] >
2025-10-27 12:57:48 +00:00
Boshen and GitHub
3d9fdd90a8
fix: restore webcontainer-fallback.js for Stackblitz support ( #787 )
2025-10-27 20:48:35 +08:00
Boshen and GitHub
655ccf39f9
chore: release v11.11.1 ( #778 )
2025-10-21 20:30:38 +08:00
Boshen
2f444245f2
chore(deps): bump deps ( #780 )
2025-10-21 11:48:58 +00:00
Boshen and GitHub
7adf6fd41b
chore: release v11.11.0 ( #762 )
2025-10-20 14:42:47 +08:00