diff options
author | Alexander Early <alexander.early@gmail.com> | 2019-05-19 18:35:12 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2019-05-19 18:35:12 -0700 |
commit | 902b8d0c82308c94b827bad7f597f516bd2b50c6 (patch) | |
tree | 4af559ae181f01b7259777c3cbe0434b598c016a | |
parent | e0446642d70817f4353b4ed12a3c86e5d769cf01 (diff) | |
download | async-902b8d0c82308c94b827bad7f597f516bd2b50c6.tar.gz |
update changelog
-rw-r--r-- | CHANGELOG.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index cdb618b..2f99fc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,12 @@ const results = await async.mapLimit(urls, 5, async url => { ## Breaking Changes - Most Async methods return a Promise when the final callback is omitted, making them `await`-able! (#1572) - We are now making heavy use of ES2015 features, this means we have dropped out-of-the-box support for Node 4 and earlier, and many old versions of browsers. (#1541, #1553) +- In `queue`, `priorityQueue`, `cargo` and `cargoQueue`, the "event"-style methods, like `q.drain` and `q.saturated` are now methods that register a callback, rather than properties you assign a callback to. They are now of the form `q.drain(callback)`. If you do not pass a callback a Promise will be returned for the next occurrence of the event, making them `await`-able, e.g. `await q.drain()`. (#1586, #1641) - Calling `callback(false)` will cancel an async method, preventing further iteration and callback calls. This is useful for preventing memory leaks when you break out of an async flow by calling an outer callback. (#1064, #1542) - `during` and `doDuring` have been removed, and instead `whilst`, `doWhilst`, `until` and `doUntil` now have asynchronous `test` functions. (#850, #1557) - `limits` of less than 1 now cause an error to be thrown in queues and collection methods. (#1249, #1552) - `memoize` no longer memoizes errors (#1465, #1466) -- `applyEach`/`applyEachSeries` have a simpler interface, to make them more easily type-able. It always returns a function that takes in a single callback argument. If that callback is omitted, a promise is returned, making it awaitable. +- `applyEach`/`applyEachSeries` have a simpler interface, to make them more easily type-able. It always returns a function that takes in a single callback argument. If that callback is omitted, a promise is returned, making it awaitable. (#1228, #1640) ## New Features - Async generators are now supported in all the Collection methods. (#1560) |