Repository navigation
build(dev-deps): upgrade vitest to v5 - #241
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N2vvE5XzurMvQfsX7Vz7bF
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Looks good, straightforward dependency and CI version bump.
Reviewed: both CI workflows (lint.yml, test.yml) consistently bump Node from 20.x to 22.x with no other stale version references (no .nvmrc or engines field to update); package.json's vitest/@ vitest/coverage-v8 (^5.0.1) and new vite (^8.0.16) devDependency versions match exactly what's resolved in yarn.lock; the vite version is pinned to the version already present in the prior lockfile as the PR description claims.
Extended reasoning...
Change touches only CI workflow YAML and dependency manifests/lockfile (no application or security-sensitive code). Verified via diff that both workflows were updated consistently and that package.json's new devDependency versions (vitest 5.0.1, @ vitest/coverage-v8 5.0.1, vite 8.0.16) match the corresponding yarn.lock entries exactly, with no engines/.nvmrc inconsistency left behind. This is a small, mechanical, well-scoped version bump with no design decisions or ambiguity, so a human need not review it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N2vvE5XzurMvQfsX7Vz7bF
There was a problem hiding this comment.
Looks good — the dsanders11 feedback about the hardcoded Node version has been addressed by switching both lint.yml and test.yml to node-version-file: .nvmrc, keeping the two workflows consistent. Checked the vitest 4→5 bump, the new explicit vite ^8.0.16 devDependency (needed since vitest 5 makes vite a peer instead of a direct dep), the .nvmrc pin to Node 22, and the yarn.lock regeneration — all consistent with the stated intent and no other issues found.
Extended reasoning...
Small, mechanical CI/toolchain change: adds .nvmrc (Node 22), points both GitHub Actions workflows at it via node-version-file instead of a hardcoded version, and bumps vitest/@ vitest/coverage-v8 to v5 plus adds vite as an explicit devDependency, with yarn.lock regenerated. No security-sensitive surface (no auth/crypto/data-handling code touched). The one open inline objection (dsanders11 on lint.yml:22) was addressed by the follow-up commit that made both workflows consistent, and the bug hunt reported no findings, so I'm acknowledging the fix and approving.
Requested by David Sanders · Slack thread
This bumps vitest and @vitest/coverage-v8 to ^5.0.1. It also fixes the existing peer mismatch where coverage-v8 was locked at 4.1.1 and vitest at 4.1.11. Vitest 5 no longer depends on vite and lists it as a required peer instead, so vite is added as a devDependency at ^8.0.16, the version already in the lockfile, which keeps vite and rolldown at their current locked versions. Vitest 5 needs Node ^22.12.0 or newer, so CI moves from Node 20 to 22. Instead of hardcoding 22.x, a new
.nvmrcat the repo root sets Node 22, and the Test and Lint workflows both read it withnode-version-file: .nvmrc, so future bumps are a one-line change. No test or config changes were needed: build, lint, all 57 tests and the coverage run pass locally on Node 22.🤖 Generated with Claude Code
https://claude.ai/code/session_01N2vvE5XzurMvQfsX7Vz7bF
Generated by Claude Code