got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
14.6.6 is the newest release of 14.x.
In short
12 new15 fixed
Release note
Improvements
Add
beforeCachehook 1c3a041Add
retryCounttobeforeRequesthook context 91cdc48Improve
HTTPErrormessage to include method and URL 6dd7574Add support for typed arrays as request body ecf5633
Add Node.js diagnostic channel support 3e2a781
Allow custom Error classes in
beforeErrorhook 1c71194Add zstd (Zstandard) compression support 449833a
Improve validation error messages by including option names f5c54a3
Add
strictContentLengthoption 4206f0eAdd support for
https.secureOptionsoption 7ec1714Add
copyPipedHeadersoption to control automatic header copying from piped streams d83daddAdd
stream.isReadonlyproperty to detect read-only streams 030dfbb
Fixes
Fix HTTP/2 timings NaN issue 398c11a
Fix shortcut methods ignoring handler errors f004564
Fix body reassignment in
beforeRetryhooks bf84d36Fix
beforeErrorhook not being called forERR_UNSUPPORTED_PROTOCOLerror fb86418FIx preserving
prefixUrlin hooks 9725fbdFix race condition causing retry after promise settles 1e49781
Fix stream validation errors causing unhandled rejections 2527bf6
Fix incorrect
content-lengthwhen piping decompressed responses 30b3b79Fix EPIPE errors bypassing retry logic in Promise API 6ae3e7f
Fix silent hang when returning cached response with FormData body from beforeRequest hook e09a9bd
Fix hook type definitions to reflect normalized runtime state 6a544a3
Fix
afterResponsehook validation to allownullbody values 60a4419Fix DNS timing being non-zero when connecting to IP addresses 3d66aec
Fix
timings.endbeing undefined when stream is destroyed before completion 4e75679Fix properly treating different UNIX socket paths as different origins e5659d4
Meta
I managed to get it almost down to zero issues! 🎉
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.