All Versions
34
Latest Version
Avg Release Cycle
148 days
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v3.2.1 Changes
- ๐ Use
queueMicrotask
if available to the environment (#1761) - Minor perf improvement in
priorityQueue
(#1727) - ๐ More examples in documentation (#1726)
- ๐ Various doc fixes (#1708, #1712, #1717, #1740, #1739, #1749, #1756)
- ๐ Improved test coverage (#1754)
- ๐ Use
-
v3.2.0 Changes
February 24, 2020- ๐ Fix a bug in Safari related to overwriting
func.name
- โ Remove built-in browserify configuration (#1653)
- ๐ Varios doc fixes (#1688, #1703, #1704)
- ๐ Fix a bug in Safari related to overwriting
-
v3.1.1 Changes
January 24, 2020- ๐ Allow redefining
name
property on wrapped functions.
- ๐ Allow redefining
-
v3.1.0 Changes
June 23, 2019- โ Added
q.pushAsync
andq.unshiftAsync
, analagous toq.push
andq.unshift
, except they always do not accept a callback, and reject if processing the task errors. (#1659) - Promises returned from
q.push
andq.unshift
when a callback is not passed now resolve even if an error ocurred. (#1659) - ๐ Fixed a parsing bug in
autoInject
with complicated function bodies (#1663) - โ Added ES6+ configuration for Browserify bundlers (#1653)
- ๐ Various doc fixes (#1664, #1658, #1665, #1652)
- โ Added
-
v3.0.1 Changes
May 26, 2019๐ Bug fixes
- ๐ Fixed a regression where arrays passed to
queue
andcargo
would be completely flattened. (#1645) - ๐ป Clarified Async's browser support (#1643)
- ๐ Fixed a regression where arrays passed to
-
v3.0.1-0
October 01, 2018 -
v3.0.0 Changes
May 20, 2019๐ 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 anasync
function.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) - ๐ป 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)
- ๐
In
queue
,priorityQueue
,cargo
andcargoQueue
, the "event"-style methods, likeq.drain
andq.saturated
are 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) - 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, #1542) - ๐
during
anddoDuring
have been removed, and insteadwhilst
,doWhilst
,until
anddoUntil
now have asynchronoustest
functions. (#850, #1557) limits
of less than 1 now cause an error to be thrown in queues and collection methods. (#1249, #1552)memoize
no longer memoizes errors (#1465, #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, #1640)
๐ New Features
- ๐ Async generators are now supported in all the Collection methods. (#1560)
- โ Added
cargoQueue
, a queue with bothconcurrency
andpayload
size parameters. (#1567) - Queue objects returned from
queue
now have aSymbol.iterator
method, meaning they can be iterated over to inspect the current list of items in the queue. (#1459, #1556) - ๐ฆ A ESM-flavored
async.mjs
is included in theasync
package. This is described in thepackage.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, #1569)
Other
- โ Removed Lodash as a dependency (#1283, #1528)
- ๐ Miscellaneous docs fixes (#1393, #1501, #1540, #1543, #1558, #1563, #1564, #1579, #1581)
- โ Miscellaneous test fixes (#1538)
- Most Async methods return a Promise when the final callback is omitted, making them
-
v2.6.3
July 14, 2019 -
v2.6.2
February 12, 2019 -
v2.6.1 Changes
May 21, 2018- โก๏ธ Updated lodash to prevent
npm audit
warnings. (#1532, #1533) - โก๏ธ Made
async-es
more optimized for webpack users (#1517) - ๐ Fixed a stack overflow with large collections and a synchronous iterator (#1514)
- ๐ Various small fixes/chores (#1505, #1511, #1527, #1530)
- โก๏ธ Updated lodash to prevent