Changed
-
BREAKING: Minimum supported Node.js raised to v22.
engines.nodeis now
>=22(previously>=20.0.0). Node.js 20 and 21 are no longer supported. The
supported matrix is now Node.js 22, 24, and 26. This drop is what makes the
release a major version; there are no breaking changes to the public runtime
API. -
Dual type declarations for ESM and CommonJS. The build now emits separate
index.d.ctsandindex.d.mtsdeclaration files, and the packageexports
map points each module system at its matching types. This fixes type
resolution under"moduleResolution": "node16"/"nodenext"consumers. The
build is now verified with@arethetypeswrong/cli,
and dual-declaration generation plus export checks (check:exports) run as
part of the precommit/lint pipeline.
Fixed
statAsyncnow passesthrowIfNoEntryto comply with the updated Node.js
fs.statsignature, avoiding a deprecation/typing mismatch on newer runtimes.
Commits
Full Changelog: v1.4.1...v2.0.0