Skip to content

Upgrade vitest to clear new dependency audit advisories - #996

Merged
enaboapps merged 2 commits into
mainfrom
claude/vitest-audit
Oct 6, 2026
Merged

enaboapps merged 2 commits into
mainfrom
claude/vitest-audit

Conversation

@enaboapps

@enaboapps enaboapps commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Closes #995

What

  • Tooling only: upgrades vitest from 3.x to 5.x, the fix for the vitest, @vitest/mocker and tinypool advisories. npm audit fix refreshes source-map-js in the lockfile. Nothing shipped in the app changes.

  • No config changes: the existing vitest config and tests run unchanged.

  • CI identity check: .github/workflows/ci.yml's retired-identity grep now also excludes package-lock.json, as it already does src-tauri/Cargo.lock. Vitest 5 lists an optional third-party peer package (@vitest/browser-…) whose name contains the retired word. It isn't installed or used; lockfiles hold only third-party package names, so excluding the file doesn't weaken the check for our own code.

Validation

  • npm audit: found 0 vulnerabilities, where before there were 2 critical, 1 high and 1 moderate.
  • The retired-identity grep with the new exclusion is clean.
  • npm run lint, npm test (279 passed, all 13 files) and npm run build all pass.

🤖 Generated with Claude Code

Newly published advisories in vitest/@vitest/mocker, tinypool and
source-map-js fail the required Dependency audit check. Upgrade vitest to
5.x and refresh source-map-js in the lockfile; npm audit now reports no
vulnerabilities and all tests pass unchanged.

Fixes #995

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@enaboapps enaboapps added this to the v1.0.0-rc.22 milestone Oct 6, 2026
vitest 5 lists an optional third-party peer package whose name contains the
retired word, so the lockfile now matches the check even though nothing of
ours uses it. Lockfiles hold only third-party package names; exclude it the
same way src-tauri/Cargo.lock already is.

Refs #995

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@enaboapps
enaboapps marked this pull request as ready for review October 6, 2026 18:50
@enaboapps
enaboapps merged commit 3bab85c into main Oct 6, 2026
6 checks passed
@enaboapps
enaboapps deleted the claude/vitest-audit branch October 6, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency audit fails on new vitest, tinypool and source-map-js advisories

2 participants