freifunk-bot.meta

Issues/PRs archive for MTRNord/freifunk-bot
git clone git://archive.git.mtrnord.blog/MTRNord/freifunk-bot.meta.git
Log | Files | Refs

118.md (7659B)


      1 # PR #118 fix(deps): update dependency async to v3
      2 
      3 - **Status:** merged
      4 - **Author:** @renovate[bot]
      5 - **Created:** 2019-05-22T17:49:14Z
      6 - **Branch:** renovate/async-3.x → master
      7 - **Merged:** 2019-10-22T15:27:18Z
      8 - **Diff:** [118.diff](./118.diff)
      9 
     10 ---
     11 
     12 This PR contains the following updates:
     13 
     14 | Package | Type | Update | Change |
     15 |---|---|---|---|
     16 | [async](https://caolan.github.io/async/) ([source](https://togithub.com/caolan/async)) | dependencies | major | [`^2.5.0` -> `^3.0.0`](https://renovatebot.com/diffs/npm/async/2.6.3/3.1.0) |
     17 
     18 ---
     19 
     20 ### Release Notes
     21 
     22 <details>
     23 <summary>caolan/async</summary>
     24 
     25 ### [`v3.1.0`](https://togithub.com/caolan/async/blob/master/CHANGELOG.md#v310)
     26 
     27 [Compare Source](https://togithub.com/caolan/async/compare/v3.0.1...v3.1.0)
     28 
     29 -   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. ([#&#8203;1659](https://togithub.com/caolan/async/issues/1659))
     30 -   Promises returned from `q.push` and `q.unshift` when a callback is not passed now resolve even if an error ocurred. ([#&#8203;1659](https://togithub.com/caolan/async/issues/1659))
     31 -   Fixed a parsing bug in `autoInject` with complicated function bodies ([#&#8203;1663](https://togithub.com/caolan/async/issues/1663))
     32 -   Added ES6+ configuration for Browserify bundlers ([#&#8203;1653](https://togithub.com/caolan/async/issues/1653))
     33 -   Various doc fixes ([#&#8203;1664](https://togithub.com/caolan/async/issues/1664), [#&#8203;1658](https://togithub.com/caolan/async/issues/1658), [#&#8203;1665](https://togithub.com/caolan/async/issues/1665), [#&#8203;1652](https://togithub.com/caolan/async/issues/1652))
     34 
     35 ### [`v3.0.1`](https://togithub.com/caolan/async/blob/master/CHANGELOG.md#v301)
     36 
     37 [Compare Source](https://togithub.com/caolan/async/compare/v3.0.0...v3.0.1)
     38 
     39 #### Bug fixes
     40 
     41 -   Fixed a regression where arrays passed to `queue` and `cargo` would be completely flattened. ([#&#8203;1645](https://togithub.com/caolan/async/issues/1645))
     42 -   Clarified Async's browser support ([#&#8203;1643](https://togithub.com/caolan/async/issues/1643))
     43 
     44 ### [`v3.0.0`](https://togithub.com/caolan/async/blob/master/CHANGELOG.md#v300)
     45 
     46 [Compare Source](https://togithub.com/caolan/async/compare/v2.6.3...v3.0.0)
     47 
     48 The `async`/`await` release!
     49 
     50 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.
     51 
     52 ```js
     53 const results = await async.mapLimit(urls, 5, async url => {
     54     const resp = await fetch(url)
     55     return resp.body
     56 })
     57 ```
     58 
     59 #### Breaking Changes
     60 
     61 -   Most Async methods return a Promise when the final callback is omitted, making them `await`-able! ([#&#8203;1572](https://togithub.com/caolan/async/issues/1572))
     62 -   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. ([#&#8203;1541](https://togithub.com/caolan/async/issues/1541), [#&#8203;1553](https://togithub.com/caolan/async/issues/1553))
     63 -   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()`.  ([#&#8203;1586](https://togithub.com/caolan/async/issues/1586), [#&#8203;1641](https://togithub.com/caolan/async/issues/1641))
     64 -   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. ([#&#8203;1064](https://togithub.com/caolan/async/issues/1064), [#&#8203;1542](https://togithub.com/caolan/async/issues/1542))
     65 -   `during` and `doDuring` have been removed, and instead `whilst`, `doWhilst`, `until` and `doUntil` now have asynchronous `test` functions. ([#&#8203;850](https://togithub.com/caolan/async/issues/850), [#&#8203;1557](https://togithub.com/caolan/async/issues/1557))
     66 -   `limits` of less than 1 now cause an error to be thrown in queues and collection methods. ([#&#8203;1249](https://togithub.com/caolan/async/issues/1249), [#&#8203;1552](https://togithub.com/caolan/async/issues/1552))
     67 -   `memoize` no longer memoizes errors ([#&#8203;1465](https://togithub.com/caolan/async/issues/1465), [#&#8203;1466](https://togithub.com/caolan/async/issues/1466))
     68 -   `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. ([#&#8203;1228](https://togithub.com/caolan/async/issues/1228), [#&#8203;1640](https://togithub.com/caolan/async/issues/1640))
     69 
     70 #### New Features
     71 
     72 -   Async generators are now supported in all the Collection methods. ([#&#8203;1560](https://togithub.com/caolan/async/issues/1560))
     73 -   Added `cargoQueue`, a queue with both `concurrency` and `payload` size parameters. ([#&#8203;1567](https://togithub.com/caolan/async/issues/1567))
     74 -   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. ([#&#8203;1459](https://togithub.com/caolan/async/issues/1459), [#&#8203;1556](https://togithub.com/caolan/async/issues/1556))
     75 -   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.
     76 
     77 #### Bug fixes
     78 
     79 -   Better handle arbitrary error objects in `asyncify` ([#&#8203;1568](https://togithub.com/caolan/async/issues/1568), [#&#8203;1569](https://togithub.com/caolan/async/issues/1569))
     80 
     81 #### Other
     82 
     83 -   Removed Lodash as a dependency ([#&#8203;1283](https://togithub.com/caolan/async/issues/1283), [#&#8203;1528](https://togithub.com/caolan/async/issues/1528))
     84 -   Miscellaneous docs fixes ([#&#8203;1393](https://togithub.com/caolan/async/issues/1393), [#&#8203;1501](https://togithub.com/caolan/async/issues/1501), [#&#8203;1540](https://togithub.com/caolan/async/issues/1540), [#&#8203;1543](https://togithub.com/caolan/async/issues/1543), [#&#8203;1558](https://togithub.com/caolan/async/issues/1558), [#&#8203;1563](https://togithub.com/caolan/async/issues/1563), [#&#8203;1564](https://togithub.com/caolan/async/issues/1564), [#&#8203;1579](https://togithub.com/caolan/async/issues/1579), [#&#8203;1581](https://togithub.com/caolan/async/issues/1581))
     85 -   Miscellaneous test fixes ([#&#8203;1538](https://togithub.com/caolan/async/issues/1538))
     86 
     87 * * *
     88 
     89 </details>
     90 
     91 ---
     92 
     93 ### Renovate configuration
     94 
     95 :date: **Schedule**: At any time (no schedule defined).
     96 
     97 :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
     98 
     99 :recycle: **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`".
    100 
    101 :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
    102 
    103 ---
    104 
    105  - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box
    106 
    107 ---
    108 
    109 This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#MTRNord/freifunk-bot).
    110