got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 16.0.0 to 16.2.0
2 releases in betweenevery note read
Reading releases, release notes and advisories…
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
7 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.
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.