Packages

async

3.2.6 · 19 Aug 2024MIT149.5M / weekRepositoryHomepagenpmAtom feed

Upgrading async From 2.6.4 to 3.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.6.4Latest3.2.6
  1. 2.6.4yours
  2. 3.0.0target
9
changes to make
0
advisories fixed
4
new
1
fix

Before you upgrade

Tick each one off as you go
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0

Security

1 advisory still affects 3.0.0

Upgrading to 3.2.2 clears it.

Release by release

  1. 3.0.0

    Migration needed20 May 20194 new · 1 fix
    • Breaking

      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.

    • Breaking

      Most Async methods return a Promise when the final callback is omitted, making them await-able!

    • Breaking

      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)

    • Breaking

      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)

3 other lines we could not sort, mostly version bumps
  • Removed Lodash as a dependency (#1283, #1528)

    3.0.0
  • Miscellaneous docs fixes (#1393, #1501, #1540, #1543, #1558, #1563, #1564, #1579, #1581)

    3.0.0
  • Miscellaneous test fixes

    3.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.