chore: upgrade Relay from v19 to v20.1.1 #626
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: #614
Summary
Upgrade Relay from v19.0.0 to v20.1.1 across all applications and packages. This update enables future schema splitting capabilities and ensures all Relay-related packages are aligned to the same version.
Changes
Dependencies Updated
Console App (
apps/console/package.json):react-relay: ^19.0.0 → ^20.1.1relay-runtime: ^19.0.0 → ^20.1.1relay-compiler: ^19.0.0 → ^20.1.1 (dev)babel-plugin-relay: ^19.0.0 → ^20.1.1 (dev)Trust App (
apps/trust/package.json):react-relay: ^19.0.0 → ^20.1.1relay-runtime: ^19.0.0 → ^20.1.1relay-compiler: ^19.0.0 → ^20.1.1 (dev)babel-plugin-relay: ^19.0.0 → ^20.1.1 (dev)Routes Package (
packages/routes/package.json):peerDependenciesto requirereact-relayandrelay-runtime^20.1.1Type Definitions:
@types/react-relay(^18.2.1) and@types/relay-runtime(^19.0.1) as Relay v20 does not include built-in TypeScript definitionsVerification
useMutationAPI)Migration Steps
npm installnpm run relaynpm run buildBenefits