Skip to content

fix(deps): update vitest to v4 to resolve security vulnerabilities#135

Merged
gotalab merged 1 commit into
mainfrom
fix/security-deps-vitest-v4
Feb 1, 2026
Merged

fix(deps): update vitest to v4 to resolve security vulnerabilities#135
gotalab merged 1 commit into
mainfrom
fix/security-deps-vitest-v4

Conversation

@gotalab

@gotalab gotalab commented Feb 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • vitest: ^1.6.0 → ^4.0.18
  • @types/node: ^24.3.0 → ^25.1.0
  • typescript: ^5.4.5 → ^5.9.3

Why

  • 開発依存関係に2つのmoderate脆弱性が検出
  • vitest 4.x は vite 6.x + esbuild 0.25+ を内包するため、更新で自動解消

Impact

  • npm audit: 0 vulnerabilities ✅
  • npm test: 31ファイル / 158テスト全パス ✅
  • npm run build: コンパイル成功 ✅
  • vitest 4.x API互換性: 標準的な describe/it/expect パターンのみ使用のため問題なし

🤖 Generated with Claude Code

- vitest: ^1.6.0 → ^4.0.18
- @types/node: ^24.3.0 → ^25.1.0
- typescript: ^5.4.5 → ^5.9.3

Resolves:
- GHSA-67mh-4wv8-2f99 (esbuild)
- GHSA-93m4-6634-74q7 (vite)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gotalab gotalab merged commit d96a2c7 into main Feb 1, 2026
@gotalab gotalab deleted the fix/security-deps-vitest-v4 branch February 1, 2026 17:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c5bf3acac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 1351 to 1353
"engines": {
"node": "^18.0.0 || >=20.0.0"
"node": "^20.19.0 || >=22.12.0"
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align CI Node version with Vite 7 engine floor

This lockfile update now pulls Vite 7, which declares engines.node as ^20.19.0 || >=22.12.0. The publish workflow still sets node-version: '20' (checked .github/workflows/publish.yml), which resolves to the latest 20.x and can be <20.19 today; in that case npm ci/npm test may fail or Vite/Vitest may refuse to run on CI. Consider bumping CI to 20.19/22.12 or pinning Vite to a version that supports the Node version you’re using.

Useful? React with 👍 / 👎.

@gotalab gotalab mentioned this pull request Feb 1, 2026
4 tasks
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.

1 participant