Skip to content

fix(deps): resolve Dependabot alerts for vite and @babel/core#210

Merged
nishimotz merged 3 commits into
masterfrom
fix/dependabot-vite-babel
Jun 17, 2026
Merged

fix(deps): resolve Dependabot alerts for vite and @babel/core#210
nishimotz merged 3 commits into
masterfrom
fix/dependabot-vite-babel

Conversation

@nishimotz

@nishimotz nishimotz commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • open 中の Dependabot alert 5 件(125, 127, 128, 129, 130)を解消する依存関係更新
  • @astrojs/react^5.0.7 に更新し、Vite 7 系に統一(v4 は vite@^6、v5 は vite@^7
  • npm overridesvite@^7.3.5@babel/core@^7.29.6 を指定(PR #207 と同様の方針)

背景

Alert パッケージ 重要度 対応
127 vite (v7 系) High 7.3.5 以上へ
129 vite (v7 系) Medium 同上
128 vite (v6 系) High v7 統一で解消
130 vite (v6 系) Medium 同上
125 @babel/core Low 7.29.6 以上へ

当初は lockfile 上の v6 / v7 二系統を astro / @astrojs/react ごとの nested override で引き上げる案でしたが、astro 配下の vitefu peer 解決と干渉し npm lsELSPROBLEMS になるため、@astrojs/react 5.x へ上げて Vite 7 に揃える形に変更しました。

Vite の high は dev server を Windows で外部公開している場合のファイル露出系であり、本番(静的 HTML 配信)への直接影響は限定的です。

検証結果

  • npm ls vite @babel/core --all → exit 0(全て vite@7.3.5@babel/core@7.29.7
  • npm run build → 成功(289 ページ)
  • npm run lint → 成功

Test plan

  • CI(checkdata / lint / build)が通ること
  • Dependabot alert 125, 127, 128, 129, 130 が close されること

vitefu only declares vite as an optional peer with a broad range.
The nested override caused npm ls to report the dependency tree as invalid.
Upgrade @astrojs/react to 5.0.7 so the dependency tree uses a single
Vite 7 line. Replace nested astro/@astrojs/react vite overrides with a
top-level vite override to fix npm ls ELSPROBLEMS from vitefu peer resolution.
@nishimotz nishimotz merged commit fc2d2f0 into master Jun 17, 2026
5 checks passed
@nishimotz nishimotz deleted the fix/dependabot-vite-babel branch June 17, 2026 14:06
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