axios-retry
Advanced tools
Comparing version 3.1.7 to 3.1.8
@@ -8,18 +8,72 @@ # Change Log | ||
## [3.0.3] - 2018-04-26 | ||
### Fixed | ||
- Export isRetryableError for CommonJS | ||
## [3.1.7] - 2019-04-23 | ||
### Fixed | ||
- Fixed default export to resolve TS2309 | ||
- Updated dependencies to fix build error | ||
- Added missing CHANGELOG entries (versions 3.0.1 until today) | ||
## [3.1.6] - 2019-04-21 | ||
### Fixed | ||
- Fixed export of `IAxiosRetryConfig` | ||
## [3.1.5] - 2019-04-20 | ||
### Fixed | ||
- Fixed TS definitions | ||
## [3.1.4] - 2019-04-18 | ||
### Fixed | ||
- Fixed TS definitions | ||
### Added | ||
- Added additional param shouldResetTimeout | ||
- Added note in README related to compatibility issue with `axios 0.19.0` | ||
- Updated LICENSE | ||
## [3.1.2] - 2019-01-24 | ||
### Added | ||
- TravisCI build status badge in README | ||
- Update `index.d.ts` with missing functions | ||
## [3.1.1] - 2018-06-13 | ||
### Fixed | ||
- Do not run `requestTransform` again after retry | ||
### Added | ||
- Explicit return type on `axiosRetry` | ||
- Prettier | ||
## [3.1.0] - 2018-04-26 | ||
### Fixed | ||
- Export `isRetryableError` for CommonJS | ||
### Added | ||
- Added additional param `shouldResetTimeout` | ||
## [3.0.2] - 2018-02-09 | ||
### Added | ||
- Now isRetryableError method is accessible. | ||
- Added delayStrategy option to be able to have exponential backoff for successive retries. | ||
- Now `isRetryableError` method is accessible. | ||
- Added `delayStrategy` option to be able to have exponential backoff for successive retries. | ||
## [3.0.1] - 2017-08-16 | ||
### Fixed | ||
### Fixed | ||
- Fixed first request time not being taken into account in timeout across retries. | ||
@@ -32,2 +86,3 @@ - Fixed negative timeouts being passed to XHR (browsers), causing that no timeout was applied. | ||
### Changed | ||
- Retried errors on idempotent requests (5xx with get, head, options, put and delete) by default, | ||
@@ -39,3 +94,4 @@ along with safe network errors. | ||
### Added | ||
### Added | ||
- Added additional pre-defined retry conditions: `isSafeRequestError`, `isIdempotentRequestError`. | ||
@@ -46,2 +102,3 @@ | ||
### Fixed | ||
- Removed dependency from the `package.json` file. | ||
@@ -52,2 +109,3 @@ | ||
### Changed | ||
- Now the configured timeout in Axios is not for each retry request but for the whole request lifecycle. | ||
@@ -58,2 +116,3 @@ | ||
### Fixed | ||
- Removed dependency from the `package.json` file. | ||
@@ -64,2 +123,3 @@ | ||
### Added | ||
- Allowed per-request configuration using the `axios-retry` namespace. |
@@ -17,2 +17,9 @@ import * as axios from 'axios' | ||
export function isNetworkError(error: Error): boolean; | ||
export function isRetryableError(error: Error): boolean; | ||
export function isSafeRequestError(error: Error): boolean; | ||
export function isIdempotentRequestError(error: Error): boolean; | ||
export function isNetworkOrIdempotentRequestError(error: Error): boolean; | ||
export function exponentialDelay(retryNumber: number): number; | ||
declare namespace IAxiosRetry { | ||
@@ -19,0 +26,0 @@ export interface IAxiosRetryConfig { |
{ | ||
"name": "axios-retry", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"author": "Rubén Norte <ruben.norte@softonic.com>", | ||
@@ -5,0 +5,0 @@ "description": "Axios plugin that intercepts failed requests and retries them whenever posible.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35813
472