Skip to content

chore(deps-dev): bump vitest from 4.1.11 to 5.0.0 - #855

Merged
RonenMars merged 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-5.0.0
Sep 12, 2026
Merged

chore(deps-dev): bump vitest from 4.1.11 to 5.0.0#855
RonenMars merged 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-5.0.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps vitest from 4.1.11 to 5.0.0.

Release notes

Sourced from vitest's releases.

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
  • f441c6f chore: release v5.0.0 (#11130)
  • d46a747 fix: treat test.describe as a suite during static collection (#11128)
  • 584cf30 fix: add a warning if inline project has duplicate plugins due to unexpected ...
  • f08ce4b fix: apply queued mocks from doMock() in queue order (fixes #10706) (#11127)
  • 897f51f chore: release v5.0.0-rc.4 (#11107)
  • 1339b06 chore(deps): update all non-major dependencies (#11104)
  • 51e9494 feat!: parse files statically in vitest list by default (#11088)
  • 2122ffd fix: propagate --maxWorkers to projects (#11102)
  • dc10f5f fix(browser): report the action error when a task times out (#11101)
  • d4fe198 feat: promote clearCache out of experimental (#11086)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-5.0.0 branch 11 times, most recently from ba0e41b to edfc3da Compare September 11, 2026 23:07
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.11 to 5.0.0.
- [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.0/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>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-5.0.0 branch from edfc3da to 9e006e7 Compare September 12, 2026 00:38
@RonenMars
RonenMars merged commit acc7d3f into main Sep 12, 2026
10 checks passed
@RonenMars
RonenMars deleted the dependabot/npm_and_yarn/vitest-5.0.0 branch September 12, 2026 00:47
@RonenMars

Copy link
Copy Markdown
Owner

🎉 This PR is included in version 1.89.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

RonenMars added a commit that referenced this pull request Sep 12, 2026
…ndency notes [skip-ci]

A @types/* type imported by name couples the repo to one version of that package.
@types/node 26.5.0 renamed IntervalHistogram to ELDHistogram with neither version declaring both, which failed Lint and Build on TS2305 while runtime behaviour was unchanged (#853, fixed by #874).
Deriving the type from the value is the fix and the general rule.

vitest 5.0.0 (#855) landed green on every check, which is strong evidence because CI runs the suite under the new runner — but not proof over config resolution, reporters, worker pooling or timeouts.

AGENTS.md's "Dependencies and build" section described vendor/scanner and vendor/agent-types as submodules with file: deps and claimed recursive CI checkouts.
None of that is true: menubar is the only submodule, scanner and agent-types are published @threadbase-sh npm packages, and every build/test checkout sets submodules: false.
It also understated the externals and the migration copies — the CLI externalizes better-sqlite3 as well as node-pty, and the build copies three migration directories, not two.
CLAUDE.md carried the same externals error and is corrected with it.

Pointers from CLAUDE.md, AGENTS.md and a new .cursor/rules/dependency-bumps.mdc so claude-code, codex and cursor all reach it.
RonenMars added a commit that referenced this pull request Sep 12, 2026
…ndency notes [skip-ci] (#877)

Two lessons from the dependabot batch that landed today, plus the stale
notes they exposed.

## 1. A `@types/*` type imported by name is a version coupling

`@types/node` 26.5.0 renamed the `perf_hooks` histogram
`IntervalHistogram` to `ELDHistogram`, and **neither version declares
both names**.
So #853 failed `Lint` and `Build` on `TS2305: … has no exported member`
while nothing was wrong at runtime.

Renaming the import moves the break to the other side of the bump and
leaves the same trap for the next rename.
Deriving the type from the value that produces it — `ReturnType<typeof
monitorEventLoopDelay>` — tracks whatever the installed types call it
(#874).

Recorded with the verify-both-versions procedure, the revert-to-red
check, and the sequencing constraint: the derived-type fix lands on
`main` first, then the dependabot PR rebases green.

## 2. A green suite does not fully clear a major test-runner bump

vitest 5.0.0 (#855) passed every check across two independent CI cycles.
That is strong evidence, because CI runs the suite *under* the new
runner — but it covers only what the suite exercises, not config
resolution, reporters, worker pooling or default timeouts.
Recorded as "suspect the runner first when tooling output turns odd".

## 3. `AGENTS.md` "Dependencies and build" was substantially wrong

Found while adding the above. Every claim below was checked against the
tree, not copied from `CLAUDE.md`:

| Claim | Reality |
|---|---|
| `vendor/scanner`, `vendor/agent-types`, `vendor/menubar` are
submodules | `.gitmodules` has only `vendor/menubar` |
| CI checkouts "remain recursive" | every `ci.yml`/`release.yml`
checkout sets `submodules: false`; only `update-menubar.yml` is
recursive |
| `@threadbase/scanner` are `file:` deps built by `postinstall` |
`@threadbase-sh/scanner@^0.17.2` and
`@threadbase-sh/agent-types@^1.0.0`, normal npm semver deps — the scope
was wrong too |
| "only `node-pty` is external" for the CLI | the CLI entry externalizes
`node-pty` **and `better-sqlite3`**; the library entry externalizes
`node-pty` and `pg` |
| "both SQLite and Postgres migration copies" | the build copies
**three** dirs: `migrations/`, `runtime-migrations/`, `pg-migrations/` |
| preserve `prepare` / `postinstall` | correct — kept, and noted that
`prepare` also sets `core.hooksPath` |

`CLAUDE.md` carried the same CLI-externals error and is corrected with
it.

## Reaching all three tools

Canonical text lives in `docs/troubleshooting.md`.
`CLAUDE.md` and `AGENTS.md` point at it; Cursor reads `AGENTS.md`
natively and additionally gets `.cursor/rules/dependency-bumps.mdc`,
scoped by `globs` to TS and dependency files rather than `alwaysApply`.

The `.mdc` is a short form plus a pointer, not a third copy — three
hand-maintained copies of one paragraph is how `AGENTS.md` drifted in
the first place.
Adding it falsified `docs/agents/tooling.md`'s "Cursor … read none of
the files above", which is updated here.

## Verified state

- `npx vitest --version` → `vitest/5.0.0 darwin-arm64 node-v24.15.0`,
confirming the runner claim.
- `@types/node` on `main` is `26.5.0` (#853 merged).
- `../../docs/troubleshooting.md` resolves from `.cursor/rules/`;
`.cursor/` is not gitignored.
- Code fences balanced; `biome check` clean.

Checked 2026-09-12 against `32a7977d`.

Docs-only, hence `[skip-ci]`.
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 released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant