Releases: sindresorhus/p-retry
Releases · sindresorhus/p-retry
v7.0.0-0
Breaking
- Require Node.js 20 3bdb53a
onFailedAttempt
andshouldRetry
now receive acontext
object instead of a decoratederror
bff36bb- You must now must access the error as
object.error
instead ofobject
. - The use of
.attemptNumber
and.retriesLeft
did not change.
- You must now must access the error as
- Remove the
forever
option (#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
retry
package (#79) 6a89827- This is a full rewrite, so test carefully.
- Add
makeRetriable
method 1a81c1e
v6.2.1
v6.2.0
- Add
shouldRetry
option (#75) b993a96
v6.1.0
- Move network error detection into a separate package ba073f3
v6.0.0
v5.1.2
v5.1.1
- Lock the
@types/retry
dependency 13f6350
v4.6.2
v5.1.0
- Support
AbortController
(#59) 352d62a