# p-retry v8.0.0 - Product: p-retry (https://whatsnew.fyi/product/p-retry) - Vendor: Sindre Sorhus - Date: 2026-03-26 - Version: v8.0.0 - Original notes: https://github.com/sindresorhus/p-retry/releases/tag/v8.0.0 - Permalink: https://whatsnew.fyi/product/p-retry/releases/v8.0.0 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** — Drop support for Node.js versions below 22 - **changed** — Change retry callback order from onFailedAttempt → shouldConsumeRetry → shouldRetry to shouldConsumeRetry → onFailedAttempt → shouldRetry - **added** — Add retryDelay to onFailedAttempt context - **fixed** — Fix TypeError retry handling - **changed** — Harden retry timing and callback validation ###### Breaking - Require Node.js 22 85cdece - Change retry callback order 616306e - Callback order changed from `onFailedAttempt` → `shouldConsumeRetry` → `shouldRetry` to `shouldConsumeRetry` → `onFailedAttempt` → `shouldRetry`. - Consumption decisions are now made before failure notifications and retry decisions. ###### Improvements - Add [`retryDelay`](https://github.com/sindresorhus/p-retry#retrydelay) to `onFailedAttempt` context (#66) 96cce98 - Fix `TypeError` retry handling f011d2e - Harden retry timing and callback validation 9d47b60 --- https://github.com/sindresorhus/p-retry/compare/v7.1.1...v8.0.0