Skip to content

Releases: sindresorhus/got

v8.1.0

11 Feb 15:22
Compare
Choose a tag to compare

v8.0.3...v8.1.0

v8.0.2

13 Jan 13:58
Compare
Choose a tag to compare
  • Fix browser usage. 30c39bc
  • Validate that url is UTF-8 encoded. 4f5e6bf

v8.0.1...v8.0.2

v8.0.1

01 Dec 12:51
Compare
Choose a tag to compare
  • Correctly forwards stream errors. 974473a
  • Fix the request not aborting if the connection cannot be established and the timeout expires. 98d226c

v8.0.0...v8.0.1

v8.0.0

16 Nov 10:07
Compare
Choose a tag to compare

v7.1.0...v8.0.0

v7.1.0

30 Jun 15:54
Compare
Choose a tag to compare

v7.0.0...v7.1.0

7.0.0

29 May 08:07
Compare
Choose a tag to compare

Breaking changes

  • Changes stringifying options behavior. 51a3eaf
    Setting the body option to be an object to stringify is no longer possible without setting either the form option for URL encoding or the json option for JSON encoding. Previously, Got would use URL encoding by default, now it will throw an error. Since the json option also means Got will decode a JSON response for you, setting both options to true will encode the request as URL and decode the response as JSON.
  • Now also redirects on 307, 308, 303 responses. b45896a
  • The timeout option now applies to the whole request and we added ability to control the timeout of the individual phases. 7964f2c

Highlights

  • Added ability to cancel in-progress requests! 9ef7a5a
  • Added WHATWG URL support. f501fc2
  • Improve request retries by reducing the number of retries and making delays shorter. 14d0859
  • Only throws ParseError when parsing fails on 2xx responses. c86706b
  • No longer throws HTTPError on 304 responses. 7b12b75
  • Added protocol property to errors. 919703c
  • Added url property to errors. a287f8e
  • Includes response headers in errors, and redirect URLs in errors and the response. 8b4d06e
  • Improve use in Electron. 2130570 6fc1902

All changes

v6.7.1...v7.0.0

6.7.0

29 Dec 10:20
Compare
Choose a tag to compare

This minor release fixes timeout behaviour to correspond with readme:

Milliseconds to wait for a server to send response headers before aborting request with ETIMEDOUT error.

Before this release ESOCKTIMEDOUT can be thrown (which can lead to false-positive errors for keep-alive sockets).

6.6.0

01 Nov 08:52
Compare
Choose a tag to compare
  • Add requestUrl to response in streaming mode (#230)
  • new Buffer() => Buffer.from() 5888ca7
  • Add url to response (#236)
  • timed-out updated to ^3.0.0

5.7.0 – Last minor release of 5.x branch

01 Nov 08:48
Compare
Choose a tag to compare

This is last release of 5.x branch (which compatible with old versions of Node.JS). In this release we pulled all fixes (only UTF in headers is not cherry-picked):

  • Add url to response (#236)
  • Add requestUrl to response in streaming mode (#230)
  • Allow non-plain object as request body (#217)
  • Fixed unexpected EOF when decompressing content
  • Detect formdata body and set content-type header (#220)
  • Add a requestUrl property to the response object (#205)
  • Add redirect url to response object (#191)

🎃 Happy Halloween!

6.5.0

14 Sep 09:12
Compare
Choose a tag to compare
  • Add a redirect url property to the response object (#191)
  • Add a requestUrl property to the response object (#205)
  • ⬆️ get-stream bumped to ^2.3.0 – which fixes some nasty encoding bugs
  • Fix location encoding (#214)
  • Detect formdata body and set content-type header (#220)
  • ⬆️ unzip-response bumped to ^2.0.1 – which fixes unexpected EOF error
  • Allow non-plain object as request body (#217)

Changes

v6.3.0...v6.5.0