Skip to content

依存パッケージのパッチ更新と脆弱性修正 - #5847

Merged
TinyKitten merged 7 commits into
devfrom
chore/bump-deps
Apr 21, 2026
Merged

TinyKitten merged 7 commits into
devfrom
chore/bump-deps

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Apr 21, 2026 •

Copy link
Copy Markdown
Member

概要

Expo SDK 55 系と React Native、jest-expo のパッチ更新、および npm audit による脆弱性修正を適用する。CodeRabbit の指摘対応に加え、その検証過程で露呈した expo-modules-core の型解決エラー・Jest setup 失敗も本 PR 内で解消した。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • npx expo install --fix により Expo SDK 55 系の各パッケージを最新パッチ版へ更新
  • react-native を 0.83.2 → 0.83.4 に更新
  • jest-expo を ~55.0.11 → ~55.0.16 に更新
  • npm audit fix で検出された脆弱性を解消
  • @react-native/js-polyfills / @react-native/metro-config を ^0.81.x → ^0.83.4 に更新(react-native 0.83.4 との重複インストール解消、CodeRabbit 指摘対応)
  • jest の moduleDirectories に node_modules/expo/node_modules を追加し、expo-modules-core が nested 位置にあっても jest-expo の setup が解決できるように修正
  • tsconfig.json の paths に expo-modules-core の nested パスマッピングを追加し、expo-audio の型宣言経由の参照を tsc が解決できるように修正

なぜ hoist ではなく設定ファイル側で解決するか: [email protected] が react-native-worklets@^0.7.4 || ^0.8.0 を peer として要求する一方、Expo SDK 55 の bundled list が [email protected] を推奨しているため、expo-modules-core を top-level に hoist すると npx expo install --fix が ERESOLVE で失敗する。Expo SDK 側の upstream 不整合が解消されたらこの設定は撤去可能。

テスト

  • npm run lint が通ること
  • npm test が通ること(148 suites / 1398 tests pass)
  • npm run typecheck が通ること
  • npx expo install --fix が "Dependencies are up to date" で完了すること

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

リリースノート

  • チョア
    • Expoおよび関連パッケージ(audio、device、network、notifications等)を新しい55系に更新しました
    • expo-modules-coreの参照を明示的に追加しました(パス解決の補助)
    • React Nativeを0.83.4に更新しました
    • 開発用パッケージを更新し依存関係を最適化しました
  • テスト
    • Jestのモジュール解決設定を追加しネストされた依存を参照できるようにしました

@TinyKitten TinyKitten self-assigned this Apr 21, 2026
@coderabbitai

coderabbitai Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 87efbd2c-a848-4767-a384-c3ab9991c3a5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

package.json の依存バージョンが複数更新され、主要な Expo モジュール群や react-native、jest-expo 等が新しいバージョンに揃えられ、Jest の moduleDirectories 設定が追加されました。tsconfig.json に expo-modules-core のパス別名が追記されました。

Changes

Cohort / File(s) Summary
依存バージョン更新
package.json
多数の expo と expo-* パッケージのバージョン指定を新しい ~55.x.y 系へ更新。react-native を 0.83.2→0.83.4、jest-expo を ~55.0.11→~55.0.16、@react-native/js-polyfills/@react-native/metro-config を ^0.83.4 に更新。Jest に moduleDirectories(node_modules, node_modules/expo/node_modules)を追加。
TypeScript パス別名追加
tsconfig.json
compilerOptions.paths に expo-modules-core と expo-modules-core/* のマッピングを node_modules/expo/node_modules/expo-modules-core へ追加。既存の ~/* エイリアスは維持。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 バージョン跳ねて、ぴょんぴょんぴょん
Expoの仲間がそろってにっこり🌼
コアの道もつながったよ
テストの道筋もすこし明るくて
ぴょんと祝おう、軽やかな更新!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed タイトルは「依存パッケージのパッチ更新と脆弱性修正」で、package.json と tsconfig.json での依存関係の更新と設定追加という主要な変更内容を正確に反映している。
Description check ✅ Passed PR説明は必須項目をすべて記載していり、詳細な変更内容、テスト結果、および設定変更の技術的背景を説明している。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-deps

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the ios label Apr 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
package.json (1)

33-114: ⚠️ Potential issue | 🟡 Minor

docs/changelog.md を作成し、依存更新後の検証結果を記録してください

Expo SDK アップグレード後、expo-doctor、npm run lint、npm test、npm run typecheck の実行結果を docs/changelog.md に記録する必要があります。

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` around lines 33 - 114, Create docs/changelog.md and record the
verification results after the dependency/Expo SDK upgrade: run expo-doctor, npm
run lint, npm test, and npm run typecheck, paste the full console outputs (or
summarize failures with exact error messages), add the date, the package.json
changes (brief list of updated packages or link to the PR), and a short
pass/fail status for each command so reviewers can reproduce and validate;
ensure the file is committed alongside the package.json changes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Line 71: Update devDependencies to match the installed react-native version:
change the `@react-native/js-polyfills` and `@react-native/metro-config` entries in
package.json to 0.83.x to match react-native (currently 0.83.4). Locate the
devDependencies keys "@react-native/js-polyfills" and
"@react-native/metro-config" and bump their versions to the corresponding 0.83
patch (e.g., ^0.83.4) so only the 0.83 series is installed and avoids duplicate
versions in node_modules.

---

Outside diff comments:
In `@package.json`:
- Around line 33-114: Create docs/changelog.md and record the verification
results after the dependency/Expo SDK upgrade: run expo-doctor, npm run lint,
npm test, and npm run typecheck, paste the full console outputs (or summarize
failures with exact error messages), add the date, the package.json changes
(brief list of updated packages or link to the PR), and a short pass/fail status
for each command so reviewers can reproduce and validate; ensure the file is
committed alongside the package.json changes.
🪄 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: 2d6e026d-f74e-4868-a613-223560a66ae9

📥 Commits

Reviewing files that changed from the base of the PR and between 8a643ca and 5a1e323.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

Comment thread package.json Resolved
@TinyKitten

Copy link
Copy Markdown
Member Author

Fixes Applied Successfully

CodeRabbit の未解決コメント 1 件を解消しました。その過程で、先行コミット(npx expo install --fix)が引き上げた expo-audio / react-native のバージョンと既存 react-native-worklets 0.7.2 の peer 不整合により expo-modules-core が top-level に hoist されない副作用を発見したため、同時に修正しました。

変更サマリ

  1. @react-native/js-polyfills / @react-native/metro-config を ^0.81.x → ^0.83.4 に更新(react-native 0.83.4 との整合)
  2. react-native-worklets を 0.7.2 → 0.7.4 に更新([email protected] の peer ^0.7.4 || ^0.8.0 を満たすため)
  3. [email protected] を直接依存として追加(npm の hoist を強制し、jest-expo の setup が top-level から解決できるようにする)

変更ファイル

  • package.json
  • package-lock.json

コミット

  • 33d6e94ac @react-native/js-polyfills と metro-config を 0.83.x に更新
  • 42414b0cf テスト/型検査を通すため expo-modules-core を明示追加し react-native-worklets を 0.7.4 に更新

ローカル検証

  • npm run lint ✅
  • npm test ✅ (148 suites / 1398 tests)
  • npm run typecheck ✅

TinyKitten and others added 2 commits April 21, 2026 12:54
@TinyKitten
TinyKitten merged commit 65e9fe3 into dev Apr 21, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the chore/bump-deps branch April 21, 2026 05:08
@TinyKitten TinyKitten mentioned this pull request May 9, 2026
7 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant