Sourced from p-retry's releases.
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.
Improvements
- Add
retryDelaytoonFailedAttemptcontext (#66) 96cce98- Fix
TypeErrorretry handling f011d2e- Harden retry timing and callback validation 9d47b60
https://github.com/sindresorhus/p-retry/compare/v7.1.1...v8.0.0