Releases: sindresorhus/got
Releases · sindresorhus/got
v11.5.2
v11.5.1
v11.5.0
Improvements
- Add
backoff
option to pagination (#1182) 4be7446 - Upgrade dependencies (#1345) b9a855d 476c026 8d697bc
- Upgrade to TypeScript 3.9 (#1267) b51d836
Fixes
- Fix TypeScript types for Promise API (#1344) 676be6d
- Fix cache not working with HTTP2 ac5f67d
- Fix
response
event not being emitted on cache verify request (#1305) da4769e - Work around a bug in Node.js <=12.18.2 f33e8bc
- Remove request error handler after response is downloaded e1afe82
- Revert "Remove request error handler after response is downloaded" aeb2e07
Docs
v11.4.0
- Fix hanging promise on timeout on HTTP error 934211f
- Use async iterators to get response body (#1256) 7dcd145
- Fix promise not returning Buffer on compressed response 5028c11
- Clarify options.encoding docs 04f3ea4
- Fix unhandled
The server aborted pending request
rejection 728aef9 - Add missing
ECONNRESET
code to an abort error d325d35 - Fix
prefixUrl
not working when theurl
argument is empty 8d3412a - Improve the
searchParams
option 4dbada9 - Fix non-enumerable options [such as body] not being used 8f775c7
v11.3.0
- Deep merge
https
options (#1304) c98f0d7 - Add options to customize parsing/stringifying JSON (#1298) cb4da8d
- Add
dnsLookupIpVersion
option (#1264) 7f643bb
v11.2.0
- Provide an overload for unknown
responseType
(#1276) b9ba18a - Fix overriding some options in a
beforeRequest
hook (#1293) d8c00cf - Fix hanging promise on aborted requests on Node v14.3.0 (#1296) 2ccc4c2
- Do not wait for
ready
event if the file descriptor is already opened (#1289) 2c8fe19 - General improvements to HTTPS API (#1255) 697de37
v11.1.4
- Clarify docs for got.HTTPError (#1244) 3f125f1
- Upgrade
cacheable-lookup
to 5.0.3 9770e54 - Add a Runkit example (#1253) 48bbb36
- Mention
options.rejectUnauthorized
in the documentation 9b04963 - Test
responseType
set toundefined
0e8582f - Slightly improve RunKit example 6f84051
- Make
got.paginate()
an alias forgot.paginate.each()
5480b31 - Don't force query string normalization (#1246) 761b8e0
- Upgrade
decompress-response
to6.0.0
c2bc014 - Migrate from
lolex
to@sinonjs/fake-timers
(#1270) df333dd - Make
calculateDelay
promisable (#1266) 3745efc
v11.1.3
- Do not use deprecated
request.abort()
(#1242) ab338a7 - Remove the
host
header on redirect (#1241) 8ff71d9 - Prevent URL pollution (#1243) 7dbb9ee
- Fix duplicated searchParams for pagination API (#1229) 91aa0ac
- Add a test for stringified
searchParams
in merge (#1208) 7d7361c - Fix reusing options when paginating 8862270
- Fix an invalid pagination test 47c1afe 5131dc2
v11.1.2
Bug fixes
- Disable
options.dnsCache
by default 79507c2
This should stay disabled when making requests to internal hostnames such as localhost, database.local etc.
CacheableLookup uses dns.resolver4(..) and dns.resolver6(...) under the hood and fall backs to dns.lookup(...) when the first two fail, which may lead to additional delay.