got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 6.7.1 to 7.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 9
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
Security
1 advisory still affects 7.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
Changes stringifying options behavior. 51a3eaf Setting the
bodyoption to be an object to stringify is no longer possible without setting either theformoption for URL encoding or thejsonoption for JSON encoding. Previously, Got would use URL encoding by default, now it will throw an error. Since thejsonoption also means Got will decode a JSON response for you, setting both options totruewill encode the request as URL and decode the response as JSON. - Breaking
Now also redirects on 307, 308, 303 responses. b45896a
- Breaking
The
timeoutoption now applies to the whole request and we added ability to control the timeout of the individual phases. 7964f2c - New
Added ability to cancel in-progress requests! 9ef7a5a
- 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.