got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 9.1.0 to 9.6.0
10 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 8
- new
- 10
- fixes
Before you upgrade
Tick each one off as you go- Breaking9.5.0
Security
1 advisory still affects 9.6.0
- Got allows a redirect to a UNIX socketmoderate · GHSA-pfrx-2q88-qq97
Upgrading to 11.8.5 clears it.
Release by release
- New
Add
inithook (#683) 677d0a4 - New
Add
beforeErrorhook (#696) 29ffb44
- New
- Fixed
Fix memory leak when using socket timeout and keepalive agent (#694) 203dadc
- Fixed
Fix strange timing data for HTTP requests d136e61
- Fixed
- Breaking
Remove error thrown for URLs with auth component (#676) 5d20a43
- Breaking
- New
Add ability to specify which network error codes to retry on. 9f3a099
- New
Add Got options onto responses and errors. 33b838f
- New
- Fixed
Don't override headers defined in the
urlargument when it's an object. 191e00a - Fixed
Don't set
content-lengthheader when upload body size isnull. 311b184
- Fixed
- New
Add option to allow defaults to be mutable. b392f60
- New
Add
beforeRedirect,beforeRetry, andafterResponsehooks. 325409c - New
Support Electron renderer timings. 25f18be
- New
- Fixed
Don't override hooks when merging arguments. 3ad3950
- Fixed
13 other lines we could not sort, mostly version bumps
- 9.5.1
Correctly preserve original status code when returning cached responses d136e61
- 9.5.0
Upgrade dependencies a1eadfe
- 9.4.0
Correctly clear
sockettimeout on error. c8e358f - 9.3.2
No new timeouts after an error. d8dd881
- 9.3.0
Retry on a few more errors. fbaaa2a
- 9.3.0
Include
bodyproperty inHTTPError. fdc0fa6 - 9.3.0
Transform user set headers to lowercase. a07b2be
- 9.2.2
Gracefully handle invalid
Locationredirect URLs. (#605) 7ae6939 - 9.2.2
Merge hooks on
got.extend(). (#608) 292f78a - 9.2.0
Experimental HTTP2 support. (#583) 8191daf
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.