Tim-Demo / ng1

Apache License 2.0
0 stars 0 forks source link

Update dependency async to v3 - autoclosed #126

Closed mend-for-github-com[bot] closed 2 years ago

mend-for-github-com[bot] commented 2 years ago

This PR contains the following updates:

Package Type Update Change
async (source) devDependencies major ^2.0.0-rc.4 -> ^3.0.0

By merging this PR, the below issues will be automatically resolved and closed:

Severity CVSS Score CVE GitHub Issue
High 9.1 CVE-2019-10744 #10
High 7.8 CVE-2021-43138 #125
High 7.4 CVE-2020-8203 #67
High 7.2 CVE-2021-23337 #26
Medium 5.3 CVE-2020-28500 #54

Release Notes

caolan/async ### [`v3.2.2`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v322) [Compare Source](https://togithub.com/caolan/async/compare/v3.2.1...v3.2.2) - Fix potential prototype pollution exploit ### [`v3.2.1`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v321) [Compare Source](https://togithub.com/caolan/async/compare/v3.2.0...v3.2.1) - Use `queueMicrotask` if available to the environment ([#​1761](https://togithub.com/caolan/async/issues/1761)) - Minor perf improvement in `priorityQueue` ([#​1727](https://togithub.com/caolan/async/issues/1727)) - More examples in documentation ([#​1726](https://togithub.com/caolan/async/issues/1726)) - Various doc fixes ([#​1708](https://togithub.com/caolan/async/issues/1708), [#​1712](https://togithub.com/caolan/async/issues/1712), [#​1717](https://togithub.com/caolan/async/issues/1717), [#​1740](https://togithub.com/caolan/async/issues/1740), [#​1739](https://togithub.com/caolan/async/issues/1739), [#​1749](https://togithub.com/caolan/async/issues/1749), [#​1756](https://togithub.com/caolan/async/issues/1756)) - Improved test coverage ([#​1754](https://togithub.com/caolan/async/issues/1754)) ### [`v3.2.0`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v320) [Compare Source](https://togithub.com/caolan/async/compare/v3.1.1...v3.2.0) - Fix a bug in Safari related to overwriting `func.name` - Remove built-in browserify configuration ([#​1653](https://togithub.com/caolan/async/issues/1653)) - Varios doc fixes ([#​1688](https://togithub.com/caolan/async/issues/1688), [#​1703](https://togithub.com/caolan/async/issues/1703), [#​1704](https://togithub.com/caolan/async/issues/1704)) ### [`v3.1.1`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v311) [Compare Source](https://togithub.com/caolan/async/compare/v3.1.0...v3.1.1) - Allow redefining `name` property on wrapped functions. ### [`v3.1.0`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v310) [Compare Source](https://togithub.com/caolan/async/compare/v3.0.1...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://togithub.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://togithub.com/caolan/async/issues/1659)) - Fixed a parsing bug in `autoInject` with complicated function bodies ([#​1663](https://togithub.com/caolan/async/issues/1663)) - Added ES6+ configuration for Browserify bundlers ([#​1653](https://togithub.com/caolan/async/issues/1653)) - Various doc fixes ([#​1664](https://togithub.com/caolan/async/issues/1664), [#​1658](https://togithub.com/caolan/async/issues/1658), [#​1665](https://togithub.com/caolan/async/issues/1665), [#​1652](https://togithub.com/caolan/async/issues/1652)) ### [`v3.0.1`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v301) [Compare Source](https://togithub.com/caolan/async/compare/v3.0.0...v3.0.1) #### Bug fixes - Fixed a regression where arrays passed to `queue` and `cargo` would be completely flattened. ([#​1645](https://togithub.com/caolan/async/issues/1645)) - Clarified Async's browser support ([#​1643](https://togithub.com/caolan/async/issues/1643)) ### [`v3.0.0`](https://togithub.com/caolan/async/blob/HEAD/CHANGELOG.md#v300) [Compare Source](https://togithub.com/caolan/async/compare/v2.6.4...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://togithub.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://togithub.com/caolan/async/issues/1541), [#​1553](https://togithub.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://togithub.com/caolan/async/issues/1586), [#​1641](https://togithub.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://togithub.com/caolan/async/issues/1064), [#​1542](https://togithub.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://togithub.com/caolan/async/issues/850), [#​1557](https://togithub.com/caolan/async/issues/1557)) - `limits` of less than 1 now cause an error to be thrown in queues and collection methods. ([#​1249](https://togithub.com/caolan/async/issues/1249), [#​1552](https://togithub.com/caolan/async/issues/1552)) - `memoize` no longer memoizes errors ([#​1465](https://togithub.com/caolan/async/issues/1465), [#​1466](https://togithub.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://togithub.com/caolan/async/issues/1228), [#​1640](https://togithub.com/caolan/async/issues/1640)) #### New Features - Async generators are now supported in all the Collection methods. ([#​1560](https://togithub.com/caolan/async/issues/1560)) - Added `cargoQueue`, a queue with both `concurrency` and `payload` size parameters. ([#​1567](https://togithub.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://togithub.com/caolan/async/issues/1459), [#​1556](https://togithub.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://togithub.com/caolan/async/issues/1568), [#​1569](https://togithub.com/caolan/async/issues/1569)) #### Other - Removed Lodash as a dependency ([#​1283](https://togithub.com/caolan/async/issues/1283), [#​1528](https://togithub.com/caolan/async/issues/1528)) - Miscellaneous docs fixes ([#​1393](https://togithub.com/caolan/async/issues/1393), [#​1501](https://togithub.com/caolan/async/issues/1501), [#​1540](https://togithub.com/caolan/async/issues/1540), [#​1543](https://togithub.com/caolan/async/issues/1543), [#​1558](https://togithub.com/caolan/async/issues/1558), [#​1563](https://togithub.com/caolan/async/issues/1563), [#​1564](https://togithub.com/caolan/async/issues/1564), [#​1579](https://togithub.com/caolan/async/issues/1579), [#​1581](https://togithub.com/caolan/async/issues/1581)) - Miscellaneous test fixes ([#​1538](https://togithub.com/caolan/async/issues/1538)) *** ### [`v2.6.4`](https://togithub.com/caolan/async/compare/v2.6.3...v2.6.4) [Compare Source](https://togithub.com/caolan/async/compare/v2.6.3...v2.6.4) ### [`v2.6.3`](https://togithub.com/caolan/async/compare/v2.6.2...v2.6.3) [Compare Source](https://togithub.com/caolan/async/compare/v2.6.2...v2.6.3) ### [`v2.6.2`](https://togithub.com/caolan/async/compare/v2.6.1...v2.6.2) [Compare Source](https://togithub.com/caolan/async/compare/v2.6.1...v2.6.2)