github sindresorhus/got v5.2.0
5.2.0

  • 54bd6f5bbad9590be6ffc7baf004c381bf1ea7a9 default intervals between delays decreased - now they are around 1s, 2s, 4s, 8s, etc...
  • a10a99e8ae6cfb84522795605ce0014877fb9f52 retries option accepts backoff function, for example you can:
// Constant delay of 10ms for 5 iterations
got('google.com', {
    retries: iter => iter < 5 && 10
});

// Infinity retries with constant delay
got('google.com', {
    retries: () => 10
});

https://github.com/sindresorhus/got/compare/v5.1.0...v5.2.0

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