apollo-link-retry
Advanced tools
Comparing version 2.2.14 to 2.2.15
{ | ||
"name": "apollo-link-retry", | ||
"version": "2.2.14", | ||
"version": "2.2.15", | ||
"description": "Retry Apollo Link for GraphQL Network Stack", | ||
@@ -38,13 +38,13 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"@types/zen-observable": "0.8.0", | ||
"apollo-link": "^1.2.12", | ||
"apollo-link": "^1.2.13", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@types/graphql": "14.2.0", | ||
"@types/jest": "24.0.14", | ||
"graphql": "14.3.1", | ||
"@types/graphql": "14.2.3", | ||
"@types/jest": "24.0.18", | ||
"graphql": "14.5.4", | ||
"graphql-tag": "2.10.1", | ||
"jest": "24.8.0", | ||
"rimraf": "2.6.3", | ||
"rollup": "1.15.4", | ||
"jest": "24.9.0", | ||
"rimraf": "2.7.1", | ||
"rollup": "1.20.3", | ||
"ts-jest": "22.4.6", | ||
@@ -68,3 +68,3 @@ "tslint": "5.17.0", | ||
}, | ||
"gitHead": "f902ab977d7d173951528a0bc2e38521b2afc096" | ||
"gitHead": "74d412528dd474fc41ee0bf504e36e01d7e05e2b" | ||
} |
@@ -16,7 +16,7 @@ --- | ||
<h2 id="options">Options</h2> | ||
## Options | ||
The standard retry strategy provides exponential backoff with jittering, and takes the following options, grouped into `delay` and `attempt` strategies: | ||
<h3 id="options.delay">options.delay</h3> | ||
### options.delay | ||
@@ -29,3 +29,3 @@ * `delay.initial`: The number of milliseconds to wait before attempting the first retry. | ||
<h3 id="options.attempts">options.attempts</h3> | ||
### options.attempts | ||
@@ -36,3 +36,3 @@ * `attempts.max`: The max number of times to try a single operation before giving up. | ||
<h3 id="options-default">Default configuration</h3> | ||
### Default configuration | ||
@@ -55,3 +55,3 @@ The default configuration is equivalent to: | ||
<h2 id="backoff">Avoiding thundering herd</h2> | ||
## Avoiding thundering herd | ||
@@ -64,3 +64,3 @@ Starting with `initialDelay`, the delay of each subsequent retry is increased exponentially, meaning it's multiplied by 2 each time. For example, if `initialDelay` is 100, additional retries will occur after delays of 200, 400, 800, etc. | ||
<h2 id="custom-strategies">Custom Strategies</h2> | ||
## Custom Strategies | ||
@@ -67,0 +67,0 @@ Instead of the options object, you may pass a function for `delay` and/or `attempts`, which implement custom strategies for each. In both cases the function is given the same arguments (`count`, `operation`, `error`). |
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
81170
Updatedapollo-link@^1.2.13