Packages

async

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

Your version

1.1.0

1 Jun 2015Where it was published

1.5.2 is the newest release of 1.x.

In short

2 new1 faster1 fixed11 changed

Release note

New Features:

  • cargo now supports all of the same methods and event callbacks as queue.

  • Added ensureAsync - A wrapper that ensures an async function calls its callback on a later tick.

  • Optimized map, eachOf, and waterfall families of functions

  • Passing a null or undefined array to map, each, parallel and families will be treated as an empty array (#667).

  • The callback is now optional for the composed results of compose and seq.

  • Reduced file size by 4kb, (minified version by 1kb)

  • Added code coverage through nyc and coveralls

Bug Fixes:

  • forever will no longer stack overflow with a synchronous iterator

  • eachLimit and other limit functions will stop iterating once an error occurs

  • Always pass null in callbacks when there is no error

  • Ensure proper conditions when calling drain() after pushing an empty data set to a queue

  • each and family will properly handle an empty array

  • eachSeries and family will finish if the underlying array is modified during execution

  • queue will throw if a non-function is passed to q.push()

  • Doc fixes (#629, #766)

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.