p-retry
9.0.0 · 2 Nov 2026MIT78.2M / weekRepositoryHomepagenpmAtom feed
7.1.1 is the newest release of 7.x.
In short
3 breaking1 new
- Breaking
Require Node.js 20 3bdb53a
- Breaking
onFailedAttemptandshouldRetrynow receive acontextobject instead of a decoratederrorbff36bb - Breaking
Remove the
foreveroption (#79) 6a89827
Release note
Breaking
- Breaking
Require Node.js 20 3bdb53a
- Breaking
onFailedAttemptandshouldRetrynow receive acontextobject instead of a decoratederrorbff36bbYou must now must access the error as
object.errorinstead ofobject.The use of
.attemptNumberand.retriesLeftdid not change.
- Breaking
Remove the
foreveroption (#79) 6a89827Many use-cases can use
{retries: Infinity}instead for infinite retries.
Improvements
Rewrite the package to not depend on the
retrypackage (#79) 6a89827This is a full rewrite, so test carefully.
Add
makeRetriablemethod 1a81c1e
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.