# p-retry v7.0.0-0 - Product: p-retry (https://whatsnew.fyi/product/p-retry) - Vendor: Sindre Sorhus - Date: 2025-05-06 - Version: v7.0.0-0 - Original notes: https://github.com/sindresorhus/p-retry/releases/tag/v7.0.0-0 - Permalink: https://whatsnew.fyi/product/p-retry/releases/v7.0.0-0 - Labels: Pre-release What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **removed** — Require Node.js 20 - **changed** — onFailedAttempt and shouldRetry now receive a context object instead of a decorated error, with error accessible as object.error - **removed** — Remove the forever option - **changed** — Rewrite the package to not depend on the retry package - **added** — Add makeRetriable method ###### Breaking - Require Node.js 20 3bdb53a - `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. - Remove the `forever` option (#79) 6a89827 - Many use-cases can use `{retries: Infinity}` instead for infinite retries. ###### Improvements - Rewrite the package to not depend on the `retry` package (#79) 6a89827 - This is a full rewrite, so test carefully. - Add [`makeRetriable`](https://github.com/sindresorhus/p-retry?tab=readme-ov-file#makeretriablefunction-options) method 1a81c1e --- https://github.com/sindresorhus/p-retry/compare/v6.2.1...v7.0.0-0