Packages

got

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

Upgrading got From 15.0.4 to 16.2.0

7 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 15.0.4Newest 15.x15.1.0

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

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

7 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

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.