github sindresorhus/got v5.0.0
5.0.0

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

  • 0109725b7406e8b7005a4a435a0617179b1dc2da Reject promise on internal exception
  • df26918b3d39ac803ecc5020c92e5a7d8c3d88b3 Catch callbacks in stream mode
  • f9f2807e63635432ab175824859caa70e3c583aa Reduce size for browserify
  • 066e6125e0c5da942650e67bd9b920c949718704 Remove response event on error (in stream mode) (#110)
  • 62ff082deb41e711ae29c9e09ce173eef04390d6 Catch auth option passed in url string (#106)
  • 6c59ce8b346e3171e9388c18d78ccc5f38a96c8e Add retries on network errors (#98)
  • 9ffbbdf5aba98892519282ad7799a991c0b04483 Deferred response event
  • 013a2b57f8d9d0417c89923ee93b0a8a4283cbdd Coverage Status

Changes

https://github.com/sindresorhus/got/compare/v4.2.0...v5.0.0

latest releases: v11.7.0, v11.6.2, v11.6.1...
5 years ago