async
3.2.6 · 19 Aug 2024MIT149.5M / weekRepositoryHomepagenpmAtom feed
Upgrading async From 2.6.4 to 3.2.2
7 releases in betweenevery note read
Reading releases, release notes and advisories…
- 10
- changes to make
- 0
- advisories fixed
- 7
- new
- 5
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.2.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
- Breaking3.0.0
Security
- 3.2.2
Fix potential prototype pollution exploit
Release by release
- Security
Fix potential prototype pollution exploit
- Security
3.2.1nothing new or fixed in the note
- Breaking
Remove built-in browserify configuration
- Fixed
Fix a bug in Safari related to overwriting
func.name
- Breaking
- New
Allow redefining
nameproperty on wrapped functions.
- New
- New
Added
q.pushAsyncandq.unshiftAsync, analagous toq.pushandq.unshift, except they always do not accept a callback, and reject if processing the task errors. - New
Added ES6+ configuration for Browserify bundlers
- Fixed
Fixed a parsing bug in
autoInjectwith complicated function bodies
- New
- Fixed
Fixed a regression where arrays passed to
queueandcargowould be completely flattened. - Fixed
Clarified Async's browser support
- Fixed
- 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
11 other lines we could not sort, mostly version bumps
- 3.2.1
Use
queueMicrotaskif available to the environment - 3.2.1
Minor perf improvement in
priorityQueue - 3.2.1
More examples in documentation
- 3.2.1
Various doc fixes (#1708, #1712, #1717, #1740, #1739, #1749, #1756)
- 3.2.1
Improved test coverage
- 3.2.0
Varios doc fixes (#1688, #1703, #1704)
- 3.1.0
Promises returned from
q.pushandq.unshiftwhen a callback is not passed now resolve even if an error ocurred. - 3.1.0
Various doc fixes (#1664, #1658, #1665, #1652)
- 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)
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.