Skip to content

chore(deps): bulk update all packages, require Node 24+, add Renovate cooldown#68

Open
otofu-square wants to merge 2 commits into
masterfrom
chore/bulk-deps-update-node24
Open

chore(deps): bulk update all packages, require Node 24+, add Renovate cooldown#68
otofu-square wants to merge 2 commits into
masterfrom
chore/bulk-deps-update-node24

Conversation

@otofu-square
Copy link
Copy Markdown
Contributor

@otofu-square otofu-square commented May 26, 2026

Summary

  • 全 npm パッケージを最新化(major含む: typescript 5.9→6.0, @vitejs/plugin-react 5→6
  • engines.node: >=24 を追加
  • renovate.jsonminimumReleaseAge: "7 days" を追加し、Renovate 側で npm パッケージのリリース直後の自動更新 PR を抑制
  • .npmrcmin-release-age=7 を追加し、npm v11+ の install 側でも同じ 7 日クールダウンを強制
  • TS 6.0 で side-effect import の型解決が厳格化されたため、vite-env.d.tsdeclare module 'ress' を追加

これにより以下の既存 Renovate PR を内包・置き換え:

バージョン変更一覧

パッケージ 変更前 変更後
react 19.2.4 19.2.6
react-dom 19.2.4 19.2.6
styled-components 6.3.11 6.4.2
@types/react 19.2.14 19.2.15
@vitejs/plugin-react 5.2.0 6.0.2 (major)
prettier 3.8.1 3.8.3
typescript 5.9.3 6.0.3 (major)

vite (8.0.14) / ress (5.0.2) / @types/react-dom (19.2.3) / @types/styled-components (5.1.36) は最新のため変更なし。

検証

  • npm install 成功 (0 vulnerabilities)
  • npm startVITE v8.0.14 ready in 558 mshttp://localhost:5173/ から index.html / 変換済み tsx / CSS modules すべて HTTP 200 で配信
  • npx vite build 成功 (built in 296ms, JS 191.43kB / CSS 2.68kB)
  • npx tsc --noEmit 成功(ress の declare 追加後)

注意事項

  • lockfile は引き続きコミットしない方針(候補者が npm install する想定)
  • 検証は Node 22.18 / npm 10.9.3 で実施(min-release-age は無視される)。Node 24 / npm 11+ では min-release-age=7 が効くため、vite@8.0.14(公開 2026-05-21、本日時点で 5 日経過)や styled-components@6.4.2(同 7 日)の install が一時的に弾かれる可能性があります。merge を 2〜3 日後ろにずらすか、初回は npm install --ignore-min-release-age で対応してください
  • engines は警告のみ(npm engine-strict は未設定)。厳格化したい場合は .npmrcengine-strict=true を追加可能

🤖 Generated with Claude Code

- Bump all npm packages to latest (incl. major: typescript 5→6, @vitejs/plugin-react 5→6)
- Require Node >=24 via engines field
- Add 7-day minimumReleaseAge for npm in renovate.json
- Declare 'ress' module to satisfy TS 6.0 side-effect import check

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirrors the Renovate-side 7-day cooldown on the install side: npm v11+
will refuse to resolve a tree containing versions younger than 7 days.
Ignored on npm <11.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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