Packages

got

16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed

Your version

188 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 9.x
  2. 9.5.1

    13 Jan 2019
    • Fix memory leak when using socket timeout and keepalive agent (#694) 203dadc

    • Fix strange timing data for HTTP requests d136e61

    • Correctly preserve original status code when returning cached responses d136e61

  3. 9.5.0

    18 Dec 2018
    • Removed

      Remove error thrown for URLs with auth component (#676) 5d20a43

    • Upgrade dependencies a1eadfe

  4. 9.4.0

    10 Dec 2018
    • Add ability to specify which network error codes to retry on. 9f3a099

    • Add Got options onto responses and errors. 33b838f

    • Correctly clear socket timeout on error. c8e358f

  5. 9.3.2

    8 Nov 2018
  6. 9.3.1

    3 Nov 2018
    • Don't override headers defined in the url argument when it's an object. 191e00a

    • Don't set content-length header when upload body size is null. 311b184

  7. 9.3.0

    30 Oct 2018
    • Add option to allow defaults to be mutable. b392f60

    • Add beforeRedirect, beforeRetry, and afterResponse hooks. 325409c

    • Retry on a few more errors. fbaaa2a

  8. 9.2.2

    17 Sep 2018
    • Gracefully handle invalid Location redirect URLs. (#605) 7ae6939

    • Don't override hooks when merging arguments. 3ad3950

    • Merge hooks on got.extend(). (#608) 292f78a

  9. 9.2.1

    6 Sep 2018
    • Don't cache response when HTTP error was received. #597 b8480f3

    • Fix merging default & custom handlers. 5f191b9

  10. 9.2.0

    31 Aug 2018
  11. 9.1.0

    23 Aug 2018
    • Add got.mergeInstances() which lets you easily compose multiple instances of Got into a single one. It's like plugins without any of the plugin mess. (#510) f0b190a

    • Normalize the URL in the baseUrl option. (#579) c901c46

    • Follow redirects with encoded URI. (#564) 3d98b9b

  12. 9.0.0

    4 Aug 2018
    • Breaking

      Requires Node.js 8.
      You might ask, why not follow the Node.js LTS cycle and target Node.js 6. In short, async/await and WHATWG URL, which enabled us to simplify the codebase and reduce the dependency-tree considerably. Got v8 is a stable release, and you can continue using that if you need to support Node.js 6.

    • Breaking

      The retry functionality was rewritten to improve its reliability and to support retrying on HTTP status codes. Previously, it only retried on some network failures. 98b5664
      The option was renamed from retries to retry and it now accepts either a number of retries or an object with the ability to specify the number of retries, HTTP status codes and methods to retry on, and a function to decide how to retry. See the docs for more.
      Migration:
      - { retries: 4 } → { retry: 4 }
      - { retries: () => { … } } → { retry: { retries: () => { … } } }

    • Breaking

      Renamed the .canceled property to .isCanceled. 00fdeea

  13. 8.x
  14. 8.3.2

    3 Jul 2018

    Fix Got throwing an error in some cases when trying to pipe one got.stream into another one. 7ac705f

  15. 8.3.1

    1 May 2018
    • No longer overrides accept-encoding header if already provided. 81f2537

    • Sets content-length header when using form-data if not already set. de9514d

    • Now clears the progress interval if the socket has been destroyed. 82763c8

  16. 8.3.0

    9 Mar 2018
    • Fixed socket connect memory leak. 13d6b68

    • Prevented uncaught exception in some cases. 43b51ba

    • No longer continues the request after cancelation. 9a646a3

  17. 8.2.0

    19 Feb 2018

    No longer sets the default accept-encoding: gzip,deflate header if the decompress option is false.

  18. 8.1.0

    11 Feb 2018
  19. 8.0.3

    20 Jan 2018
  20. 8.0.2

    13 Jan 2018
  21. 8.0.1

    1 Dec 2017
    • Correctly forwards stream errors. 974473a

    • Fix the request not aborting if the connection cannot be established and the timeout expires. 98d226c

  22. 8.0.0

    16 Nov 2017
  23. 7.x
  24. 7.1.0

    30 Jun 2017
  25. 7.0.0

    29 May 2017
    • Breaking

      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.

    • Breaking

      Now also redirects on 307, 308, 303 responses. b45896a

    • Breaking

      The timeout option now applies to the whole request and we added ability to control the timeout of the individual phases. 7964f2c

  26. 6.x
  27. 6.7.1

    29 Dec 2016
  28. 6.7.0

    29 Dec 2016

    This minor release fixes timeout behaviour to correspond with readme:

  29. 6.6.1 – 6.6.33 releases without a noteShow each
  30. 6.6.0

    1 Nov 2016
    • Add requestUrl to response in streaming mode

    • new Buffer() => Buffer.from() 5888ca7

    • Add url to response

  31. 6.5.0

    14 Sep 2016
    • Add a redirect url property to the response object

    • Add a requestUrl property to the response object

    • ⬆️ get-stream bumped to ^2.3.0 – which fixes some nasty encoding bugs

  32. 6.3.0

    6 Apr 2016

    This option disables following redirects and got will not treat them as errors:

  33. 6.2.0

    3 Mar 2016
    • statusCode and statusMessage added to ParseError object

  34. 6.1.2

    28 Feb 2016
    • Fixes errors on parsing empty JSON body

    • Fixes default user-agent to be RFS complaint

  35. 6.1.1

    25 Jan 2016
    • Fixes redirects with uppercased method option

  36. 6.1.0

    16 Jan 2016

    In got@5 we introduced retries option, which (as name says) retry request on every Error. For most errors this was right thing to do, but in case ENETUNREACH and ENOTFOUND retries are pointless.

  37. 6.0.1 – 6.0.22 releases without a noteShow each
  38. 6.0.0

    7 Jan 2016

    This release drops Node.js 0.10/0.12 support, so we replaced lots of modules and reduce dependency tree more than twice (see PR overview). Module folder size reduced from 1.1 MB to 216 KB.

  39. 5.x
  40. 5.7.1

    2 Nov 2016
  41. 5.7.0

    1 Nov 2016
    • Add url to response

    • Add requestUrl to response in streaming mode

    • Allow non-plain object as request body

  42. 5.4.2 – 5.6.04 releases without a noteShow each
  43. 5.4.1

    25 Jan 2016

    Reading the note…

  44. 5.4.0

    16 Jan 2016

    Reading the note…

  45. 5.3.2

    13 Jan 2016

    Reading the note…

  46. 5.3.1

    12 Jan 2016
    • Missing exception in helper methods for stream mode.

    • Fixed piping response in response event for stream mode.

  47. 5.3.0

    20 Dec 2015

    Reading the note…

  48. 5.2.1

    15 Dec 2015

    Reading the note…

  49. 5.2.0

    2 Dec 2015

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.