Skip to content

Releases

v1.13.0

Choose a tag to compare

@unrs-release-plz unrs-release-plz released this 31 Oct 18:37
3d43949

🚀 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::TsconfigLoadFailed for 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 strict and strictNullChecks compiler options (#1166) (by @kylecannon)

🐛 Bug Fixes

  • (tsconfig) do not let a reference without paths shadow the parent (#228) (by @JounQin)
  • (dts) try the .json file itself after .d.json.ts for 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 .js importers (#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 rootDirs against the config that declared them (#1150) (by @Boshen)
  • (tsconfig) resolve baseUrl / paths against 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

⚡ 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

v1.12.2

Choose a tag to compare

@JounQin JounQin released this 19 May 12:23
ccb26d2

🚀 Features

🐛 Bug Fixes

  • gate statx dont-sync flag for loongarch64 musl (by @JounQin) - #209

Contributors

v1.12.1

Choose a tag to compare

@unrs-release-plz unrs-release-plz released this 19 May 03:38
3532607

💼 Other

Contributors

v1.12.0

Choose a tag to compare

@unrs-release-plz unrs-release-plz released this 18 May 14:02
6ecece2

🚀 Features

  • add node_path option to disable NODE_PATH env 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_file API 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 allowJs in compilerOptions (#658) (by @shulaoda) - #202
  • (tsconfig) complete inheritance of compilerOptions fields (#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 /fixtures path for WASI target (by @Boshen) - #202
  • only recreate the cache when yarn_pnp is 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: true not 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.js if node_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 Weak references for CachedPath to enable proper drop (#727) (by @Boshen) - #202
  • (tsconfig) respect Yarn PnP when resolving extends paths (#656) (by @shulaoda)
  • allow resolving package?query#fragment for packages with exports field (#655) (by @sapphi-red) - #202
  • support for resolving empty tsconfig file (#602) (by @JounQin) - #202

🚜 Refactor

Read more

v1.11.1

Choose a tag to compare

@JounQin JounQin released this 09 Jul 14:53
9480a90

📚 Documentation

  • add missing descriptionFiles option introduction (by @JounQin)

Contributors

v1.11.0

Choose a tag to compare

@JounQin JounQin released this 06 Jul 12:21
b012366

🚀 Features

  • return proper errors when failed to find or read yarn pnp manifest (#590) (by @Boshen) - #178
  • add yarn_pnp logic to FileSystem (#589) (by @Boshen) - #178
  • (resolver) rework yarn manifest file look up (#586) (by @Boshen)

🚜 Refactor

💼 Other

  • Merge remote-tracking branch 'upstream/main' into chore/merge_upstream (by @JounQin) - #178

Contributors

Full Changelog: v1.10.1...v1.11.0

v1.10.1

Choose a tag to compare

@JounQin JounQin released this 02 Jul 20:13
57296ac

🐛 Bug Fixes

Contributors

Full Changelog: v1.10.0...v1.10.1

v1.10.0

Choose a tag to compare

@JounQin JounQin released this 02 Jul 19:42
624a56b

🐛 Bug Fixes

  • support resolving abnormal relative paths with node_modules (#171) (by @JounQin) - #171
  • (deps) update all dependencies (#168) (by @renovate[bot])

💼 Other

  • Merge remote-tracking branch 'upstream/main' into chore/merge_upstream (by @JounQin) - #174

Contributors

Full Changelog: v1.9.2...v1.10.0

v1.9.2

Choose a tag to compare

@JounQin JounQin released this 24 Jun 10:44
00bf597

Bug Fixes

Documentation

  • update alias and fallback options type and description (#161) (by @JounQin) - #161

Chore

Contributors

Full Changelog: v1.9.1...v1.9.2

v1.9.1

Choose a tag to compare

@JounQin JounQin released this 20 Jun 10:52
ade786e

Bug Fixes

Contributors

Full Changelog: v1.9.0...v1.9.1