chore(client): bump react-native from 0.85.3 → 0.86.x and retire the foojay patch #281
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
#278 patched
@react-native/gradle-plugin@0.85.3'ssettings.gradle.ktsto bumporg.gradle.toolchains.foojay-resolver-conventionfrom0.5.0→1.0.0. The patch exists because RN 0.85.x shipped a known-broken combo: Gradle 9.3.1 wrapper paired with a foojay plugin that referencesJvmVendorSpec.IBM_SEMERU(removed in Gradle 9.0).Upstream React Native already fixed this in
@react-native/gradle-plugin@0.86.0— same change, identical foojay version. The patch is a backport, not a workaround.Goal
When we bump
react-native(and the matched@react-native/*packages) to0.86.x, the patch becomes redundant. Drop the patch in the same commit as the RN bump so we don't leave a stale entry inpnpm.patchedDependencies— pnpm will fail the install if the patch's target file shape has shifted, and we'd rather discover that intentionally.Surface to audit on the bump
apps/client/package.json—react-nativedep, plus the matched@react-native/*peers (metro-config, etc.)package.json—pnpm.overrides.react-nativepin andpnpm.patchedDependenciesentry (delete the latter)patches/@react-native__gradle-plugin@0.85.3.patch— deletepnpm-lock.yaml— re-resolveAcceptance
patches/no longer contains the gradle-plugin patch.package.jsonpnpm.patchedDependenciesis removed (or only contains other patches).Out of scope
Relates to #278.
Blocked on Expo SDK — holding this ticket. Investigated the compatibility gate the description calls out, and a standalone RN 0.86 bump isn't safe today:
expo@56.0.12(SDK 56), which pinsreact-native: 0.85.3inbundledNativeModules.json— the version Expo's prebuilt native modules are built against. The full@react-native/*family is locked at 0.85.3.0.86.0has shipped upstream (react-native@latest= 0.86.0, no patch releases yet), but Expo only ships RN 0.86 in SDK 57, which is currently preview-only (expo@next=57.0.0-preview.0).Filed #304 (bump Expo SDK 56 → 57) as the blocker; #281 is folded into it (the foojay patch retirement happens as part of that bump, since upstream RN 0.86 already carries the foojay 1.0.0 fix). Recommend holding #281 until
expo@latest≥ 57 (also clears ADR-0009's version-age quarantine on the freshly-published 0.86.0).