Skip to content

Commit 0435a2f

Browse files
authored
Release v3.0.0 (#21)
1 parent 16f3f46 commit 0435a2f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function main() {
4040
main();
4141
```
4242

43-
Migrating from v1 to v2? Here are our [breaking changes](https://github.com/coveo/exponential-backoff/tree/master/doc/v1-to-v2-migration.md).
43+
Migrating across major versions? Here are our [breaking changes](https://github.com/coveo/exponential-backoff/tree/master/doc/migration-guide.md).
4444

4545
### `IBackOffOptions`
4646

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
## Migrating from v1 to v2
1+
If you are migrating across a major version, be aware of the following breaking changes:
22

3-
If you are migrating from v1 to v2, be aware of the following breaking changes:
3+
## Migrating from v1 to v2
44

55
- The first argument of `backOff<T>` is now just the function you want to backoff. The `retry` function is still available as a property of `IBackOffOptions`.
66

77
- The default value for the `delayFirstAttempt` option is now `false`.
88

9+
## Migrating from v2 to v3
10+
11+
- The `jitter` option now uses a union string type for easier configurability. The `JitterTypes` enum is no longer available.
12+
913
That's all folks!

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exponential-backoff",
3-
"version": "2.2.1",
3+
"version": "3.0.0",
44
"description": "A utility that allows retrying a function with an exponential delay between attempts.",
55
"main": "dist/backoff.js",
66
"types": "dist/backoff.d.ts",

0 commit comments

Comments
 (0)