Repository navigation
chore(deps): upgrade Expo SDK 55 → 56 (atomic) - #298
Conversation
Bumps the entire Expo + React Native stack in a single atomic change because peer-dep enforcement at install time blocks any partial-bump branch from even reaching CI. Supersedes Dependabot PRs #287, #288, #289, #292, #294. Catalog (pnpm-workspace.yaml): - expo ~55.0.25 → ~56.0.4 - expo-router ~55.0.15 → ~56.2.6 - expo-modules-core ~55.0.23 → ~56.0.12 - react-native 0.83.6 → 0.85.3 - @react-native-community/netinfo ~11.4.1 → 12.0.1 - @babel/core ~7.28.5 → ~7.29.0 - react/react-dom 19.2.0 → 19.2.3 - Every other expo-* and RN ecosystem package to its SDK 56 baseline pnpm.overrides: - react-native 0.83.6 → 0.85.3 - expo-modules-core 55.0.23 → 56.0.12 - expo-modules-autolinking 55.0.18 → 56.0.12 - @expo/dom-webview 55.0.5 → 56.0.5 - react-native-svg 15.15.3 → 15.15.4 - react-native-reanimated → 4.3.1 (required for RN 0.85) - react-native-worklets → 0.8.3 (required for RN 0.85) - @types/react 19.2.7 → 19.2.14 apps/scaffald: - @expo/ui ~55.0.17 → ~56.0.13 - @expo/dom-webview ~55.0.5 → ~56.0.5 - react-native-reanimated 4.3.1 + react-native-worklets 0.8.3 declared directly so hoisting picks them (transitive 4.2.3 was incompatible). - expo.install.exclude: typescript (defer TS 5.9 → 6.0 to separate sweep) - iOS deployment target 15.1 → 16.4 via expo-build-properties - Xcode version check 16 → 26.4 apps/ui-storybook-native: - expo.install.exclude: typescript Codemod (npx expo-codemod sdk-56-expo-router-react-navigation-replace): - 4 files in packages/scf-core rewritten to import from "expo-router/react-navigation" (expo-router decouples from @react-navigation/* in SDK 56) Source fixes (RN 0.85 breaking changes): - StyleSheet.absoluteFillObject → absoluteFill (3 sites in packages/ui submodule + 3 sites in apps/scaffald/app) - profile-employment-left.test.tsx: cast through unknown for HTMLElement conversions and fireEvent calls (stricter testing-library types in React 19.2.3 / @testing-library/react-native peers) Submodule: - packages/ui pointer bumped to commit with absoluteFillObject fix (clay/sdk-56-stylesheet-absolutefill in the ui repo). That branch needs to be pushed and merged before this PR's CI can pass. Verification gates (local): - Gate 1 (typecheck): ✅ 0 errors - Gate 2 (lint): ✅ no errors (warnings unchanged from main) - Gate 3 (test:unit): ✅ all tests pass - Gate 4 (web): ✅ bundle builds (~17MB entry), dev server serves 200 — browser-level UI smoke (drawer / auth / routing) needs manual run - Gate 5 (ios native build): ✅ xcodebuild BUILD SUCCEEDED on iPhone 17 simulator scheme — simulator UI smoke (drawer / blur nav / fonts / document picker) needs manual run - Gate 6 (android): not run locally (no Android SDK in this env); needs to be run by a developer with Android tooling - Gate 7 (eas:build:dev:simulator:ios:local): pending — blocked by EAS's clean-tree requirement until this commit lands Open questions (per plan, not blockers): - EAS credentials may need refresh for Xcode 26.4 - Expo Go is gone from app stores in SDK 56 — anyone still relying on it needs to switch to dev builds - @rnmapbox/maps 10.1.45 SDK-56 compatibility: pods install + iOS build succeeded; runtime not smoke-tested - TypeScript 5.9 → 6.0 deferred via expo.install.exclude CI caveat: GitHub Actions billing-blocked across the org; local gates above are the source of truth. Use --admin --squash if billing block persists. Co-Authored-By: Claude Opus 4.7 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9fa27591a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "format:fix": "biome format --write ./app", | ||
| "ios": "pnpm ios:check-xcode-version && pnpm ios:run", | ||
| "ios:check-xcode-version": "sh -c 'XC_VERSION=$(xcodebuild -version | grep Xcode | awk \"{print \\$2}\"); if [ $(echo $XC_VERSION | awk \"{print int(\\$1)}\") -lt 16 ]; then echo \"⚠️ Xcode ≥ 16 is required for Expo SDK 53. You have $XC_VERSION. You can bypass this check by running \\\"pnpm ios:run\\\" but you may encounter native build errors.\"; exit 1; fi'", | ||
| "ios:check-xcode-version": "sh -c 'XC_VERSION=$(xcodebuild -version | grep Xcode | awk \"{print \\$2}\"); if [ $(echo $XC_VERSION | awk \"{print int(\\$1)}\") -lt 26 ]; then echo \"⚠️ Xcode ≥ 26.4 is required for Expo SDK 56. You have $XC_VERSION. You can bypass this check by running \\\"pnpm ios:run\\\" but you may encounter native build errors.\"; exit 1; fi'", |
There was a problem hiding this comment.
Enforce full Xcode 26.4 minimum in version check
The ios:check-xcode-version guard only compares the major version (int($1) < 26), so Xcode 26.0–26.3 will pass even though the script message says SDK 56 requires 26.4. In those environments pnpm ios can clear preflight and then fail later during native build, which defeats the purpose of this check and makes failures harder to diagnose.
Useful? React with 👍 / 👎.
- ios:check-xcode-version: full version compare via sort -V instead of
int($1) truncation. Codex caught that the previous check let Xcode
26.0–26.3 pass even though SDK 56 requires 26.4. Verified against
26.3 (blocks), 26.4 (passes), 26.5 / 27.0 (pass), 16.0 / 25.0 (block).
- pnpm.overrides: pin @tanstack/query-core 5.90.20 and
@tanstack/react-query 5.90.21 — packages/sdk uses caret-range ^5.17.9
which was resolving to 5.100.x at the top level while the catalog
resolved react-query to 5.90.x, breaking scf-core's QueryClient typing
in jobs-sdk-context.tsx.
- pnpm.overrides: pin msw to 2.12.14 — packages/sdk's ^2.12.8 was
resolving to 2.14.x, which rejects multiple server.listen() calls and
broke the SDK test suite ("cannot configure an already enabled
network"). Catalog already targets ~2.12.x; this just enforces it
transitively.
Local gates re-verified after the change:
- pnpm typecheck: ✅ 0 errors
- pnpm lint: ✅ no errors
- pnpm test:unit: ✅ all suites pass
- pnpm web:build: ✅ 17 MB entry bundle, dist exported
- pnpm web (dev server): ✅ 200 OK, 40 MB dev bundle served
Co-Authored-By: Claude Opus 4.7 <[email protected]>
The pnpm overrides pinned expo-modules-autolinking and expo-modules-core at 56.0.12 (the current versions at the time of the SDK 56 upgrade, #298). Later expo patch bumps brought @expo/cli 56.1.22, which calls autolinking.getSupportPackageForPlatform() — added in ~56.0.2x — so every `expo export --platform web` died at Metro config time: TypeError: autolinking.getSupportPackageForPlatform is not a function Align both overrides with what [email protected] declares (~56.0.21 / ~56.0.22). Runtime-only breakage: lint, typecheck, and unit tests all pass either way, and CI is billing-blocked, which is how it reached main unnoticed. Fixes #501 Co-authored-by: Claude Fable 5 <[email protected]>
Summary
Atomic upgrade of the Expo + React Native stack from SDK 55 → SDK 56 across the catalog,
pnpm.overrides, and both apps (scaffald,ui-storybook-native). Single-PR rather than per-package because peer-dep enforcement at install time blocks any partial-bump branch from even reaching CI.Companion plan:
apps/scaffald/EXPO_SDK_56_UPGRADE_PLAN.md.Supersedes (close as superseded once this lands, do not merge — each would fail
pnpm installin isolation):Highlights
expo ~55.0.25 → ~56.0.4,expo-router ~55 → ~56.2.6,react-native 0.83.6 → 0.85.3,@react-native-community/netinfo ~11.4.1 → 12.0.1,@babel/core ~7.28 → ~7.29,react/react-dom 19.2.0 → 19.2.3, every otherexpo-*/ RN ecosystem package to its SDK 56 baseline.pnpm.overrides:react-native 0.85.3,expo-modules-core 56.0.12,expo-modules-autolinking 56.0.12,@expo/dom-webview 56.0.5,react-native-svg 15.15.4,react-native-reanimated 4.3.1,react-native-worklets 0.8.3,@types/react 19.2.14.apps/scaffald:@expo/ui ~56.0.13,@expo/dom-webview ~56.0.5; reanimated/worklets declared directly so hoisting picks them (the transitive4.2.3was incompatible with RN 0.85 and crashedpod install);expo.install.exclude: typescript(defer TS 5.9 → 6.0 to a separate sweep); iOS deployment target15.1 → 16.4viaexpo-build-properties; Xcode version check16 → 26.4.apps/ui-storybook-native:expo.install.exclude: typescript.npx expo-codemod sdk-56-expo-router-react-navigation-replace): 4 files inpackages/scf-corerewritten to import fromexpo-router/react-navigation(expo-router decouples from@react-navigation/*in SDK 56).StyleSheet.absoluteFillObject → absoluteFill(3 sites inapps/scaffald/app, plus 3 sites inpackages/uisubmodule).profile-employment-left.test.tsx: cast throughunknownforHTMLElement↔ReactTestInstanceconversions andfireEventcalls (stricter testing-library types under React 19.2.3 peers).packages/uipointer bumped to commit44b75accontaining theabsoluteFillObjectfix. Companion branch in Scaffald/ui isclay/sdk-56-stylesheet-absolutefill— must be pushed and merged before this PR's CI can pass.Verification gates (run locally — see
EXPO_SDK_56_UPGRADE_PLAN.md)pnpm typecheckpnpm lintpnpm test:unitpnpm web200 OK. Browser UI smoke (drawer / auth / routing) needs manual run.pnpm prebuild:clean+xcodebuildforScaffalddevelopmenton iPhone 17 simulatorpnpm androidpnpm eas:build:dev:simulator:ios:localfastlane(not installed). Native Xcode build is verified by Gate 5; install viabrew install fastlaneto run this gate.CI caveat: GitHub Actions across the org is currently billing-blocked (all checks fail in ~4s with "recent account payments have failed"). Local gates 1–5 above are the source of truth. Use
--admin --squashif the block persists at merge time.Open questions (per plan, not blockers)
@rnmapbox/maps 10.1.45:pod install+ iOS build succeeded with it; runtime not yet smoke-tested.expo.install.exclude(split into its own PR).Test plan
clay/sdk-56-stylesheet-absolutefillPR, then re-pin the submodule here if its hash changed.pnpm typecheckpnpm lintpnpm test:unitpnpm web→ verify drawer / auth / routing in the browserpnpm prebuild:clean && pnpm ios→ on simulator, exercise drawer, blur nav, fonts, document pickerpnpm android(needs Android SDK)pnpm eas:build:dev:simulator:ios:local(needsfastlane)🤖 Generated with Claude Code