All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
### Fixed
- Export isRetryableError for CommonJS
- Added additional param shouldResetTimeout
- Now isRetryableError method is accessible.
- Added delayStrategy option to be able to have exponential backoff for successive retries.
### Fixed
- Fixed first request time not being taken into account in timeout across retries.
- Fixed negative timeouts being passed to XHR (browsers), causing that no timeout was applied.
- Fixed safe methods and idempotent errors not being retried on unknown network errors.
- Retried errors on idempotent requests (5xx with get, head, options, put and delete) by default, along with safe network errors.
- Moved some hard-coded conditions to the default
retryCondition
function so users can define a custom function that overwrites them. The conditions that verify that the error is not a timeout or an unsafe network error have been moved toisNetworkError
.
### Added
- Added additional pre-defined retry conditions:
isSafeRequestError
,isIdempotentRequestError
.
- Removed dependency from the
package.json
file.
- Now the configured timeout in Axios is not for each retry request but for the whole request lifecycle.
- Removed dependency from the
package.json
file.
- Allowed per-request configuration using the
axios-retry
namespace.