Packages

got

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

Upgrading got From 1.2.1 to 16.2.0

179 releases in betweennotes for 156

Reading releases, release notes and advisories…

Other targets from 1.2.1Newest 1.x1.2.2Clears its advisory11.8.5
  1. 1.2.1yours
  2. 1 release
  3. 2.0.0major
  4. 16 releases
  5. 3.0.0major
  6. 4 releases
  7. 4.0.0major
  8. 3 releases
  9. 5.0.0major
  10. 14 releases
  11. 6.0.0major
  12. 14 releases
  13. 7.0.0major
  14. 1 release
  15. 8.0.0major
  16. 8 releases
  17. 9.0.0major
  18. 11 releases
  19. 10.0.0major
  20. 20 releases
  21. 11.0.0major
  22. 22 releases
  23. 11.8.5security
  24. 1 release
  25. 12.0.0major
  26. 4 releases
  27. 12.1.0security
  28. 11 releases
  29. 13.0.0major
  30. 14.0.0major
  31. 22 releases
  32. 15.0.0major
  33. 8 releases
  34. 16.0.0major
  35. 1 release
  36. 16.2.0target
73+
changes to make
1
advisory fixed
166+
new
243+
fixes

Counted from 156 of 179 release notes. Advisories are counted from the advisory database, in full.

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 1.2.1

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

123 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

29 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.