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. 12.x
  2. 12.0.2

    16 Mar 2022
    • Fix encoding option with {responseType: 'json'} (#1996) 0703318

  3. 12.0.1

    9 Jan 2022
  4. 12.0.0

    10 Dec 2021
    • Breaking

      Got exports an Option class that is specifically designed to parse and validate Got options.
      It is made of setters and getters that provide fast normalization and more consistent behavior.

    • Breaking

      The init hook now accepts a second argument: self, which points to an Options instance.

    • Breaking

      The init hooks are ran only when passing an options object explicitly.

  5. 11.x
  6. 11.8.6

    8 Dec 2022
    • Destroy request object after successful response

  7. 11.8.5

    25 May 2022
    • Security

      Backport security fix 861ccd9

  8. 11.8.3

    18 Nov 2021
  9. 11.8.2

    26 Feb 2021
    • Make the dnsCache option lazy (#1529) 3bd245f
      This slightly improves Got startup performance and fixes an issue with Jest.

  10. 11.8.1

    10 Dec 2020
  11. 11.8.0

    20 Oct 2020
    • 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

  12. 11.7.0

    18 Sep 2020
  13. 11.6.2

    10 Sep 2020
    • Inherit the prefixUrl option from parent if it's undefined (#1448) a3da70a

  14. 11.6.1

    8 Sep 2020
  15. 11.6.0

    2 Sep 2020
    • Add retry stream event (#1384) 7072198

    • Add types for http-cache-semantics options 2e2295f

    • Make CancelError inherit RequestError 1f132e8

  16. 11.5.2

    7 Aug 2020
    • Fix duplicated hooks when paginating e02845f

    • Fix dnsCache: true having no effect 043c950

  17. 11.5.1

    16 Jul 2020
  18. 11.5.0

    7 Jul 2020
  19. 11.4.0

    4 Jul 2020
    • 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

  20. 11.3.0

    5 Jun 2020
  21. 11.2.0

    1 Jun 2020
    • 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

  22. 11.1.4

    16 May 2020
  23. 11.1.3

    10 May 2020
  24. 11.1.2

    8 May 2020
  25. 11.1.1

    6 May 2020
    • Improve Node.js 14 compatibility 50ef99a

    • Fix got.mergeOptions() regression 157e02b

    • Fix hanging promise when using cache 7b19e8f

  26. 11.1.0

    2 May 2020
  27. 11.0.3

    30 Apr 2020
    • Limit number of requests in pagination to prevent accidental overflows (#1181) 4344c3a

    • Fix promise rejecting before retry b927e2d

    • Fix options.searchParams duplicates 429db40

  28. 11.0.2

    22 Apr 2020
    • Fix response.statusMessage being null 965bd03

    • Update the http2-wrapper dependency to 1.0.0-beta.4.4 4e8de8e

    • Use Merge as it's stricter than the intersection operator d3b972e

  29. 11.0.1

    20 Apr 2020
    • HTTPErrors have unspecified response body

    • Options are duplicated while merging

  30. 11.0.0

    20 Apr 2020
    • Breaking

      The options.encoding behavior has been reverted back to the Got 9 behavior.
      In other words, the options is only meant for the Got promise API.
      To set the encoding for streams, simply call stream.setEncoding(encoding).

    • Breaking

      The error name GotError has been renamed to RequestError for better readability and to comply with the documentation.

    • Breaking

      The agent option now accepts only an object with http, https and http2 properties.
      While the http and https properties accept native http(s).Agent instances, the http2 property must be an instance of http2wrapper.Agent or be undefined.

  31. 10.x
  32. 10.7.0

    24 Mar 2020
    • Fix got.paginate(…) TypeScript typings (#1099) 0b798ea

    • Pass allItems and currentItems to _pagination.paginate() (#1100) 1cddd52

    • Do not ignore decompress-response when bundling (#1105) 88f973f

  33. 10.6.0

    20 Feb 2020
  34. 10.5.7

    16 Feb 2020
    • Fix Init hooks not being called if extended acefaa4

  35. 10.5.6

    16 Feb 2020
  36. 10.5.5

    8 Feb 2020
    • Fix merging pagination options 1f363b9

  37. 10.5.4

    8 Feb 2020
    • Fix _pagination not falling back to defaults ff1dba1

  38. 10.5.3

    8 Feb 2020
    • Fix unhandled errors if throwing in an async handler 518d95a

  39. 10.5.2

    7 Feb 2020
    • Forgot to include required p-event dependency 8373112

  40. 10.5.1

    7 Feb 2020
  41. 10.5.0

    6 Feb 2020
  42. 10.4.0

    31 Jan 2020
  43. 10.3.0

    24 Jan 2020
    • Allow request body to be sent with a DELETE request (#1037) 17d629a

    • Reject normalization errors with CancelableRequest (#1035) fddecab

    • Export GotRequestMethod TypeScript type (#1017) f02694e

  44. 10.2.2

    11 Jan 2020
    • Do not include a request option in normalized http options 61009b3

  45. 10.2.1

    1 Jan 2020
    • Ensure got.mergeOptions(...) can be assigned to defaults (#1008) 1360a1b

    • The url option is mutually exclusive with the url input argument e0f8aab

    • Update RetryObject['error'] TypeScript types 5008bf7

  46. 10.2.0

    23 Dec 2019
    • Soft-deprecate electron.net support (#995) b2f8ace

    • Do not throw if hostname is not present dc53747

    • Fix unhandled Premature close errors fa60b5f

  47. 10.1.0

    19 Dec 2019
    • Retry after certain Cloudflare errors (#991) 0569d45

    • Fix content-length header not being set when using custom content-type 3149340

    • Emit timeout errors as soon as possible 912c2e5 7bf92f4

  48. 10.0.4

    12 Dec 2019
    • Fix type conflicts for URL and URLSearchParams types (#983) cd4226d
      Just working around yet another TypeScript bug: #34960

  49. 10.0.3

    9 Dec 2019
    • Fix the responseType option

    • Fix unhandled Premature close and Request timed out errors

    • Make options.path backwards-compatible

  50. 10.0.2

    7 Dec 2019
    • Fix TypeScript type problem with URL and URLSearchParams globals (#969) 2d5e28d

    • Fix got.mergeOptions(...) TypeScript type (#953) b962d08

    • Fix unhandled timeout errors when connection drops 5a8f461

  51. 10.0.1

    1 Dec 2019
    • Fix using the json option with got.stream.post 2ec5c4d

  52. 10.0.0

    1 Dec 2019
    • Breaking

      Require Node.js 10 633651f

    • Breaking

      Remove support for protocol-less URLs in the url argument 92bc808

    • Breaking

      Rename the query option to searchParams and make it stricter b223663 5376216 518f0f5

  53. 9.x
  54. 9.6.0

    17 Jan 2019

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.