Upgrade vitest to 5.0.5 to clear four dev-tooling advisories (#46) #49
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/rag-rust!49
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/46-upgrade-vitest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upgrades the frontend test tooling off vitest 3.2.7 to clear the four development-tooling advisories the Security workflow found, ahead of their 2026-11-30 exception expiry. Closes #46.
What changed
vitestand@vitest/coverage-v8: 3.2.7 to 5.0.5, pinned exactly, together. This removes the vulnerable@vitest/mockerandtinypooldependencies.npm auditnow reports 0 vulnerabilities across production and development dependencies. The four exceptions inweb/audit-exceptions.txt(GHSA-82fw-gwwq-j7x9, GHSA-qxg6-89mg-rqv8, GHSA-5gmw-xhrv-c9v3, GHSA-85c8-ppgw-ccpr) are removed; the file now has no entries.web/vitest.config.ts: the obsoletecoverage.alloption is removed (Vitest 5 dropped it).docs/operations/ci.md: version, Node requirement, coverage note and the list of accepted findings updated.Compatibility checked
^22.12 || ^24 || >=26; the repository pins 22.23.2 (.node-version, CI image).^6.4 || ^7 || ^8; 6.4.5 is installed and unchanged.Cannot read properties of null (reading 'edgesOut')), so I used 5.0.5, which installs cleanly and is whatnpm auditrecommended.Verification (local, Node 22.23.2, from a clean
npm ci)npm run typecheck,npm test(3 files, 22 tests),npm run test:coverage,npm run build: all pass.npm audit: 0 vulnerabilities.node scripts/audit-npm.mjs: 0 advisories, exit 0.node --test scripts/audit-npm.test.mjs: 9 pass.coverage.alldid not weaken the gate's denominator.Please note
returnis one line instead of many, which shrinks the denominator. The measured set and the gate are unchanged.🤖 Generated with Claude Code