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…
- 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
- Prototype Pollution in asynchigh · GHSA-fwr7-v2mv-hh25
Upgrading to 3.2.2 clears it.
Release by release
- 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
awaitthem from within anasyncfunction. - 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,cargoandcargoQueue, the "event"-style methods, likeq.drainandq.saturatedare now methods that register a callback, rather than properties you assign a callback to. They are now of the formq.drain(callback). If you do not pass a callback a Promise will be returned for the next occurrence of the event, making themawait-able, e.g.await q.drain(). (#1586, #1641)
- Breaking
3 other lines we could not sort, mostly version bumps
- 3.0.0
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
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.