Repository navigation
Expo SDK 57へアップグレード - #6658
Expo SDK 57へアップグレード#6658
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NdheaiMhw83o4cXCTSpXEZ
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughExpo関連依存関係を55系から57系へ更新しました。React Native 0.86系に対応し、Androidパッチ、スタイル指定、ref型、テレメトリ、TypeScript設定を調整しました。 ChangesExpo 57移行
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@src/hooks/useTelemetrySender.ts`:
- Around line 40-43: Update the expo-battery mock in the useTelemetrySender
tests to include BatteryState.NOT_CHARGING, then add coverage for
getBatteryStateAsync() returning that value and verify the telemetry payload
maps batteryState to 'unknown'.
In `@tsconfig.json`:
- Line 15: Update the types array in tsconfig.json to include both "jest" and
"node", enabling Node.js typings for process.env usage in app.config.ts and
utils/codegen.ts.
🪄 Autofix
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: 296a2ee5-877b-4127-90e9-61408b914c1c
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (11)
package.jsonpatches/expo+55.0.26.patchpatches/expo-speech+57.0.1.patchpatches/expo-task-manager+57.0.9.patchsrc/components/ChevronYamanote.tsxsrc/components/DevOverlay.tsxsrc/components/Permitted.tsxsrc/components/WalkthroughOverlay.tsxsrc/hooks/useTelemetrySender.tssrc/screens/Main.tsxtsconfig.json
💤 Files with no reviewable changes (1)
- patches/expo+55.0.26.patch
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NdheaiMhw83o4cXCTSpXEZ
Fixes Applied SuccessfullyFixed 2 file(s) based on 2 CodeRabbit feedback item(s). Files modified:
Commit:
検証: The latest autofix changes are on the |
概要
Expo SDK 55 から 57 へアップグレードし、React Native 0.86 で削除された API や関連ライブラリのメジャー更新へ追従する。SDK 57 自体は 56 からの破壊的変更が無いため、実質的な移行コストは SDK 56(Hermes v1 の既定化、iOS 最低 16.4、
expo/fetchのグローバル化など)に対するものが中心。変更の種類
変更内容
依存の更新
expo55.0.26 → 57.0.12、react-native0.83.6 → 0.86.2、react19.2.0 → 19.2.3react-native-worklets0.7.4 → 0.10.1。react-native-reanimated4.5.1 の peer が0.10.xであり、devDependencies に旧版が取り残されているとnpm installが解決に失敗するjest-expo/babel-preset-expo/@react-native/js-polyfills/@react-native/metro-configを 57・0.86 系へreact-native-view-shot4.0.3 → 5.1.0RN 0.86 の破壊的変更への追従
StyleSheet.absoluteFillObjectが型・実装ともに削除されたためStyleSheet.absoluteFillへ置換(5 ファイル 7 箇所)。absoluteFillは登録済みスタイル ID から素のオブジェクトへ変わったため、従来どおりスプレッドできるreact-native-view-shotv5 でViewShotが forwardRef 化されたため、ref の型を v5 が公開するViewShotRefへ変更expo-batteryに追加された Android 専用のBatteryState.NOT_CHARGINGをテレメトリ側 enum へマップ。給電中だが充電が停止している状態(充電上限 80% など)で、対応する値が無いためunknownに寄せているpatch-package
expo+55.0.26.patchを削除。expo/fetchのストリーム二重 close ガードは、expo 57 本体がbodyStreamClosedフラグとdesiredSizeチェックでより厳重に実装済みのため不要になったexpo-speech/expo-task-managerのパッチを 57 の版数で再生成expo-speechパッチの既存不具合を修正。Log.d(PATCH_LOG_TAG, ...)を追加しているのにimport android.util.LogとPATCH_LOG_TAGの定義がどちらも無く、適用後の Kotlin がコンパイルできない状態だった(ネイティブTTSの音質向上とAndroidで英語が日本語音声で合成される問題の修正 #6457 以降 dev に存在)TypeScript 6
tsconfig.jsonのtypeRootsを削除。src/@typesは@types形式のパッケージ群ではなく素の.d.ts群のため指定しても効果が無く、既定のnode_modules/@types探索を潰していた。代わりにtypes: ["jest"]を明示することで TS 6 でも Jest のグローバル型が解決されるbaseUrlを削除し、pathsを${configDir}基準へ移行リグレッションリスクと緩和策
react-native-reanimatedを import するだけでメモリ使用量が 25〜30% 増える回帰が Expo 側で既知(SDK 57 時点でも未解消)。本アプリは走行中に位置情報を毎秒更新する長時間セッションのため影響を受けうる。実機計測で悪化が確認された場合はexpo-build-propertiesのuseHermesV1: falseで退避するexpo/fetchのグローバル化: SDK 56 でglobalThis.fetchの既定実装がexpo/fetchに置き換わる。ユニットテストは全通過しているが、AI エージェントのストリーミング経路は実機での確認が望ましいexpo-speech)とバックグラウンド位置情報(expo-task-manager)はパッチ再生成の影響を受けるため、実機での動作確認が必要テスト
ローカルで以下を実行し、すべて成功を確認(Jest: 218 suites / 2303 tests、expo-doctor: 19/19 checks passed)。
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit