Skip to content

chore(deps-dev): bump vitest from 2.1.9 to 4.0.18#7

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/vitest-4.0.18
Closed

chore(deps-dev): bump vitest from 2.1.9 to 4.0.18#7
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/vitest-4.0.18

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Mar 7, 2026

Bumps vitest from 2.1.9 to 4.0.18.

Release notes

Sourced from vitest's releases.

v4.0.18

   🚀 Experimental Features

   🐞 Bug Fixes

    View changes on GitHub

v4.0.17

   🚀 Experimental Features

   🐞 Bug Fixes

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for vitest since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 2.1.9 to 4.0.18.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.0.18/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.0.18
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 7, 2026
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vitest": "^2.1.8",
"vitest": "^4.0.18",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The vitest package is updated to v4, but the @vitest/coverage-v8 package is not. This version mismatch will cause a peer dependency conflict and break the CI build.
Severity: HIGH

Suggested Fix

To resolve the peer dependency conflict, update the @vitest/coverage-v8 package to a version compatible with vitest v4. Change @vitest/coverage-v8 from ^2.1.8 to ^4.0.18 in package.json.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: package.json#L66

Potential issue: The pull request updates `vitest` to version `^4.0.18` but leaves
`@vitest/coverage-v8` at `^2.1.8`. This creates a peer dependency conflict, as the older
coverage package requires a `vitest` version compatible with v2. After this change is
merged, the `bun install` command will result in incompatible package versions.
Consequently, the `test:coverage` script, which runs `vitest run --coverage` in the CI
pipeline, will fail at runtime. Vitest enforces version matching between its core and
plugin packages across major versions, so invoking the v2 coverage provider with the v4
core will cause the CI build to fail.

Did we get this right? 👍 / 👎 to inform future reviews.

@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Mar 14, 2026

Superseded by #15.

@dependabot dependabot bot closed this Mar 14, 2026
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vitest-4.0.18 branch March 14, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants