react-relay breaking changes
react-relay 21.0.0 (May 18, 2026) is its newest release with breaking changes, 11 of them. The first: Removed @live_query. Every breaking API change we have recorded in react-relay on npm: 21 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 21.0.1, released May 27, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 20.0.0 to 21.0.0: 11 breaking changes in 1 version.
- From 19.0.0 to 21.0.0: 12 breaking changes in 2 versions.
react-relay 21.0.0 breaking changes
- Removed
@live_query
The @live_query directive is gone. Use @client_polling(interval: ...) for polling or @live for server-pushed updates. github.com - Removed
enable_legacy_verbose_resolver_syntax
The legacy verbose resolver docblock syntax (@onType, @onInterface, @fieldName, @edgeTo) no longer works. Run relay-compiler codemod fix-all to migrate. github.com - Removed
Node interface restriction for mixed interface server types
Mixed interface server types no longer need to implement the Node interface. github.com - Removed
relay.typeInformation
The relay/typeInformation LSP command is no longer available. github.com - Removed
TPreloadParams
The unused TPreloadParams generic parameter is removed from PreloadProps<>. github.com - Renamed
$NonMaybeType
Generated types now use NonNullable. Re-run the Relay compiler to regenerate artifacts. github.com - Renamed
$ReadOnlyArray
Generated types now use ReadonlyArray. Re-run the Relay compiler to regenerate artifacts. github.com - Renamed
mixed
Generated types now use unknown. Re-run the Relay compiler to regenerate artifacts. github.com - Behavior changed
@oneOf
@oneOf input types now generate a discriminated union allowing only one property at a time. Set oneOfType to "relaxed" in compiler config to opt out. github.com - Default changed
new_flow_casting_syntax
Casts (expr: Type) are replaced with (expr as Type), requiring Flow 0.250.0 or later. Re-run the Relay compiler after upgrading. github.com - Configuration changed
readonly_array_for_flow
The readonly_array_for_flow feature flag is removed. github.com
react-relay 20.0.0 breaking changes
- Behavior changed
The babel transform defaults to ES modules to match compiler behavior, so code relying on the previous output format may be affected. github.com
react-relay 19.0.0 breaking changes
- Removed
Relay's npm packages no longer ship a pre-bundled module; code relying on that bundle must import the individual modules instead. github.com - Behavior changed
The compiler now reports an error for resolvers that return a plural server type. github.com - Behavior changed
Fragments that are only conditionally fetched via @skip/@include or type conditions must now use @alias, or be marked with @dangerously_unaliased_fixme; the codemod or the enforce_fragment_alias_where_ambiguous feature flag can help... github.com - Behavior changed
The compiler now raises an error on empty selections after the fragment argument transform. github.com - Behavior changed
Fields of the Result type are now readonly, so code that assigns to them may fail type checks. github.com - Behavior changed
The generated type for __typename on a non-abstract type no longer emits a union type. github.com - Behavior changed
The loadMore optimization that recreates the operation is now enabled by default. github.com - Behavior changed
useLazyLoadQuery
The options argument of useLazyLoadQuery is typed as read-only, so code that mutates it may fail type checks. github.com - Default changed
Relay now defaults to generating ES module imports in generated JS files; set eagerEsModules to false in relay.config.json to keep the old behavior. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.