Packages

got

16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed

Your version

5.0.0

major18 Oct 2015Where it was published

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

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 response event on error (in stream mode)

  • Catch auth option passed in url string

  • Add retries on network errors

  • Deferred response event

  • Coverage Status

Changes

v4.2.0...v5.0.0

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.