got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
5.7.1 is the newest release of 5.x.
In short
8 new
Security
1 advisory affects 5.0.0; 11.8.5 fixes them
- ModerateGot allows a redirect to a UNIX socketGHSA-pfrx-2q88-qq97 · 19 Jun 2022Fixed in 11.8.5
Release note
zjvxrhf
Retries
We added retries on network failures with noisy exponential backoff. By default got will try five times, before returning error.
Retries only applies to network errors (because network is not reliable). Requests with server errors, like 50x status codes, will not be retried.
You can disable them by passing 0 to retries option.
Update
$ npm install --save got@5
Highlights
Reject promise on internal exception
Catch callbacks in stream mode
Reduce size for browserify
Remove
responseevent onerror(in stream mode)Catch
authoption passed inurlstringAdd retries on network errors
Deferred
responseevent
Changes
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.