p-retry v8.0.0

v8.0.0
Added 1
  • Add retryDelay to onFailedAttempt context
Changed 2
  • Change retry callback order from onFailedAttempt → shouldConsumeRetry → shouldRetry to shouldConsumeRetry → onFailedAttempt → shouldRetry
  • Harden retry timing and callback validation
Fixed 1
  • Fix TypeError retry handling
Removed 1
  • Drop support for Node.js versions below 22

From p-retry

Breaking
  • Require Node.js 22 85cdece
  • Change retry callback order 616306e
    • Callback order changed from onFailedAttemptshouldConsumeRetryshouldRetry to shouldConsumeRetryonFailedAttemptshouldRetry.
    • Consumption decisions are now made before failure notifications and retry decisions.
Improvements
  • Add 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

View original

Upgraded? How did it go?

Discussion