Skip to content

Commit

Permalink
Bump version to v2.0.0: upgrade target compatibility to ES2020
Browse files Browse the repository at this point in the history
  • Loading branch information
ori88c committed Aug 15, 2024
1 parent 662e31a commit 4c64f94
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 74 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Unlike `setTimeout` in Node.js, where errors from rejected promises propagate to

Ideally, a delayed task should handle its own errors and **avoid** throwing uncaught exceptions.

## Use-case Example
## Use-case Example :man_technologist:

Consider a Background Updates Manager. For simplicity, we assume that updates occur only following an on-demand request by the admin, triggered by the execution of the `scheduleNextJob` method. Additionally, assume that only one future background update task can be scheduled at any given time. This means that scheduling a new task will abort any previously scheduled task that has not yet started.

Expand Down Expand Up @@ -171,6 +171,10 @@ class BackgroundUpdatesManager {
}
```

## Breaking Change in Version 2.0.0

In version 2.0.0, the target compatibility has been upgraded from ES6 to ES2020. This change was made to leverage the widespread adoption of ES2020, in particular its native support for async/await.

## License :scroll:

[MIT](LICENSE)
38 changes: 13 additions & 25 deletions dist/delayed-async-task.js

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

2 changes: 1 addition & 1 deletion dist/delayed-async-task.js.map

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

69 changes: 28 additions & 41 deletions dist/delayed-async-task.test.js

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

Loading

0 comments on commit 4c64f94

Please sign in to comment.