Changelog
*Sourced from [async's changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md).*
> # v3.1.0
>
> - Added `q.pushAsync` and `q.unshiftAsync`, analagous to `q.push` and `q.unshift`, except they always do not accept a callback, and reject if processing the task errors. ([#1659](https://github-redirect.dependabot.com/caolan/async/issues/1659))
> - Promises returned from `q.push` and `q.unshift` when a callback is not passed now resolve even if an error ocurred. ([#1659](https://github-redirect.dependabot.com/caolan/async/issues/1659))
> - Fixed a parsing bug in `autoInject` with complicated function bodies ([#1663](https://github-redirect.dependabot.com/caolan/async/issues/1663))
> - Added ES6+ configuration for Browserify bundlers ([#1653](https://github-redirect.dependabot.com/caolan/async/issues/1653))
> - Various doc fixes ([#1664](https://github-redirect.dependabot.com/caolan/async/issues/1664), [#1658](https://github-redirect.dependabot.com/caolan/async/issues/1658), [#1665](https://github-redirect.dependabot.com/caolan/async/issues/1665), [#1652](https://github-redirect.dependabot.com/caolan/async/issues/1652))
>
> # v3.0.1
>
> ## Bug fixes
> - Fixed a regression where arrays passed to `queue` and `cargo` would be completely flattened. ([#1645](https://github-redirect.dependabot.com/caolan/async/issues/1645))
> - Clarified Async's browser support ([#1643](https://github-redirect.dependabot.com/caolan/async/issues/1643))
>
>
> # v3.0.0
>
> The `async`/`await` release!
>
> There are a lot of new features and subtle breaking changes in this major version, but the biggest feature is that most Async methods return a Promise if you omit the callback, meaning you can `await` them from within an `async` function.
>
> ```js
> const results = await async.mapLimit(urls, 5, async url => {
> const resp = await fetch(url)
> return resp.body
> })
> ```
>
> ## Breaking Changes
> - Most Async methods return a Promise when the final callback is omitted, making them `await`-able! ([#1572](https://github-redirect.dependabot.com/caolan/async/issues/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](https://github-redirect.dependabot.com/caolan/async/issues/1541), [#1553](https://github-redirect.dependabot.com/caolan/async/issues/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](https://github-redirect.dependabot.com/caolan/async/issues/1586), [#1641](https://github-redirect.dependabot.com/caolan/async/issues/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](https://github-redirect.dependabot.com/caolan/async/issues/1064), [#1542](https://github-redirect.dependabot.com/caolan/async/issues/1542))
> - `during` and `doDuring` have been removed, and instead `whilst`, `doWhilst`, `until` and `doUntil` now have asynchronous `test` functions. ([#850](https://github-redirect.dependabot.com/caolan/async/issues/850), [#1557](https://github-redirect.dependabot.com/caolan/async/issues/1557))
> - `limits` of less than 1 now cause an error to be thrown in queues and collection methods. ([#1249](https://github-redirect.dependabot.com/caolan/async/issues/1249), [#1552](https://github-redirect.dependabot.com/caolan/async/issues/1552))
> - `memoize` no longer memoizes errors ([#1465](https://github-redirect.dependabot.com/caolan/async/issues/1465), [#1466](https://github-redirect.dependabot.com/caolan/async/issues/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. ([#1228](https://github-redirect.dependabot.com/caolan/async/issues/1228), [#1640](https://github-redirect.dependabot.com/caolan/async/issues/1640))
>
> ## New Features
> - Async generators are now supported in all the Collection methods. ([#1560](https://github-redirect.dependabot.com/caolan/async/issues/1560))
> - Added `cargoQueue`, a queue with both `concurrency` and `payload` size parameters. ([#1567](https://github-redirect.dependabot.com/caolan/async/issues/1567))
> - Queue objects returned from `queue` now have a `Symbol.iterator` method, meaning they can be iterated over to inspect the current list of items in the queue. ([#1459](https://github-redirect.dependabot.com/caolan/async/issues/1459), [#1556](https://github-redirect.dependabot.com/caolan/async/issues/1556))
> - A ESM-flavored `async.mjs` is included in the `async` package. This is described in the `package.json` `"module"` field, meaning it should be automatically used by Webpack and other compatible bundlers.
>
> ## Bug fixes
> - Better handle arbitrary error objects in `asyncify` ([#1568](https://github-redirect.dependabot.com/caolan/async/issues/1568), [#1569](https://github-redirect.dependabot.com/caolan/async/issues/1569))
>
> ## Other
> - Removed Lodash as a dependency ([#1283](https://github-redirect.dependabot.com/caolan/async/issues/1283), [#1528](https://github-redirect.dependabot.com/caolan/async/issues/1528))
> - Miscellaneous docs fixes ([#1393](https://github-redirect.dependabot.com/caolan/async/issues/1393), [#1501](https://github-redirect.dependabot.com/caolan/async/issues/1501), [#1540](https://github-redirect.dependabot.com/caolan/async/issues/1540), [#1543](https://github-redirect.dependabot.com/caolan/async/issues/1543), [#1558](https://github-redirect.dependabot.com/caolan/async/issues/1558), [#1563](https://github-redirect.dependabot.com/caolan/async/issues/1563), [#1564](https://github-redirect.dependabot.com/caolan/async/issues/1564), [#1579](https://github-redirect.dependabot.com/caolan/async/issues/1579), [#1581](https://github-redirect.dependabot.com/caolan/async/issues/1581))
> ... (truncated)
Commits
- [`4752a79`](https://github.com/caolan/async/commit/4752a792f5f9272e8db7f6035122ee9d7dd53539) Version 3.1.0
- [`4882428`](https://github.com/caolan/async/commit/48824282975f55fa93c64f810df1b0c7ad6f3817) Update built files
- [`1f88282`](https://github.com/caolan/async/commit/1f88282fec614d5d9e21a64d161c501221a13160) separate clean from all
- [`9593bfe`](https://github.com/caolan/async/commit/9593bfe77d51373b0dabe06df4314cf9b2da62ec) fix test actually
- [`7a560f7`](https://github.com/caolan/async/commit/7a560f7c46b04c6e11ba35c171eef82693560b26) fix: build-test makefile dependencies
- [`1224cc8`](https://github.com/caolan/async/commit/1224cc8d5564c38d801982eeda69d2a90d726c55) fix test
- [`00220b2`](https://github.com/caolan/async/commit/00220b2770ac270d4de3b33ed4cd4c670158dff4) update changelog
- [`915c504`](https://github.com/caolan/async/commit/915c5049fa918d8806454b85ef53bc2ba0973c8b) even moar coverage
- [`c52c887`](https://github.com/caolan/async/commit/c52c887495ef031cfd9ebdf588a13916d1e90ba5) moar coverage
- [`b5c3f2f`](https://github.com/caolan/async/commit/b5c3f2f462beb73b08c4459ebffe0d748a6e0ddb) improve coverage of forEachAsync
- Additional commits viewable in [compare view](https://github.com/caolan/async/compare/v2.6.2...v3.1.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking Bump now in your Dependabot dashboard.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps async from 2.6.2 to 3.1.0.
Changelog
*Sourced from [async's changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md).* > # v3.1.0 > > - Added `q.pushAsync` and `q.unshiftAsync`, analagous to `q.push` and `q.unshift`, except they always do not accept a callback, and reject if processing the task errors. ([#1659](https://github-redirect.dependabot.com/caolan/async/issues/1659)) > - Promises returned from `q.push` and `q.unshift` when a callback is not passed now resolve even if an error ocurred. ([#1659](https://github-redirect.dependabot.com/caolan/async/issues/1659)) > - Fixed a parsing bug in `autoInject` with complicated function bodies ([#1663](https://github-redirect.dependabot.com/caolan/async/issues/1663)) > - Added ES6+ configuration for Browserify bundlers ([#1653](https://github-redirect.dependabot.com/caolan/async/issues/1653)) > - Various doc fixes ([#1664](https://github-redirect.dependabot.com/caolan/async/issues/1664), [#1658](https://github-redirect.dependabot.com/caolan/async/issues/1658), [#1665](https://github-redirect.dependabot.com/caolan/async/issues/1665), [#1652](https://github-redirect.dependabot.com/caolan/async/issues/1652)) > > # v3.0.1 > > ## Bug fixes > - Fixed a regression where arrays passed to `queue` and `cargo` would be completely flattened. ([#1645](https://github-redirect.dependabot.com/caolan/async/issues/1645)) > - Clarified Async's browser support ([#1643](https://github-redirect.dependabot.com/caolan/async/issues/1643)) > > > # v3.0.0 > > The `async`/`await` release! > > There are a lot of new features and subtle breaking changes in this major version, but the biggest feature is that most Async methods return a Promise if you omit the callback, meaning you can `await` them from within an `async` function. > > ```js > const results = await async.mapLimit(urls, 5, async url => { > const resp = await fetch(url) > return resp.body > }) > ``` > > ## Breaking Changes > - Most Async methods return a Promise when the final callback is omitted, making them `await`-able! ([#1572](https://github-redirect.dependabot.com/caolan/async/issues/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](https://github-redirect.dependabot.com/caolan/async/issues/1541), [#1553](https://github-redirect.dependabot.com/caolan/async/issues/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](https://github-redirect.dependabot.com/caolan/async/issues/1586), [#1641](https://github-redirect.dependabot.com/caolan/async/issues/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](https://github-redirect.dependabot.com/caolan/async/issues/1064), [#1542](https://github-redirect.dependabot.com/caolan/async/issues/1542)) > - `during` and `doDuring` have been removed, and instead `whilst`, `doWhilst`, `until` and `doUntil` now have asynchronous `test` functions. ([#850](https://github-redirect.dependabot.com/caolan/async/issues/850), [#1557](https://github-redirect.dependabot.com/caolan/async/issues/1557)) > - `limits` of less than 1 now cause an error to be thrown in queues and collection methods. ([#1249](https://github-redirect.dependabot.com/caolan/async/issues/1249), [#1552](https://github-redirect.dependabot.com/caolan/async/issues/1552)) > - `memoize` no longer memoizes errors ([#1465](https://github-redirect.dependabot.com/caolan/async/issues/1465), [#1466](https://github-redirect.dependabot.com/caolan/async/issues/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. ([#1228](https://github-redirect.dependabot.com/caolan/async/issues/1228), [#1640](https://github-redirect.dependabot.com/caolan/async/issues/1640)) > > ## New Features > - Async generators are now supported in all the Collection methods. ([#1560](https://github-redirect.dependabot.com/caolan/async/issues/1560)) > - Added `cargoQueue`, a queue with both `concurrency` and `payload` size parameters. ([#1567](https://github-redirect.dependabot.com/caolan/async/issues/1567)) > - Queue objects returned from `queue` now have a `Symbol.iterator` method, meaning they can be iterated over to inspect the current list of items in the queue. ([#1459](https://github-redirect.dependabot.com/caolan/async/issues/1459), [#1556](https://github-redirect.dependabot.com/caolan/async/issues/1556)) > - A ESM-flavored `async.mjs` is included in the `async` package. This is described in the `package.json` `"module"` field, meaning it should be automatically used by Webpack and other compatible bundlers. > > ## Bug fixes > - Better handle arbitrary error objects in `asyncify` ([#1568](https://github-redirect.dependabot.com/caolan/async/issues/1568), [#1569](https://github-redirect.dependabot.com/caolan/async/issues/1569)) > > ## Other > - Removed Lodash as a dependency ([#1283](https://github-redirect.dependabot.com/caolan/async/issues/1283), [#1528](https://github-redirect.dependabot.com/caolan/async/issues/1528)) > - Miscellaneous docs fixes ([#1393](https://github-redirect.dependabot.com/caolan/async/issues/1393), [#1501](https://github-redirect.dependabot.com/caolan/async/issues/1501), [#1540](https://github-redirect.dependabot.com/caolan/async/issues/1540), [#1543](https://github-redirect.dependabot.com/caolan/async/issues/1543), [#1558](https://github-redirect.dependabot.com/caolan/async/issues/1558), [#1563](https://github-redirect.dependabot.com/caolan/async/issues/1563), [#1564](https://github-redirect.dependabot.com/caolan/async/issues/1564), [#1579](https://github-redirect.dependabot.com/caolan/async/issues/1579), [#1581](https://github-redirect.dependabot.com/caolan/async/issues/1581)) > ... (truncated)Commits
- [`4752a79`](https://github.com/caolan/async/commit/4752a792f5f9272e8db7f6035122ee9d7dd53539) Version 3.1.0 - [`4882428`](https://github.com/caolan/async/commit/48824282975f55fa93c64f810df1b0c7ad6f3817) Update built files - [`1f88282`](https://github.com/caolan/async/commit/1f88282fec614d5d9e21a64d161c501221a13160) separate clean from all - [`9593bfe`](https://github.com/caolan/async/commit/9593bfe77d51373b0dabe06df4314cf9b2da62ec) fix test actually - [`7a560f7`](https://github.com/caolan/async/commit/7a560f7c46b04c6e11ba35c171eef82693560b26) fix: build-test makefile dependencies - [`1224cc8`](https://github.com/caolan/async/commit/1224cc8d5564c38d801982eeda69d2a90d726c55) fix test - [`00220b2`](https://github.com/caolan/async/commit/00220b2770ac270d4de3b33ed4cd4c670158dff4) update changelog - [`915c504`](https://github.com/caolan/async/commit/915c5049fa918d8806454b85ef53bc2ba0973c8b) even moar coverage - [`c52c887`](https://github.com/caolan/async/commit/c52c887495ef031cfd9ebdf588a13916d1e90ba5) moar coverage - [`b5c3f2f`](https://github.com/caolan/async/commit/b5c3f2f462beb73b08c4459ebffe0d748a6e0ddb) improve coverage of forEachAsync - Additional commits viewable in [compare view](https://github.com/caolan/async/compare/v2.6.2...v3.1.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking
Bump now
in your Dependabot dashboard.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.