got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 14.6.6 to 15.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 9
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
Release by release
- Breaking
Require Node.js 22 b933476
- Breaking
Remove promise cancel API a06ac6c
- Breaking
Remove
isStreamoption c241c6c - Breaking
Use native
FormDataglobal 670b228
- Breaking
2 other lines we could not sort, mostly version bumps
- 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}}.
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.