Skip to content

5.2.0

Compare
Choose a tag to compare
@floatdrop floatdrop released this 02 Dec 07:57
· 1219 commits to main since this release
  • 54bd6f5 default intervals between delays decreased - now they are around 1s, 2s, 4s, 8s, etc...
  • a10a99e 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
});

v5.1.0...v5.2.0