Skip to content

Commit 7032569

Browse files
committed
chore: minor is fine enough
1 parent e26509e commit 7032569

File tree

5 files changed

+57
-53
lines changed

5 files changed

+57
-53
lines changed

CHANGELOG.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,76 +6,76 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
## [2.0.0](https://github.com/unrs/unrs-resolver/compare/v1.3.3...v2.0.0) - 2025-04-06
9+
## [1.4.0](https://github.com/unrs/unrs-resolver/compare/v1.3.3...v1.4.0) - 2025-04-06
1010

1111
### <!-- 0 -->Features
1212

13-
- resolve emitDecoratorMetadata in tsconfig ([#439](https://github.com/unrs/unrs-resolver/pull/439))
14-
- *(napi)* add mimalloc ([#423](https://github.com/unrs/unrs-resolver/pull/423))
15-
- [**breaking**] Rust Edition 2024 ([#402](https://github.com/unrs/unrs-resolver/pull/402))
16-
- deserialize `verbatim_module_syntax` from compilerOptions ([#411](https://github.com/unrs/unrs-resolver/pull/411))
17-
- support wildcard `*` in alias plugin ([#388](https://github.com/unrs/unrs-resolver/pull/388))
18-
- merge options from extends tsconfig.json ([#375](https://github.com/unrs/unrs-resolver/pull/375))
19-
- add more fields in tsconfig#CompilerOptionsSerde ([#374](https://github.com/unrs/unrs-resolver/pull/374))
20-
- [**breaking**] generic fs cache `type Resolver = ResolverGeneric<FsCache<FileSystemOs>>` ([#358](https://github.com/unrs/unrs-resolver/pull/358))
21-
- [**breaking**] replace `FileSystem::canonicalize` with `FileSystem::read_link` ([#331](https://github.com/unrs/unrs-resolver/pull/331))
22-
- faster and stable path hash for the cache ([#328](https://github.com/unrs/unrs-resolver/pull/328))
23-
- add `Resolver::resolve_tsconfig` API ([#312](https://github.com/unrs/unrs-resolver/pull/312))
24-
- [**breaking**] add `ResolveError::Builtin::prefixed_with_node_colon` ([#272](https://github.com/unrs/unrs-resolver/pull/272))
25-
- [**breaking**] mark `ResolveError` #[non_exhaustive] ([#252](https://github.com/unrs/unrs-resolver/pull/252))
26-
- show tried extension aliases in `ResolveError::ExtensionAlias` ([#251](https://github.com/unrs/unrs-resolver/pull/251))
27-
- give a specific error for matched alias not found ([#238](https://github.com/unrs/unrs-resolver/pull/238))
28-
- Yarn PnP ([#217](https://github.com/unrs/unrs-resolver/pull/217))
13+
- resolve emitDecoratorMetadata in tsconfig ([#439](https://github.com/oxc-project/oxc-resolver/pull/439))
14+
- *(napi)* add mimalloc ([#423](https://github.com/oxc-project/oxc-resolver/pull/423))
15+
- [**breaking**] Rust Edition 2024 ([#402](https://github.com/oxc-project/oxc-resolver/pull/402))
16+
- deserialize `verbatim_module_syntax` from compilerOptions ([#411](https://github.com/oxc-project/oxc-resolver/pull/411))
17+
- support wildcard `*` in alias plugin ([#388](https://github.com/oxc-project/oxc-resolver/pull/388))
18+
- merge options from extends tsconfig.json ([#375](https://github.com/oxc-project/oxc-resolver/pull/375))
19+
- add more fields in tsconfig#CompilerOptionsSerde ([#374](https://github.com/oxc-project/oxc-resolver/pull/374))
20+
- [**breaking**] generic fs cache `type Resolver = ResolverGeneric<FsCache<FileSystemOs>>` ([#358](https://github.com/oxc-project/oxc-resolver/pull/358))
21+
- [**breaking**] replace `FileSystem::canonicalize` with `FileSystem::read_link` ([#331](https://github.com/oxc-project/oxc-resolver/pull/331))
22+
- faster and stable path hash for the cache ([#328](https://github.com/oxc-project/oxc-resolver/pull/328))
23+
- add `Resolver::resolve_tsconfig` API ([#312](https://github.com/oxc-project/oxc-resolver/pull/312))
24+
- [**breaking**] add `ResolveError::Builtin::prefixed_with_node_colon` ([#272](https://github.com/oxc-project/oxc-resolver/pull/272))
25+
- [**breaking**] mark `ResolveError` #[non_exhaustive] ([#252](https://github.com/oxc-project/oxc-resolver/pull/252))
26+
- show tried extension aliases in `ResolveError::ExtensionAlias` ([#251](https://github.com/oxc-project/oxc-resolver/pull/251))
27+
- give a specific error for matched alias not found ([#238](https://github.com/oxc-project/oxc-resolver/pull/238))
28+
- Yarn PnP ([#217](https://github.com/oxc-project/oxc-resolver/pull/217))
2929

3030
### <!-- 1 -->Bug Fixes
3131

32-
- handle query and fragment in pacakge.json `exports` and `imports` field ([#443](https://github.com/unrs/unrs-resolver/pull/443))
32+
- handle query and fragment in package.json `exports` and `imports` field ([#443](https://github.com/oxc-project/oxc-resolver/pull/443))
3333
- fix bench
34-
- try browsers field and alias before resolving directory in node_modules ([#349](https://github.com/unrs/unrs-resolver/pull/349))
35-
- special case for aliasing `@/` ([#348](https://github.com/unrs/unrs-resolver/pull/348))
36-
- normalize resolved result on Windows for root ([#345](https://github.com/unrs/unrs-resolver/pull/345))
37-
- don't panic when resolving `/` with `roots` ([#310](https://github.com/unrs/unrs-resolver/pull/310))
38-
- use same UNC path normalization logic with libuv ([#306](https://github.com/unrs/unrs-resolver/pull/306))
39-
- use `fs::canonicalize` to cover symlink edge cases ([#284](https://github.com/unrs/unrs-resolver/pull/284))
40-
- extensionAlias cannot resolve mathjs ([#273](https://github.com/unrs/unrs-resolver/pull/273))
41-
- resolve module `ipaddr.js` correctly when `extensionAlias` is provided ([#228](https://github.com/unrs/unrs-resolver/pull/228))
42-
- *(napi)* update buggy NAPI-RS versions ([#225](https://github.com/unrs/unrs-resolver/pull/225))
43-
- remove `#[cfg(target_os = "windows")]` logic in `canonicalize` ([#221](https://github.com/unrs/unrs-resolver/pull/221))
34+
- try browsers field and alias before resolving directory in node_modules ([#349](https://github.com/oxc-project/oxc-resolver/pull/349))
35+
- special case for aliasing `@/` ([#348](https://github.com/oxc-project/oxc-resolver/pull/348))
36+
- normalize resolved result on Windows for root ([#345](https://github.com/oxc-project/oxc-resolver/pull/345))
37+
- don't panic when resolving `/` with `roots` ([#310](https://github.com/oxc-project/oxc-resolver/pull/310))
38+
- use same UNC path normalization logic with libuv ([#306](https://github.com/oxc-project/oxc-resolver/pull/306))
39+
- use `fs::canonicalize` to cover symlink edge cases ([#284](https://github.com/oxc-project/oxc-resolver/pull/284))
40+
- extensionAlias cannot resolve mathjs ([#273](https://github.com/oxc-project/oxc-resolver/pull/273))
41+
- resolve module `ipaddr.js` correctly when `extensionAlias` is provided ([#228](https://github.com/oxc-project/oxc-resolver/pull/228))
42+
- *(napi)* update buggy NAPI-RS versions ([#225](https://github.com/oxc-project/oxc-resolver/pull/225))
43+
- remove `#[cfg(target_os = "windows")]` logic in `canonicalize` ([#221](https://github.com/oxc-project/oxc-resolver/pull/221))
4444

4545
### <!-- 2 -->Performance
4646

47-
- use papaya instead of dashmap ([#356](https://github.com/unrs/unrs-resolver/pull/356))
48-
- try directory first in `node_modules` ([#340](https://github.com/unrs/unrs-resolver/pull/340))
49-
- guard `load_alias` on hot path ([#339](https://github.com/unrs/unrs-resolver/pull/339))
50-
- use `as_os_str` for `Hash` and `PartialEq` operations ([#338](https://github.com/unrs/unrs-resolver/pull/338))
51-
- reduce hash while resolving package.json ([#319](https://github.com/unrs/unrs-resolver/pull/319))
52-
- reduce memory allocation while normalizing package path ([#318](https://github.com/unrs/unrs-resolver/pull/318))
53-
- reduce memory allocation while resolving package.json ([#317](https://github.com/unrs/unrs-resolver/pull/317))
54-
- use `path.as_os_str().hash()` instead of `path.hash()` ([#316](https://github.com/unrs/unrs-resolver/pull/316))
55-
- reduce memory allocation by using a thread_local path for path methods ([#315](https://github.com/unrs/unrs-resolver/pull/315))
56-
- bring back the symlink optimization ([#298](https://github.com/unrs/unrs-resolver/pull/298))
57-
- use simdutf8 to validate UTF-8 when reading files ([#237](https://github.com/unrs/unrs-resolver/pull/237))
58-
- use custom canonicalize impl to avoid usless syscall ([#220](https://github.com/unrs/unrs-resolver/pull/220))
47+
- use papaya instead of dashmap ([#356](https://github.com/oxc-project/oxc-resolver/pull/356))
48+
- try directory first in `node_modules` ([#340](https://github.com/oxc-project/oxc-resolver/pull/340))
49+
- guard `load_alias` on hot path ([#339](https://github.com/oxc-project/oxc-resolver/pull/339))
50+
- use `as_os_str` for `Hash` and `PartialEq` operations ([#338](https://github.com/oxc-project/oxc-resolver/pull/338))
51+
- reduce hash while resolving package.json ([#319](https://github.com/oxc-project/oxc-resolver/pull/319))
52+
- reduce memory allocation while normalizing package path ([#318](https://github.com/oxc-project/oxc-resolver/pull/318))
53+
- reduce memory allocation while resolving package.json ([#317](https://github.com/oxc-project/oxc-resolver/pull/317))
54+
- use `path.as_os_str().hash()` instead of `path.hash()` ([#316](https://github.com/oxc-project/oxc-resolver/pull/316))
55+
- reduce memory allocation by using a thread_local path for path methods ([#315](https://github.com/oxc-project/oxc-resolver/pull/315))
56+
- bring back the symlink optimization ([#298](https://github.com/oxc-project/oxc-resolver/pull/298))
57+
- use simdutf8 to validate UTF-8 when reading files ([#237](https://github.com/oxc-project/oxc-resolver/pull/237))
58+
- use custom canonicalize impl to avoid useless syscall ([#220](https://github.com/oxc-project/oxc-resolver/pull/220))
5959

6060
### <!-- 3 -->Documentation
6161

6262
- fix an incorrect comment on `Context::missing_dependencies`
63-
- mention extension must start with a `.` in `with_extension` ([#313](https://github.com/unrs/unrs-resolver/pull/313))
63+
- mention extension must start with a `.` in `with_extension` ([#313](https://github.com/oxc-project/oxc-resolver/pull/313))
6464
- *(README)* should be `new ResolverFactory`
6565

6666
### <!-- 4 -->Refactor
6767

68-
- remove papaya `.collector(seize::Collector::new())` call ([#393](https://github.com/unrs/unrs-resolver/pull/393))
69-
- replace UnsafeCell with RefCell ([#346](https://github.com/unrs/unrs-resolver/pull/346))
70-
- run clippy with `--all-targets` ([#333](https://github.com/unrs/unrs-resolver/pull/333))
71-
- apply latest `cargo +nightly fmt` ([#281](https://github.com/unrs/unrs-resolver/pull/281))
72-
- add more clippy fixes ([#279](https://github.com/unrs/unrs-resolver/pull/279))
73-
- clean up elided lifetimes ([#277](https://github.com/unrs/unrs-resolver/pull/277))
68+
- remove papaya `.collector(seize::Collector::new())` call ([#393](https://github.com/oxc-project/oxc-resolver/pull/393))
69+
- replace UnsafeCell with RefCell ([#346](https://github.com/oxc-project/oxc-resolver/pull/346))
70+
- run clippy with `--all-targets` ([#333](https://github.com/oxc-project/oxc-resolver/pull/333))
71+
- apply latest `cargo +nightly fmt` ([#281](https://github.com/oxc-project/oxc-resolver/pull/281))
72+
- add more clippy fixes ([#279](https://github.com/oxc-project/oxc-resolver/pull/279))
73+
- clean up elided lifetimes ([#277](https://github.com/oxc-project/oxc-resolver/pull/277))
7474

7575
### <!-- 6 -->Testing
7676

77-
- fix warning on windows
78-
- fix symlink test init on windows ([#307](https://github.com/unrs/unrs-resolver/pull/307))
77+
- fix warning on Windows
78+
- fix symlink test init on Windows ([#307](https://github.com/oxc-project/oxc-resolver/pull/307))
7979

8080
## [1.3.3](https://github.com/unrs/unrs-resolver/compare/v1.3.2...v1.3.3) - 2025-03-29
8181

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44

55
[package]
66
name = "unrs_resolver"
7-
version = "2.0.0"
7+
version = "1.4.0"
88
authors = ["UnRS"]
99
categories = ["development-tools"]
1010
edition = "2024"

napi/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ const isMuslFromFilesystem = () => {
3535
}
3636

3737
const isMuslFromReport = () => {
38-
const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null
38+
let report = null
39+
if (typeof process.report?.getReport === 'function') {
40+
process.report.excludeNetwork = true
41+
report = process.report.getReport()
42+
}
3943
if (!report) {
4044
return null
4145
}

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unrs-resolver",
3-
"version": "2.0.0",
3+
"version": "1.4.0",
44
"description": "Oxc Resolver Node API with PNP support",
55
"main": "index.js",
66
"browser": "browser.js",

0 commit comments

Comments
 (0)