Packages

got

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

Upgrading got From 10.0.3 to 16.2.0

95 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 10.0.3Newest 10.x10.7.0Clears its advisory11.8.5
  1. 10.0.3yours
  2. 17 releases
  3. 11.0.0major
  4. 22 releases
  5. 11.8.5security
  6. 1 release
  7. 12.0.0major
  8. 4 releases
  9. 12.1.0security
  10. 11 releases
  11. 13.0.0major
  12. 14.0.0major
  13. 22 releases
  14. 15.0.0major
  15. 8 releases
  16. 16.0.0major
  17. 1 release
  18. 16.2.0target

Before you upgrade

Tick each one off as you go
  • Breaking16.0.0
  • Breaking16.0.0
  • Breaking16.0.0
  • Breaking16.0.0
  • Breaking16.0.0
  • Breaking16.0.0
  • Breaking15.0.0
  • Breaking15.0.0
  • Breaking15.0.0
  • Breaking15.0.0

Security

Fixes 1 advisory affecting 10.0.3

Release by release

  1. 16.2.0

    30 Oct 20261 new
    • New

      Add Standard Schema support to .json() (#2477) d6fb3bda

  2. 16.1.0

    13 Oct 20264 new · 17 fixes
    • New

      Accept number values in headers 6fffc9e

    • New

      Export the Timings, DnsCacheLookup, and DnsCacheOptions types d012d1d eccaaca

    • New

      Retry FormData bodies by re-serializing them instead of failing 90c6ec1

    • New

      Support the x-gzip content coding and stacked content codings 5550a79

  3. 16.0.0

    Migration needed30 Aug 20264 new · 9 fixes
    • Breaking

      Rewrite HTTP/2 support and drop the http2-wrapper dependency (#2464) 1e157c4

    • Breaking

      Rewrite DNS cache and drop the cacheable-lookup dependency (#2463) bfc400b

    • Breaking

      A beforeRequest hook, an afterResponse retry, or a pagination step that moves the request to a different origin now strips credentials and drops the body (#2465) dd3b295

    • Breaking

      copyPipedHeaders no longer copies credentials 1d233ba

  4. 15.1.0

    2 Jul 20261 new
  5. 15.0.7

    28 Jun 20261 fix
    • Fixed

      Preserve request body on cross-origin 307 and 308 redirects (#2460) aee9249

  6. 15.0.6

    21 Jun 20261 fix
    • Fixed

      Fix searchParams setter dropping the value when a URL is set (#2454) 5772bf2

  7. 15.0.5

    6 May 20261 fix
    • Fixed

      Handle abort signals added by handlers 74e3167

  8. 15.0.4

    6 May 20261 fix
    • Fixed

      Fix aborting during download progress 11a2202

64 other lines we could not sort, mostly version bumps
  • Invalid options now throw: an empty method, a negative or fractional maxRedirects or retry.limit, a prefixUrl with a query string or fragment, and a handlers entry that is not a function.

    16.1.0
  • A stream with a body, json, or form option now rejects writes, as documented.

    16.1.0
  • The promise response event now only fires for the final response, not for every retry attempt.

    16.1.0
  • got.extend({body}) (and json, form) no longer sends the payload with every request of the instance. Payloads are never merged with defaults.

    16.1.0
  • instance.extend() now inherits the parent's mutableDefaults, like got.extend(instance).

    16.1.0
  • A HEAD request is no longer changed to GET on a 301, 302, or 303 redirect.

    16.1.0
  • response.body no longer keeps a leading UTF-8 byte order mark, and JSON with a byte order mark now parses.

    16.1.0
  • Got now throws a ContentLengthMismatchError by default if Content-Length doesn't match the actual body size. Set {strictContentLength: false} to restore the old behavior.

    15.0.0
  • Custom calculateDelay functions are now only called when a retry is actually allowed by limit, methods, statusCodes, and errorCodes. If your calculateDelay was previously used to override retry eligibility unconditionally, set {retry: {enforceRetryRules: false}}.

    15.0.0
  • Improve TypeScript types with generic extend (#2353) 15ca4a0

    14.4.0

22 internal lines (docs, tests, tooling) left out.

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.