Releases: smartcar/retryify
Releases · smartcar/retryify
v6.0.0
6.0.0 (2022-05-19)
Features
- ci: drop Node.js 10, 12 and add Node.js 16, 18 (a0383c1)
BREAKING CHANGES
- ci: This library will no longer be tested on Node.js 10 and Node.js 12 and as such will not be guaranteed to work on these versions of Node.js. We support LTS versions of Node.js as they are specified here: https://github.com/nodejs/Release#release-schedule
v5.1.0
v5.0.1
v5.0.0
5.0.0 (2020-07-15)
Features
- replace
.errors
with.shouldRetry
(a7e3a82)
BREAKING CHANGES
options.errors
is no longer a valid option, please useoptions.shouldRetry
instead.
shouldRetry
is more flexible than .errors
as it allows the user to retry based on basically any property of the caught error.
User facing change:
- errors: A,
+ shouldRetry: (caught) => caught instanceof A),
- errors: [A, B, C],
+ shouldRetry: (caught) => [A, B, C].some(Candidate => caught instanceof Candidate),
v4.1.0
v4.0.0
4.0.0 (2019-12-18)
chore
Features
- retry iteratively rather than recursively (b914fe6)
- switch from bluebird to native promise (ff24c88)
BREAKING CHANGES
- ci: This library will no longer be tested on Node.js 8 and as such will not be guaranteed to work on this version of Node.js. We support LTS versions of Node.js as they are specified here: https://github.com/nodejs/Release#release-schedule
- The promises returned by retryify will no longer be Bluebird promises, so if you are using any Bluebird specific methods (
.tap
,.spread
,.catch(ErrorClass, ...)
, etc.) chained off of retried methods you will need to refactor your code.
v4.0.0-beta.1
4.0.0-beta.1 (2019-12-01)
Features
- retry iteratively rather than recursively (a04850e)
- switch from bluebird to native promise (0755934)
BREAKING CHANGES
- The promises returned by retryify will no longer be Bluebird promises, so if you are using any Bluebird specific methods (
.tap
,.spread
,.catch(ErrorClass, ...)
, etc.) chained off of retried methods you will need to refactor your code.
v3.0.0
3.0.0 (2019-07-24)
chore
- ci: drop Node.js 6 and add Node.js 12 (ed6c378)
BREAKING CHANGES
- ci: This library will no longer be tested on Node.js 6 and as such will not be guaranteed to work on this version of Node.js. We support LTS versions of Node.js as they are specified here: https://github.com/nodejs/Release#release-schedule