Packages

p-retry

9.0.0 · 2 Nov 2026MIT78.2M / weekRepositoryHomepagenpmAtom feed

Your version

7.0.0

major21 Aug 2025Where it was published

7.1.1 is the newest release of 7.x.

In short

3 breaking1 new

  • Breaking

    Require Node.js 20 3bdb53a

  • Breaking

    onFailedAttempt and shouldRetry now receive a context object instead of a decorated error bff36bb

  • Breaking

    Remove the forever option (#79) 6a89827

Release note

Breaking

  • Breaking

    Require Node.js 20 3bdb53a

  • Breaking

    onFailedAttempt and shouldRetry now receive a context object instead of a decorated error bff36bb

    • You must now must access the error as object.error instead of object.

    • The use of .attemptNumber and .retriesLeft did not change.

  • Breaking

    Remove the forever option (#79) 6a89827

    • Many use-cases can use {retries: Infinity} instead for infinite retries.

Improvements


v6.2.1...v7.0.0

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.