Repository navigation
Releases
Releases · unrs/unrs-resolver
v1.13.0
🚀 Features
- resolve native bindings at runtime instead of postinstall (#225) (by @JounQin) - #225
- support Node.js package maps (#1331) (by @Boshen) - #223
- expose tsconfig paths resolve method without file existence check (#1282) (by @sapphi-red) - #223
- add
ResolveError::TsconfigLoadFailedfor tsconfig read and parse failures (#1287) (by @shulaoda) - #223 - (tsconfig) expose outDir, declarationDir, resolveJsonModule, checkJs (#1257) (by @Boshen)
- (file_system) make FileSystemOs cheaply cloneable and Debug (#1230) (by @Boshen)
- (tsconfig) support package.json imports field in extends (#1199) (by @Boshen)
- (tsconfig) parse
strictandstrictNullCheckscompiler options (#1166) (by @kylecannon)
🐛 Bug Fixes
- (tsconfig) do not let a reference without paths shadow the parent (#228) (by @JounQin)
- (dts) try the
.jsonfile itself after.d.json.tsfor json imports (#1377) (by @ocavue) - (exports) propagate the last error in array target resolution (#1267) (by @Boshen)
- (tsconfig) only attach an auto-discovered tsconfig to a file it owns (#1220) (by @shulaoda)
- (tsconfig) walk up for non-TS and
allowJs-off.jsimporters (#1216) (by @shulaoda) - (tsconfig) honor explicit non-TS extensions in
include(#1213) (by @shulaoda) - (tsconfig) apply each referenced project's own
allowJs(#1198) (by @shulaoda) - make symlink_metadata VPath-aware for Yarn PnP (#1183) (by @Boshen) - #223
- (tsconfig) scope default
**/*include to the tsconfig directory (#1161) (by @Boshen) - (tsconfig) apply later-wins semantics for extends array (#1156) (by @Boshen)
- (tsconfig) walk past a tsconfig that doesn't claim the file (#1154) (by @Boshen)
- (tsconfig) let project references take priority over their parent (#1151) (by @Boshen)
- (tsconfig) resolve
rootDirsagainst the config that declared them (#1150) (by @Boshen) - (tsconfig) resolve
baseUrl/pathsagainst the canonical tsconfig path (#1148) (by @Boshen) - strip query fragments when calling
find_tsconfig(#1147) (by @Boshen) - #223
🚜 Refactor
- replace cfg-if dependency with std cfg_select! macro (#1290) (by @Boshen) - #223
- deduplicate cross-file helpers, drop stale lint allows (#1269) (by @Boshen) - #223
- (dts) deduplicate package entry selection and remove dead code (#1266) (by @Boshen)
- (tsconfig) skip TsConfig deep clone for non-root configs (#1265) (by @Boshen)
- (alias) compile fallback aliases once at construction (#1264) (by @Boshen)
- (package-json) dedupe simd/serde backends behind JSON traits (#1229) (by @Boshen)
- outline normalize_with to reduce binary size (#1222) (by @Boshen) - #223
- replace fancy-regex with regress (#1219) (by @Boshen) - #223
- (cache) replace papaya with dashmap (#1214) (by @Boshen)
📚 Documentation
- update sponsor section (#1311) (by @Boshen) - #223
- normalize README sponsor section (#1273) (by @Boshen) - #223
- (path) trim verbose comments in normalize_with (#1233) (by @Boshen)
⚡ Performance
- enable Wasm 128bit SIMD Extension (#1400) (by @sapphi-red) - #223
- (cache) reuse the child path when its parent canonicalizes to itself (#1288) (by @Boshen)
- (alias) scan a packed first-byte array instead of striding over alias entries (#1260) (by @Boshen)
- type-erase the filesystem into a non-generic ResolverImpl core (#1255) (by @Boshen) - #223
- reduce tsconfig paths binary size (#1250) (by @Boshen) - #223
- avoid UTF-8 validation on alias and .d.ts resolve hot paths (#1244) (by @Boshen) - #223
- (alias) skip UTF-8 validation of resolved path when no alias key matches (#1240) (by @Boshen)
- (tsconfig) reuse cached lstat to avoid redundant stat in get_tsconfig (#1238) (by @Boshen)
- (resolve) compute parent once in package.json scope walk (#1235) (by @Boshen)
- (specifier) SIMD fast-reject of specifiers without query/fragment (#1234) (by @Boshen)
- (tsconfig) cut allocations in glob ownership matching (#1232) (by @Boshen)
- (path) drop Chain<Once, Components> in normalize_with (#1231) (by @Boshen)
- (browser-field) fast-reject non-matching keys before normalize (#1227) (by @Boshen)
- borrow relative main field instead of allocating a "./" prefix (#1187) (by @Boshen) - #223
- (cache) move package.json path into parse instead of cloning (#1186) (by @Boshen)
- eliminate symlink stat syscalls by reusing canonicalization (#1184) (by @Boshen) - #223
- reduce resolution syscalls by unifying stat and lstat (#1182) (by @Boshen) - #223
- (cache) pack CachedPathImpl::meta into a CachedMeta byte (#1144) (by @Boshen)
- (cache) store canonical path as Box instead of PathBuf (#1143) (by @Boshen)
- (alias) fast-reject alias entries by cached first byte (#1142) (by @Boshen)
🎨 Styling
🧪 Testing
- verify node_modules canonicalization across layouts (#1200) (by @Boshen) - #223
- (tsconfig) port lookup scenarios from typescript-go (#1155) (by @Boshen)
💼 Other
- Revert "perf: fast path for node_modules/package (#839)" (#227) (by @JounQin) - #227
- Merge remote-tracking branch 'upstream/main' into chore/merge_upstream (by @JounQin) - #223
- add baselines for each package manager x node_modules layout (#1176) (by @Boshen) - #223
Contributors
- @JounQin
- @renovate[bot]
- @sapphi-red
- @ocavue
- @Boshen
- @oxc-guard[bot]
- @20jasper
- @shulaoda
- @kylecannon
v1.12.2
v1.12.1
v1.12.0
🚀 Features
- add
node_pathoption to disableNODE_PATHenv var behavior (#1031) (by @Boshen) - #202 - add DTS resolver matching TypeScript's bundler mode (#997) (by @Boshen) - #202
- support NODE_PATH module lookup (#1020) (by @Boshen) - #202
- allow access to inner data in error related types (#990) (by @sapphi-red) - #202
- allow subpath imports that start with #/ (#907) (by @Boshen) - #202
- [breaking] disallow manually passing a list of references to
TsconfigOptions::references(#902) (by @Boshen) - #202 - support tsconfig
rootDirs(#885) (by @Boshen) - #202 - (napi) expose resolve_file API as resolveFileSync and resolveFileAsync (#900) (by @Boshen)
- add
resolve_fileAPI for tsconfig auto discovery to work (#860) (by @Boshen) - #202 - port tsconfck (find tsconfig files) (#854) (by @Boshen) - #202
- add many.rs example for profiling resolver with many packages (#836) (by @Boshen) - #202
- improve error message for empty package.json files (#793) (by @Boshen) - #202
- improve PackagePathNotExported error message with condition names (by @Boshen) - #202
- add big-endian support for package.json parsing (#768) (by @Boshen) - #202
- add tsconfig discovery (#758) (by @Boshen) - #202
- add ESM file:// protocol support with comprehensive tests (#746) (by @Boshen) - #202
- only resolve file:// protocol on windows (#737) (by @Boshen) - #202
- add benchmark for package.json deserialization (#698) (by @Boshen) - #202
- (tsconfig) support
files/include/exclude(#659) (by @shulaoda) - feat(tsconfig) support
allowJsincompilerOptions(#658) (by @shulaoda) - #202 - (tsconfig) complete inheritance of
compilerOptionsfields (#657) (by @shulaoda) - support pass closure to restriction (#604) (by @JounQin) - #202
🐛 Bug Fixes
- avoid panic in resolve_file for parentless paths (#1053) (by @Boshen) - #202
- (dts) strip ./ prefix from package entry when matching typesVersions (#1051) (by @Boshen)
- (dts) expand Declaration to TypeScript|Declaration for package entry resolution (#1050) (by @Boshen)
- (dts) prefer declaration extensions over JS in exports-resolved paths (#1047) (by @Boshen)
- avoid wasm/wasi dead-code lint in NodePath (#1043) (by @Boshen) - #202
- resolve normalized path on Windows even for
symlinks: false(#1036) (by @sapphi-red) - #202 - skip unreadable tsconfig files during auto-discovery (#1033) (by @longlho) - #202
- remove invalid debug_assert for symlink + package.json (#1032) (by @Boshen) - #202
- resolve clippy unnecessary_unwrap warning (#980) (by @Boshen) - #202
- prevent tsconfig cache pollution with separate raw and built caches (#970) (by @Boshen) - #202
- use
/fixturespath for WASI target (by @Boshen) - #202 - only recreate the cache when
yarn_pnpis toggled (#943) (by @Boshen) - #202 - resolve absolute path to package with trailing slash (#942) (by @Boshen) - #202
- show yarn pnp errors as-is instead of NotFound error (#939) (by @sapphi-red) - #202
- resolve solution tsconfig for auto discovered tsconfig (#927) (by @Boshen) - #202
- fix
clone_with_options+yarn_pnp: truenot working (#916) (by @sapphi-red) - #202 - fix resolution when resolving non-relative specifier on tsconfig baseUrl (#903) (by @Boshen) - #202
- add fallback for statx NOSYS error on old kernels (#901) (by @Boshen) - #202
- correct grammatical errors in documentation and comments (#897) (by @Boshen) - #202
- resolve
node_modules/package/dir/foo.jsifnode_modules/package/dir/foo/exists (#896) (by @Boshen) - #202 - incorrect resolution when project reference extends a tsconfig without baseUrl (#882) (by @Boshen) - #202
- store PathBuf with weak pointers to handle cache clearing (#879) (by @Boshen) - #202
- apply
conditionNames: ['node', 'import']when resolving tsconfig extends (#869) (by @Boshen) - #202 - do not resolve to
node_modules/pacakge/index(#849) (by @Boshen) - #202 - use std::fs::canonicalize as a fallback when canonicalize fails (#835) (by @Boshen) - #202
- remove AT_STATX_DONT_SYNC from statx calls (#828) (by @Boshen) - #202
- (package_json) re-read file for serde_json fallback in simd implementation (#808) (by @Boshen)
- revert system file cache optimization on Linux (#810) (by @Brooooooklyn) - #202
- skip loading tsconfig.json from virtual module paths (#809) (by @sapphi-red) - #202
- don't drop canonicalized path by cache clear (#791) (by @sapphi-red) - #202
- derive Error for JSONError (#779) (by @Boshen) - #202
- tsconfig paths should not be applied to paths inside node_modules (#760) (by @Boshen) - #202
- ensure canonicalized paths remain accessible via strong references (#733) (by @Boshen) - #202
- use
Weakreferences forCachedPathto enable proper drop (#727) (by @Boshen) - #202 - (tsconfig) respect Yarn PnP when resolving
extendspaths (#656) (by @shulaoda) - allow resolving
package?query#fragmentfor packages with exports field (#655) (by @sapphi-red) - #202 - support for resolving empty tsconfig file (#602) (by @JounQin) - #202
🚜 Refactor
- remove clear_cache test that dynamically creates fixtures (by @Boshen) - #202
- move resolve and misc fixtures into fixtures/integration (by @Boshen) - #202
- replace ignored doctest with link to example (by @Boshen) - #202
- consolidate fixture directories for better test file mapping (by @Boshen) - #202
- replace
urlcrate withpercent-encoding(#1065) (by @Boshen) - #202 - clean up commented-out code in parse_package_specifier (#1035) (by @Boshen) - #202
- replace builtins.rs with nodejs-built-in-modules crate (#940) (by @Boshen) - #202
- s/self.cache.as_ref()/&self.cache (#910) (by @Boshen) - #202
- remove redundant PathBuf storage in CachedPath (#891) (by @Boshen) - #202
- remove the redundant
inner_resolverfromload_pnp(#862) (by @Boshen) - #202 - improve
DebugandDisplayforCachedPath(#861) (by @Boshen) - #202 - too_many_arguments = "allow" (#863) (by @Boshen) - #202
- change Tsconfig::parse to accept owned string; add replace_bom_with_whitespace (#859) (by @Boshen) - #202
- remove the useless getters and setters from
CompilerOptions(#858) (by @Boshen) - #202 - add
Tsconfig:references_resolved(#856) (by @Boshen) - #202 - move tsconfig resolution related code to its own file (#855) (by @Boshen) - #202
- use RwLock<Vec<Arc> for package.json storage (#838) (by @Boshen) - #202
- do not store is_symlink in CachedPathImpl ([#850](https://github.com/unrs/unrs-resol...