babel-plugin-relay breaking changes
babel-plugin-relay 21.0.0 (May 18, 2026) is its newest release with breaking changes, 8 of them. The first: Removed @live_query. Every breaking API change we have recorded in babel-plugin-relay on npm: 15 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: 8 breaking changes in 1 version.
- From 19.0.0 to 21.0.0: 9 breaking changes in 2 versions.
babel-plugin-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
@RelayResolver
The @RelayResolver tag is replaced by @relayField and @relayType. The compiler codemod can migrate code automatically. github.com - Removed
enable_legacy_verbose_resolver_syntax
The legacy verbose docblock syntax (@onType, @onInterface, @fieldName, @edgeTo) no longer works. Run relay-compiler codemod fix-all or enable allow_legacy_relay_resolver_tag. github.com - Removed
PreloadProps
The unused TPreloadParams generic parameter was removed from PreloadProps. github.com - Removed
relay.typeInformation
The relay/typeInformation LSP command was removed. github.com - Behavior changed
Generated Flow types now use (expr as Type) casts, ReadonlyArray, unknown and NonNullable; re-run the Relay compiler after upgrading. Requires Flow 0.250.0 or later for the new casts. github.com - Behavior changed
@oneOf
@oneOf input types now generate a discriminated union allowing only one property at a time. Use oneOfType: "relaxed" in compiler config to opt out. github.com - Behavior changed
@raw_response_type
Selections on abstract types in @raw_response_type are now typed as optional when the concrete type may not implement the abstract type. github.com
babel-plugin-relay 20.0.0 breaking changes
- Default changed
The babel transform's default module output changed to ES modules to match compiler behavior. Projects that relied on the previous default may need to set the option explicitly. github.com
babel-plugin-relay 19.0.0 breaking changes
- Removed
Relay's npm packages no longer include a pre-bundled build; code importing that bundle must change its import path. github.com - Behavior changed
Fragments that are only conditionally fetched must now use @alias, or be marked with @dangerously_unaliased_fixme; the compiler feature flag enforce_fragment_alias_where_ambiguous can disable this check. github.com - Behavior changed
loadMore
The recreating loadMore optimization is now on by default. github.com - Behavior changed
readFragment
Fields of the Result type are now readonly, so code assigning to them may break type checks. github.com - Behavior changed
useLazyLoadQuery
The options passed to useLazyLoadQuery are marked ReadOnly in types, so code that mutates them may fail type checks. github.com - Default changed
eagerEsModules
Relay now generates ES module imports by default; 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.