Packages

ava

8.4.0 · 7 Nov 2026MIT575.3k / weekRepositoryHomepagenpmAtom feed

Upgrading ava From 5.3.1 to 6.0.0

1 release in betweenevery note read

Other targets from 5.3.1Latest8.4.0
  1. 5.3.1yours
  2. 6.0.0target
4
changes to make
0
advisories fixed
3
new
0
fixes

Before you upgrade

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

Release by release

  1. 6.0.0

    Migration needed4 Dec 20233 new
    • Breaking

      AVA now requires Node.js versions 18.18, 20.8 or 21. Versions 14 and 16 are no longer supported. #3251 #3216

    • Breaking

      When tests finish, worker threads or child processes are no longer exited through proces.exit(). If your test file does not exit on its own, the test run will time out. #3260

    • Breaking

      Failed assertions now throw, meaning that any subsequent code is not executed. This also impacts the type definitions. #3246

    • Breaking

      Only native errors are now considered errors by the t.throws() and t.throwsAsync() assertions. Object.create(Error.prototype) is not a native error. #3229

    • New

      Internal events can now be observed (experimentally). See #3247 by @codetheweb. It’s experimental and undocumented.

    • New

      You can now use t.timeout.clear() to restore a previous t.timeout(). #3221

    • New

      Code coverage is flushed to disk at opportune moments. #3220

5 other lines we could not sort, mostly version bumps
  • Watch mode can no longer be started via the ava.config.* or package.json configuration.

    6.0.0
  • The ignoredByWatcher configuration has moved to the watchMode object, under the ignoreChanges key.

    6.0.0
  • Watch mode now uses the built-in fs.watch() in recursive mode. This is supported on Linux in Node.js 20 or newer, and MacOS and Windows in Node.js 18 as well. There are caveats to keep in mind.

    6.0.0
  • If such modules export a default function, this function is now invoked.

    6.0.0
  • Local files are loaded through @ava/typescript if necessary.

    6.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.