async
3.2.6 · 19 Aug 2024MIT149.5M / weekRepositoryHomepagenpmAtom feed
1.5.2 is the newest release of 1.x.
In short
2 new1 faster1 fixed11 changed
Release note
New Features:
cargonow supports all of the same methods and event callbacks asqueue.Added
ensureAsync- A wrapper that ensures an async function calls its callback on a later tick.Optimized
map,eachOf, andwaterfallfamilies of functionsPassing a
nullorundefinedarray tomap,each,paralleland families will be treated as an empty array (#667).The callback is now optional for the composed results of
composeandseq.Reduced file size by 4kb, (minified version by 1kb)
Added code coverage through
nycandcoveralls
Bug Fixes:
foreverwill no longer stack overflow with a synchronous iteratoreachLimitand other limit functions will stop iterating once an error occursAlways pass
nullin callbacks when there is no errorEnsure proper conditions when calling
drain()after pushing an empty data set to a queueeachand family will properly handle an empty arrayeachSeriesand family will finish if the underlying array is modified during executionqueuewill throw if a non-function is passed toq.push()
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.