Skip to content

Releases: sindresorhus/p-retry

v8.0.1

Choose a tag to compare

@sindresorhus sindresorhus released this 01 Sep 13:14
  • Fix error for invalid fractional retry counts 3c22035

v8.0.0...v8.0.1

v8.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 26 Mar 16:09

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


v7.1.1...v8.0.0

v7.1.1

Choose a tag to compare

@sindresorhus sindresorhus released this 09 Dec 21:15
  • Fix delayed abort when signal is already aborted before delay phase 2aba573

v7.1.0...v7.1.1

v7.1.0

Choose a tag to compare

@sindresorhus sindresorhus released this 09 Oct 02:57

v7.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 21 Aug 10:23

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


v6.2.1...v7.0.0

v7.0.0-0

v7.0.0-0 Pre-release
Pre-release

Choose a tag to compare

@sindresorhus sindresorhus released this 06 May 14:54

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


v6.2.1...v7.0.0-0

v6.2.1

Choose a tag to compare

@sindresorhus sindresorhus released this 15 Nov 05:48
  • Fix onFailedAttempt and shouldRetry options being undefined (#82) b400af6

v6.2.0...v6.2.1

v6.2.0

Choose a tag to compare

@sindresorhus sindresorhus released this 20 Dec 20:39

v6.1.0

Choose a tag to compare

@sindresorhus sindresorhus released this 26 Sep 14:18

v6.0.0...v6.1.0

v6.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 24 Aug 16:58

Breaking

Fixes

  • Correctly remove abort handler when done 95a3a4a

v5.1.2...v6.0.0