Skip to content

Releases: sindresorhus/got

v11.6.1

08 Sep 17:35
Compare
Choose a tag to compare

Fixes

Meta

v11.6.0...v11.6.1

v11.6.0

02 Sep 13:49
Compare
Choose a tag to compare

Improvements

  • Add retry stream event (#1384) 7072198
  • Add types for http-cache-semantics options 2e2295f
  • Make CancelError inherit RequestError 1f132e8
  • Add retryAfter to RetryObject 643a305
  • Add documentation comments to exported TypeScript types (#1278) eaf1e02
  • Move cache options into a cacheOptions property 9c16d90

Bug fixes

  • Got promise shouldn't retry when the body is a stream 6e1aeae

Docs

  • Add an example of nock integration with retrying f7bbc37
  • Fix CancelError docs 28c400f
  • Fix retry delay function in the README (#1425) 38bbb04

v11.5.2

06 Aug 19:03
Compare
Choose a tag to compare

Docs

Bug fixes

  • Fix duplicated hooks when paginating e02845f
  • Fix dnsCache: true having no effect 043c950

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