Skip to content

Releases: sindresorhus/got

v11.5.1

16 Jul 12:16
Compare
Choose a tag to compare

Enhancements

  • Upgrade http2-wrapper to 1.0.0-beta.5.0 16e7f03
  • Compatibility fix to ignore incorrect Node.js 12 typings f7a1379 61d6f61

Bug fixes

Docs

v11.5.0

07 Jul 19:02
Compare
Choose a tag to compare

Improvements

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

  • Mention advanced usage of a beforeRequest hook 779062a
  • Mention to end the stream if there's no body 044767e

v11.4.0...v11.5.0

v11.4.0

04 Jul 11:53
Compare
Choose a tag to compare
  • 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 the url argument is empty 8d3412a
  • Improve the searchParams option 4dbada9
  • Fix non-enumerable options [such as body] not being used 8f775c7

v11.3.0

05 Jun 16:32
Compare
Choose a tag to compare

v11.2.0...v11.3.0

v11.2.0

01 Jun 07:36
Compare
Choose a tag to compare
  • 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...v11.2.0

v11.1.4

16 May 16:30
Compare
Choose a tag to compare
  • 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 to undefined 0e8582f
  • Slightly improve RunKit example 6f84051
  • Make got.paginate() an alias for got.paginate.each() 5480b31
  • Don't force query string normalization (#1246) 761b8e0
  • Upgrade decompress-response to 6.0.0 c2bc014
  • Migrate from lolex to @sinonjs/fake-timers (#1270) df333dd
  • Make calculateDelay promisable (#1266) 3745efc

v11.1.3

10 May 13:02
Compare
Choose a tag to compare

v11.1.2

08 May 11:10
Compare
Choose a tag to compare

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.

Enhancements

v11.1.1

06 May 09:44
Compare
Choose a tag to compare
  • Improve Node.js 14 compatibility 50ef99a
  • Fix got.mergeOptions() regression 157e02b
  • Fix hanging promise when using cache 7b19e8f
  • Make options.responseType optional when using a template 9ed0a39

v11.1.0...v11.1.1

v11.1.0

02 May 11:49
Compare
Choose a tag to compare

v11.0.3...v11.1.0