Skip to content

chore(deps): bump vitest from 4.1.11 to 5.0.1 - #9

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-5.0.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-5.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown
Contributor

Bumps vitest from 4.1.11 to 5.0.1.

Release notes

Sourced from vitest's releases.

v5.0.1

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v5.0.0

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes

... (truncated)

Commits
  • 03630a5 chore: release v5.0.1 (#11275)
  • a47d790 fix(fakeTimers): force queueMicrotask and nextTick in toNotFake (#11261)
  • 2ce29d5 fix: warn when deprecated deps.optimizer.web is used (#11214)
  • ccd6d05 docs: fix typecheck exclude default in documentation (#11223)
  • 91ab158 fix(doctor): measure vm pools for custom environments (#11212)
  • 23dda73 fix: share the server on self-referencing extends (#11034)
  • 498fbe9 fix: resolve ResolvedConfig exactOptionalPropertyTypes errors (#11175)
  • 115c3f6 fix: correct typos in error message and comments (#11187)
  • 7361465 fix: keep metadata file when clearing the cache (#11199)
  • 972e24b fix(browser): avoid double quotes in config.define (#11198)
  • Additional commits viewable in compare view

@dependabot @github

dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, javascript. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dependabot dependabot Bot changed the title chore(deps): bump vitest from 4.1.11 to 5.0.0 chore(deps): bump vitest from 4.1.11 to 5.0.1 Sep 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-5.0.0 branch from 5f00fd6 to 1e7552b Compare September 23, 2026 18:12
@clubanderson

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.11 to 5.0.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/vitest)

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

Signed-off-by: dependabot[bot] <support@github.com>
@netlify

netlify Bot commented Sep 23, 2026

Copy link
Copy Markdown

Deploy Preview for hivecommons-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 5ba88e3
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ab4176a1f83e50008543495

@clubanderson

Copy link
Copy Markdown
Member

Superseded by #18, which bumps vitest and @vitest/coverage-v8 to 5.0.1 together.

These two are version-locked, so neither could pass on its own. Vitest 5 also stopped re-exporting vite, which broke vitest.config.ts type checking, so #18 adds vite as an explicit devDependency at the version already resolved in the lockfile.

@clubanderson
clubanderson deleted the dependabot/npm_and_yarn/vitest-5.0.0 branch September 23, 2026 18:18
@dependabot @github

dependabot Bot commented on behalf of github Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is superseded by #18, which bumps vitest and @vitest/coverage-v8 to 5.0.1 together.

Verified from both diffs: this PR bumps only vitest to 5.0.1, leaving @vitest/coverage-v8 at 4.1.11, whose peer requirement is vitest: 4.1.11 — the pair is version-locked, so neither Dependabot bump can pass alone. This PR's "TypeScript & ESLint" check also fails because vitest 5 stopped re-exporting vite, and vitest.config.ts:2 imports transformWithEsbuild from 'vite' directly; #18 fixes that by adding vite as an explicit devDependency.

Flagging for a maintainer: if you agree, this one could be closed in favour of #18 (which still has one failing Mermaid test to resolve — commented there). I have not closed anything.

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

clubanderson added a commit that referenced this pull request Sep 23, 2026
#4) (#18)

* chore(deps): bump vitest and @vitest/coverage-v8 to 5.0.1, add explicit vite

Supersedes the separate Dependabot PRs #9 and #4, which had to land
together: vitest and @vitest/coverage-v8 are version-locked, and merging
either alone breaks the test run.

Vitest 5 no longer re-exports vite, so vitest.config.ts failed to type
check on the bump alone:

  vitest.config.ts(2,38): error TS2307: Cannot find module 'vite'
  vitest.config.ts(13,23): error TS7006: Parameter 'code' implicitly has an 'any' type
  vitest.config.ts(13,29): error TS7006: Parameter 'id' implicitly has an 'any' type

The config imports transformWithEsbuild from vite directly, so vite is
now an explicit devDependency pinned to the version already resolved in
the lockfile (8.1.5). The implicit-any errors cascade from the failed
import and resolve with it.

Vitest 5 requires Node 22 and Vite 6.4+. CI runs Node 22 (vitest.yml)
and the resolved Vite is 8.1.5, so both floors are met.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>

* test: make the mermaid initialize assertion independent of import order

Vitest 5 changed module evaluation ordering, so the static
`import { MermaidComponent }` at the top of the file is no longer
guaranteed to have been evaluated when the assertion runs. The side
effect under test (`mermaid.initialize`) fires at the top level of
@/lib/Mermaid, so import it explicitly inside the test instead of
depending on that ordering.

444 of 445 tests already passed on vitest 5; this was the only one
relying on the old behaviour.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant