Packages

got

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

Upgrading got From 10.7.0 to 11.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 10.7.0Clears its advisory11.8.5Latest16.2.0
  1. 10.7.0yours
  2. 11.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking11.0.0
  • Breaking11.0.0
  • Breaking11.0.0
  • Breaking11.0.0
  • Breaking11.0.0
  • Breaking11.0.0
  • Breaking11.0.0
  • Breaking11.0.0

Security

1 advisory still affects 11.0.0

Upgrading to 11.8.5 clears it.

Release by release

  1. 11.0.0

    Migration needed20 Apr 20207 new · 22 fixes
    • 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.

    • Breaking

      The dnsCache option is now set to a default instance of CacheableLookup. It cannot be a Map-like instance anymore. The underlying cacheable-lookup package has received many improvements, for example, it has received hosts file support! Additionally, the cacheAdapter option has been renamed to cache. Note that it's no longer passed to Keyv, so you need to pass a Keyv instance it if you want to save the data for later.

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.