Releases: sindresorhus/got
Releases · sindresorhus/got
v14.6.1
v14.6.0
Improvements
- Add
beforeCachehook 1c3a041 - Add
retryCounttobeforeRequesthook context 91cdc48 - Improve
HTTPErrormessage to include method and URL 6dd7574 - Add support for typed arrays as request body ecf5633
- Add Node.js diagnostic channel support 3e2a781
- Allow custom Error classes in
beforeErrorhook 1c71194 - Add zstd (Zstandard) compression support 449833a
- Improve validation error messages by including option names f5c54a3
- Add
strictContentLengthoption 4206f0e - Add support for
https.secureOptionsoption 7ec1714 - Add
copyPipedHeadersoption to control automatic header copying from piped streams d83dadd - Add
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 bf84d36 - Fix
beforeErrorhook not being called forERR_UNSUPPORTED_PROTOCOLerror fb86418 - FIx preserving
prefixUrlin hooks 9725fbd - Fix race condition causing retry after promise settles 1e49781
- Fix stream validation errors causing unhandled rejections 2527bf6
- Fix incorrect
content-lengthwhen piping decompressed responses 30b3b79 - Fix 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 60a4419 - Fix DNS timing being non-zero when connecting to IP addresses 3d66aec
- Fix
timings.endbeing undefined when stream is destroyed before completion 4e75679 - Fix properly treating different UNIX socket paths as different origins e5659d4
Meta
I managed to get it almost down to zero issues! 🎉
v14.5.0
- Add
retry.enforceRetryRulesoption to fix statusCodes/limit bypassing 7c0aee6 - Add support for
serverNameHTTPS option cdaab63 - Add
preserveHooksoption forretryWithMergedOptions1abeba4 - Support
IterableandAsyncIterableas request body b65b0e1 - Fix hang on revalidated cached responses 2ab94fd
- Fix handling of FormData getLength errors a2812de
- Fix
downloadProgressfiring for redirect responses 9ec6ff0 - Fix TypeScript type definition for retry event's createRetryStream parameter e899c07
- Fix validation to accept
falseas agent value 6961284 - Fix HTTP/2 memory leak from timeout listeners with connection reuse d1d4ed2
- Fix QuickLRU v7+ compatibility 23d0b6b
- Fix it not using HTTP/2 connection reuse by default 724d592
- Fix hang with stream requests without body for methods like OPTIONS dc4f1e3
v14.4.9
v14.4.8
- Fix infinite loop when retrying with
request.optionsinafterResponsehook dad6a91