Skip to content

Commit ea019d3

Browse files
fix(deps): Update dependency ava to v8 (#396)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [ava](https://avajs.dev) ([source](https://redirect.github.com/avajs/ava)) | [`^7.0.0` → `^8.0.0`](https://renovatebot.com/diffs/npm/ava/7.0.0/8.0.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/ava/8.0.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ava/7.0.0/8.0.1?slim=true) | --- ### Release Notes <details> <summary>avajs/ava (ava)</summary> ### [`v8.0.1`](https://redirect.github.com/avajs/ava/releases/tag/v8.0.1) [Compare Source](https://redirect.github.com/avajs/ava/compare/v8.0.0...v8.0.1) #### What's Changed This release officially adds Node.js 26 support, with thanks to [@&#8203;novemberborn](https://redirect.github.com/novemberborn) in [#&#8203;3450](https://redirect.github.com/avajs/ava/pull/3450). Per our policy, support for Node.js 25 has been removed. **Full Changelog**: <avajs/ava@v8.0.0...v8.0.1> ### [`v8.0.0`](https://redirect.github.com/avajs/ava/releases/tag/v8.0.0) [Compare Source](https://redirect.github.com/avajs/ava/compare/v7.0.0...v8.0.0) #### 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: ```diff -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](https://nodejs.org/docs/latest/api/module.html#customization-hooks) for transpilation. The object form of the `extensions` configuration is no longer supported. If you use AVA with [@&#8203;ava/typescript](https://redirect.github.com/avajs/typescript) you must upgrade that package to v7. #### New Features There's two new test modifiers [courtesy of](https://redirect.github.com/avajs/ava/pull/3423) [@&#8203;sindresorhus](https://redirect.github.com/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. ```js 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`: ```js 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 [@&#8203;ninper00](https://redirect.github.com/ninper00) in [#&#8203;3415](https://redirect.github.com/avajs/ava/pull/3415) - Reported errors when `throwsAsync`/`notThrowsAsync` are not awaited have been improved by [@&#8203;sindresorhus](https://redirect.github.com/sindresorhus) in [#&#8203;3436](https://redirect.github.com/avajs/ava/pull/3436) #### New Contributors - [@&#8203;ninper00](https://redirect.github.com/ninper00) made their first contribution in [#&#8203;3415](https://redirect.github.com/avajs/ava/pull/3415) **Full Changelog**: <avajs/ava@v7.0.0...v8.0.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month (`* 0-3 1 * *`) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5NS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent 650cedc commit ea019d3

2 files changed

Lines changed: 43 additions & 42 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@types/semver": "^7.5.8",
5656
"@types/uuid": "^11.0.0",
5757
"@types/yargs": "^17.0.24",
58-
"ava": "^7.0.0",
58+
"ava": "^8.0.0",
5959
"@eslint/js": "^10.0.0",
6060
"eslint": "^10.0.0",
6161
"eslint-config-prettier": "^10.0.0",

pnpm-lock.yaml

Lines changed: 42 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)