got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 8.3.2 to 9.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 5
- changes to make
- 0
- advisories fixed
- 8
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0
Security
1 advisory still affects 9.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
Requires Node.js 8. You might ask, why not follow the Node.js LTS cycle and target Node.js 6. In short, async/await and WHATWG URL, which enabled us to simplify the codebase and reduce the dependency-tree considerably. Got v8 is a stable release, and you can continue using that if you need to support Node.js 6.
- Breaking
The retry functionality was rewritten to improve its reliability and to support retrying on HTTP status codes. Previously, it only retried on some network failures. 98b5664 The option was renamed from
retriestoretryand it now accepts either a number of retries or an object with the ability to specify the number of retries, HTTP status codes and methods to retry on, and a function to decide how to retry. See the docs for more. Migration: - Breaking
Renamed the
.canceledproperty to.isCanceled. 00fdeea - Breaking
Dropped support for the
bodyoption being an Array whenform: true. dfe5b1c The built-innew URLSearchParams()API doesn't support this either and it's a weird use-case. If you need support for this, just don't setform: trueand handle stringifying yourself.
- Breaking
2 other lines we could not sort, mostly version bumps
- 9.0.0
100% code coverage! Doing this caught a couple of bugs, so definitely worth doing even if 100% doesn't mean bug-free.
- 9.0.0
The codebase was significantly refactored for better readability and maintainability. b54b680
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.