Skip to content

Releases: sindresorhus/got

v11.8.1

10 Dec 11:47
Compare
Choose a tag to compare

v11.8.0

20 Oct 17:14
Compare
Choose a tag to compare
  • Fix for sending files with size 0 on stat (#1488) 7acd380
  • beforeRetry allows stream body if different from original (#1501) 3dd2273
  • Set default value for an options object (#1495) 390b145

v11.7.0...v11.8.0

v11.7.0

18 Sep 21:33
Compare
Choose a tag to compare

Improvements

Fixes

  • Fix a regression where body was sent after redirect 88b32ea
  • Fix destructure error on promise.json() c97ce7c
  • Do not ignore userinfo on a redirect to the same origin 52de13b

v11.6.2...v11.7.0

v11.6.2

10 Sep 14:05
Compare
Choose a tag to compare

Bug fixes

  • Inherit the prefixUrl option from parent if it's undefined (#1448) a3da70a
  • Prepare a fix for hanging promise on Node.js 14.10.x 29d4e32
  • Prepare for Node.js 15.0.0 c126ff1

Docs

Tests

  • Downgrade Travis CI Node.js version to 14.9.0 (#1454) 27470b5

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