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…
- 8
- changes to make
- 0
- advisories fixed
- 7
- new
- 22
- fixes
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
- Got allows a redirect to a UNIX socketmoderate · GHSA-pfrx-2q88-qq97
Upgrading to 11.8.5 clears it.
Release by release
- Breaking
The
options.encodingbehavior 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 callstream.setEncoding(encoding). - Breaking
The error name
GotErrorhas been renamed toRequestErrorfor better readability and to comply with the documentation. - Breaking
The
agentoption now accepts only an object withhttp,httpsandhttp2properties. While thehttpandhttpsproperties accept nativehttp(s).Agentinstances, thehttp2property must be an instance ofhttp2wrapper.Agentor be undefined. - Breaking
The
dnsCacheoption is now set to a default instance ofCacheableLookup. It cannot be aMap-like instance anymore. The underlyingcacheable-lookuppackage has received many improvements, for example, it has receivedhostsfile support! Additionally, thecacheAdapteroption has been renamed tocache. 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.
- Breaking
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.