relay-compiler breaking changes
relay-compiler 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 relay-compiler on npm: 14 breaking changes in 2 versions. Below, its 2 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.
relay-compiler 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
@relay.relay-runtime @types.relay-runtime
First-party type definitions ship in relay-runtime and react-relay; you no longer need @types/relay-runtime from DefinitelyTyped. github.com - Removed
enable_legacy_verbose_resolver_syntax
The enable_legacy_verbose_resolver_syntax flag is removed and the old @onType, @onInterface, @fieldName and @edgeTo docblocks no longer work; run relay-compiler codemod fix-all to migrate. github.com - Removed
relay.typeInformation
The relay/typeInformation LSP command is removed. github.com - Removed
TPreloadParams
The unused TPreloadParams generic parameter is removed from PreloadProps<>. github.com - Renamed
@RelayResolver
Use @relayField and @relayType instead; the old tag remains usable only behind the allow_legacy_relay_resolver_tag flag. github.com - Renamed
$NonMaybeType
Generated Flow types change $NonMaybeType to NonNullable. github.com - Renamed
$ReadOnlyArray
Generated Flow types change $ReadOnlyArray to ReadonlyArray. github.com - Renamed
mixed
Generated Flow types change mixed to unknown. github.com - Behavior changed
Generated Flow types use as casts (requires Flow >= 0.250.0), ReadonlyArray, unknown and NonNullable; re-run the compiler to regenerate artifacts. github.com - Behavior changed
@oneOf
@oneOf inputs now generate a discriminated union allowing only one property at a time; use oneOfType: "relaxed" in compiler config to opt out. github.com
relay-compiler 19.0.0 breaking changes
- Removed
The npm package no longer ships a pre-bundled module; code relying on that bundle must import the individual modules instead. github.com - Behavior changed
Fragments that are only conditionally fetched via @skip/@include or type conditions must now use @alias; opt out per fragment with @dangerously_unaliased_fixme or via the enforce_fragment_alias_where_ambiguous feature flag. github.com - Default changed
eagerEsModules
Relay now defaults to generating ES module imports in generated js files; set "eagerEsModules": 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.