Repository navigation
Releases: sindresorhus/p-retry
Releases · sindresorhus/p-retry
Release list
v8.0.1
v8.0.0
Breaking
- Require Node.js 22 85cdece
- Change retry callback order 616306e
- Callback order changed from
onFailedAttempt→shouldConsumeRetry→shouldRetrytoshouldConsumeRetry→onFailedAttempt→shouldRetry. - Consumption decisions are now made before failure notifications and retry decisions.
- Callback order changed from
Improvements
- Add
retryDelaytoonFailedAttemptcontext (#66) 96cce98 - Fix
TypeErrorretry handling f011d2e - Harden retry timing and callback validation 9d47b60
v7.1.1
v7.1.0
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
v7.0.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
v6.2.1
v6.2.0
- Add
shouldRetryoption (#75) b993a96
v6.1.0
- Move network error detection into a separate package ba073f3