Skip to content

chore: bump up ava version to v8#125

Merged
Brooooooklyn merged 3 commits into
mainfrom
renovate/ava-8.x
May 6, 2026
Merged

chore: bump up ava version to v8#125
Brooooooklyn merged 3 commits into
mainfrom
renovate/ava-8.x

Conversation

@renovate

@renovate renovate Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
ava (source) ^7.0.0^8.0.0 age confidence

Release Notes

avajs/ava (ava)

v8.0.0

Compare Source

Breaking Changes

AVA now expects Node.js 22.20, 24.12 or newer.

Internally AVA is now fully ESM. This is possible now that Node.js supports loading ES modules using require() calls and simplifies AVA's types and internals.

If you use AVA from a CommonJS project you'll have to update your imports:

-const test = require('ava');
+const {default: test} = require('ava');

We expect an increasing number of projects to be ESM only. As per the above, CommonJS is still supported, but we don't expect cjs extensions to be used. The default file extensions are now js and mjs. Specify extensions: ['cjs', 'js', 'mjs'] for AVA to run test files with the cjs extension.

All test files (and those loaded through AVA's require config) are now loaded via import(). Use customization hooks for transpilation. The object form of the extensions configuration is no longer supported.

If you use AVA with @​ava/typescript you must upgrade that package to v7.

New Features

There's two new test modifiers courtesy of @​sindresorhus: test.skipIf() to skip a test based on a runtime condition. test.runIf() is the inverse: the test only runs when the condition is true.

test.skipIf(process.platform === 'win32')('not on Windows', t => {
	t.pass();
});

test.runIf(process.platform === 'linux')('Linux only', t => {
	t.pass();
});

These work with other modifiers like .serial and .failing:

test.serial.skipIf(process.platform === 'win32')('serial, not on Windows', t => {
	t.pass();
});

test.failing.skipIf(process.platform === 'win32')('expected failure, not on Windows', t => {
	t.fail();
});

Other Changes

  • Watch mode now ignores changes to *.tsbuildinfo files
  • TAP reporter is more defensive when restoring the original error name, thanks to @​ninper00 in #​3415
  • Reported errors when throwsAsync/notThrowsAsync are not awaited have been improved by @​sindresorhus in #​3436

New Contributors

Full Changelog: avajs/ava@v7.0.0...v8.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@Brooooooklyn

Copy link
Copy Markdown
Member

@claude[agent]

  1. add node 24 remove node 20 in tests matrix
  2. fix ava upgrade breaking changes
  3. omit armv7-unknown-linux-gnuabihf + node 24 target in tests matrix due to lack of node 24 docker image in this target

- Add node 24 and remove node 20 from test matrix
- Exclude armv7-unknown-linux-gnueabihf + node 24 due to lack of docker image
- Fix ava v8 breaking change: extensions must be array instead of object

Agent-Logs-Url: https://github.com/napi-rs/tar/sessions/5b4a3175-83d4-4b33-91e9-1047d18ca6c0

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
@Claude

Claude AI commented May 6, 2026

Copy link
Copy Markdown
Contributor

@claude[agent]

  1. add node 24 remove node 20 in tests matrix
  2. fix ava upgrade breaking changes
    ...

All requested changes have been implemented in dda2b48:

  1. ✅ Added Node 24 and removed Node 20 from all test matrices
  2. ✅ Fixed ava v8 breaking change: changed extensions from object format to array format
  3. ✅ Excluded armv7-unknown-linux-gnueabihf + Node 24 combination due to lack of Node 24 docker image for this target

@renovate

renovate Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@Claude
Claude AI requested a review from Brooooooklyn May 6, 2026 05:31
@Brooooooklyn

Copy link
Copy Markdown
Member

@claude[agent]

  1. omit i686-windows + node 24 too
  2. allow s390x targets test fail

- Exclude i686-pc-windows-msvc + node 24 combination from test matrix
- Allow s390x-unknown-linux-gnu target tests to continue on error

Agent-Logs-Url: https://github.com/napi-rs/tar/sessions/21dd69f6-7e21-40ff-a711-5a02489ef331

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
@Claude

Claude AI commented May 6, 2026

Copy link
Copy Markdown
Contributor

@claude[agent]

  1. omit i686-windows + node 24 too
  2. allow s390x targets test fail

Both changes implemented in c1c89a7:

  1. ✅ Excluded i686-pc-windows-msvc + Node 24 combination from test matrix
  2. ✅ Added continue-on-error for s390x-unknown-linux-gnu target tests

@Brooooooklyn
Brooooooklyn merged commit a11e57f into main May 6, 2026
42 checks passed
@Brooooooklyn
Brooooooklyn deleted the renovate/ava-8.x branch May 6, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants