New
v7.0.0
Breaking
- Require Node.js 20 3bdb53a
onFailedAttemptandshouldRetrynow receive acontextobject instead of a decoratederrorbff36bb- You must now must access the error as
object.errorinstead ofobject. - The use of
.attemptNumberand.retriesLeftdid not change.
- You must now must access the error as
- Remove the
foreveroption (#79) 6a89827- Many use-cases can use
{retries: Infinity}instead for infinite retries.
- Many use-cases can use
Improvements
- Rewrite the package to not depend on the
retrypackage (#79) 6a89827- This is a full rewrite, so test carefully.
- Add
makeRetriablemethod 1a81c1e
https://github.com/sindresorhus/p-retry/compare/v6.2.1...v7.0.0