Repository navigation
Node を 24 LTS に固定 - #6262
Node を 24 LTS に固定#6262
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughCI ワークフロー 4 本(test、typecheck、canary バンプ、release バンプ)と ChangesNode.js および npm バージョン更新
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.nvmrc:
- Line 1: The Node.js version specification is inconsistent across the project.
While `.nvmrc` and the CI workflow specify Node 24, the `functions/package.json`
file still declares `engines.node: "22"`. Since `.npmrc` has
`engine-strict=true` enabled, this mismatch will cause npm ci to fail when
running in a Node 24 environment. Update the `engines.node` field in
`functions/package.json` (and any other package.json files) to specify Node 24
instead of 22, and update the README documentation to reflect the Node.js 24.x
requirement to ensure consistency across all configuration files and
documentation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 16ff592b-c9fa-4e53-a2c6-f3ce07c1bb13
📒 Files selected for processing (5)
.github/workflows/bump_version_on_canary_pr.yml.github/workflows/bump_version_on_release_pr.yml.github/workflows/test.yml.github/workflows/typecheck.yml.nvmrc
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
functions/package.json (1)
18-27:⚠️ Potential issue | 🟠 MajorCI は Node 24 でのみテストしているため、
engines.nodeを>=24に統一してください。
test.ymlとtypecheck.ymlはいずれもnode-version: 24で実行されており、@types/node: ^24.0.0の指定と一致します。engines.node: >=22は、CI 設定と不一致な過度に緩いドキュメンテーションです。コードが Node 22 で動作する可能性があっても、プロジェクトの実際のサポート範囲は Node 24 のため、調整が必要です。修正案
"engines": { - "node": ">=22" + "node": ">=24" },🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@functions/package.json` around lines 18 - 27, The engines.node specification in package.json is set to >=22, but the CI pipeline (test.yml and typecheck.yml) only tests against Node 24, and the `@types/node` dependency is specified as ^24.0.0. Update the engines.node field in the dependencies section of package.json from >=22 to >=24 to align the declared Node version requirement with the actual CI testing environment and type definitions being used.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@functions/package.json`:
- Around line 18-27: The engines.node specification in package.json is set to
>=22, but the CI pipeline (test.yml and typecheck.yml) only tests against Node
24, and the `@types/node` dependency is specified as ^24.0.0. Update the
engines.node field in the dependencies section of package.json from >=22 to >=24
to align the declared Node version requirement with the actual CI testing
environment and type definitions being used.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 89b85c00-327a-4040-9f44-225e74de876f
⛔ Files ignored due to path filters (1)
functions/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
functions/package.json
概要
Node のバージョン固定を、Maintenance LTS に入った 22 から Active LTS の 24 に更新する。あわせて、Node 24 が同梱する npm 11 で
npm ciがengine-strictに弾かれないようengines.npmを緩め、functions/(Cloudflare Workers)のローカルツールチェーンの Node 系も揃える。engines.node(アプリ側)は EAS Submit のnpm ciを落とすため復活させず(#5857 の経緯)、固定は.nvmrcと CI のみで維持する。変更の種類
変更内容
.nvmrcを22→24に更新node-versionを24に更新(test.yml/typecheck.yml/bump_version_on_canary_pr.yml/bump_version_on_release_pr.yml)engines.npmを"10.x"→">=10"に緩和(Node 24 同梱の npm 11 でengine-strict=trueの EBADENGINE を回避。npm 10 の EAS 環境とも両立)engines.node(アプリ側)は追加しない(engine-strict=true×engines.nodeが EAS Submit のnpm ciを落とすため)functions/(Cloudflare Workers)のツールチェーンを Node 24 に追従:engines.nodeを"22"→">=22"に緩和(完全一致の脆さを回避し 22/24 両対応)@types/nodeを^22→^24に更新(package-lock.jsonも追従)compatibility_date/nodejs_compat)であり、本変更はローカルのビルド/ツールチェーンにのみ影響するテスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること省略: コード変更なし(
.nvmrc・CI 設定・engines・型定義のバージョンのみ)関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
Chores
package.jsonのengines.npm指定を10.xから>=10へ変更し、対象npmバージョン範囲を広げました。functions配下のNode.js要件を22から>=22に更新し、対応する型定義もNode 24向けに更新しました。