got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 6.3.0 to 16.2.0
129 releases in betweennotes for 124
Reading releases, release notes and advisories…
Counted from 124 of 129 release notes. Advisories are counted from the advisory database, in full.
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
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
Security
Fixes 1 advisory affecting 6.3.0
- Got allows a redirect to a UNIX socketmoderate · GHSA-pfrx-2q88-qq97
- 12.1.0
- 11.8.5
Backport security fix 861ccd9
Release by release
- New
Add Standard Schema support to
.json()(#2477) d6fb3bda
- New
- New
Accept number values in
headers6fffc9e - New
Export the
Timings,DnsCacheLookup, andDnsCacheOptionstypes d012d1d eccaaca - New
Retry
FormDatabodies by re-serializing them instead of failing 90c6ec1 - New
Support the
x-gzipcontent coding and stacked content codings 5550a79
- New
- Breaking
Rewrite HTTP/2 support and drop the
http2-wrapperdependency (#2464) 1e157c4 - Breaking
Rewrite DNS cache and drop the
cacheable-lookupdependency (#2463) bfc400b - Breaking
A
beforeRequesthook, anafterResponseretry, or a pagination step that moves the request to a different origin now strips credentials and drops the body (#2465) dd3b295 - Breaking
copyPipedHeadersno longer copies credentials 1d233ba
- Breaking
- New
Add
allowAbsoluteUrlsoption (#2462) 1c88e88
- New
- Fixed
Preserve request body on cross-origin 307 and 308 redirects (#2460) aee9249
- Fixed
- Fixed
Fix
searchParamssetter dropping the value when a URL is set (#2454) 5772bf2
- Fixed
- Fixed
Handle abort signals added by handlers 74e3167
- Fixed
- Fixed
Fix aborting during download progress 11a2202
- Fixed
101 other lines we could not sort, mostly version bumps
- 16.1.0
Invalid options now throw: an empty
method, a negative or fractionalmaxRedirectsorretry.limit, aprefixUrlwith a query string or fragment, and ahandlersentry that is not a function. - 16.1.0
A stream with a
body,json, orformoption now rejects writes, as documented. - 16.1.0
The promise
responseevent now only fires for the final response, not for every retry attempt. - 16.1.0
got.extend({body})(andjson,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'smutableDefaults, likegot.extend(instance). - 16.1.0
A
HEADrequest is no longer changed toGETon a301,302, or303redirect. - 16.1.0
response.bodyno longer keeps a leading UTF-8 byte order mark, and JSON with a byte order mark now parses. - 15.0.0
Got now throws a
ContentLengthMismatchErrorby default ifContent-Lengthdoesn't match the actual body size. Set{strictContentLength: false}to restore the old behavior. - 15.0.0
Custom
calculateDelayfunctions are now only called when a retry is actually allowed bylimit,methods,statusCodes, anderrorCodes. If yourcalculateDelaywas previously used to override retry eligibility unconditionally, set{retry: {enforceRetryRules: false}}. - 14.4.0
Improve TypeScript types with generic extend (#2353) 15ca4a0
29 internal lines (docs, tests, tooling) left out.
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.