Packages

async

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

Upgrading async From 1.5.2 to 2.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.5.2Latest3.2.6
  1. 1.5.2yours
  2. 2.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0

Security

1 advisory still affects 2.0.0

Upgrading to 2.6.4 clears it.

Release by release

  1. 2.0.0

    Migration needed13 Jul 201618 new · 3 fixes
    • Breaking

      Added mapValues, for mapping over the properties of an object and returning an object with the same keys. (#1157, #1177)

    • Breaking

      Calling a callback more than once is considered an error, and an error will be thrown. This had an explicit breaking change in waterfall. If you were relying on this behavior, you should more accurately represent your control flow as an event emitter or stream. (#814, #815, #1048, #1050)

    • Breaking

      auto task functions now always take the callback as the last argument. If a task has dependencies, the results object will be passed as the first argument. To migrate old task functions, wrap them with _.flip (#1036, #1042)

    • Breaking

      filter, reject, some, every, and related functions now expect an error as the first callback argument, rather than just a simple boolean. Pass null as the first argument, or use fs.access instead of fs.exists. (#118, #774, #1028, #1041)

6 other lines we could not sort, mostly version bumps
  • Takes a variable number of arguments

    2.0.0
  • The last argument is always a callback

    2.0.0
  • The callback can accept any number of arguments

    2.0.0
  • The first argument passed to the callback will be treated as an error result, if the argument is truthy

    2.0.0
  • Any number of result arguments can be passed after the "error" argument

    2.0.0
  • The callback is called once and exactly once, either on the same tick or later tick of the JavaScript event loop.

    2.0.0

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.