Skip to content

Commit

Permalink
Release v3.0.0 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
samisayegh committed Apr 7, 2020
1 parent 16f3f46 commit 0435a2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function main() {
main();
```

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

### `IBackOffOptions`

Expand Down
8 changes: 6 additions & 2 deletions doc/v1-to-v2-migration.md → doc/migration-guide.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
## Migrating from v1 to v2
If you are migrating across a major version, be aware of the following breaking changes:

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

- 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`.

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

## Migrating from v2 to v3

- The `jitter` option now uses a union string type for easier configurability. The `JitterTypes` enum is no longer available.

That's all folks!
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exponential-backoff",
"version": "2.2.1",
"version": "3.0.0",
"description": "A utility that allows retrying a function with an exponential delay between attempts.",
"main": "dist/backoff.js",
"types": "dist/backoff.d.ts",
Expand Down

0 comments on commit 0435a2f

Please sign in to comment.