Skip to content

chore(deps): bump babel-plugin-relay from 20.1.1 to 21.0.1 in /frontend#1362

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/babel-plugin-relay-21.0.1
Open

chore(deps): bump babel-plugin-relay from 20.1.1 to 21.0.1 in /frontend#1362
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/babel-plugin-relay-21.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 1, 2026

Copy link
Copy Markdown
Contributor

Bumps babel-plugin-relay from 20.1.1 to 21.0.1.

Release notes

Sourced from babel-plugin-relay's releases.

v21.0.1

Version 21.0.0 had an issue where it failed to include our new TypeScript types in the published NPM bundle. Thanks to @​PHILLIPS71 for the pull request identifying and resolving the issue. This point release resolves that issue and includes a number of other minor improvements which have landed since to v21.0.0 release.

Bug fixes

  • Fix(build): ship TypeScript definition files in gulp dist build (#5287) by Jordan Phillips (commit)

Added

  • Feat(compiler): add --noWatchman CLI flag (#5292) by Jordan Eldredge (commit)

Improvements

  • Feat: Warn on deprecated enum values used as arguments (#5277) by jungwoo3490 (commit)
  • Add shard_extra_artifacts feature flag to shard PHP text artifacts by Tianyu Yao (commit)
  • Allow updatable fragments to be spread at the top level of another fragment by Rajiv Anisetti (commit)

Documentation Improvements

  • Update v21 release notes, compiler CLI docs, and codemods guide by Jordan Eldredge (commit)
  • Document fetchPolicy option for fetchQuery (#5244) by Batrić Perović (commit)
  • Update Film import path to include file extension (#5243) by Meshack Ogeto (commit)
  • Fix the quickstart docs by Evan Yeung (commit)
  • Relay 21 release notes blog post by Jordan Eldredge (commit)

Miscellaneous

  • Implement feature flag to gate rollout of flow modern syntax by Sam Zhou (commit)
  • Use simpler intersect algorithm by Matt Mahoney (commit)
  • Update compiler clock to query result on subscribe by Shashank Kambhampati (commit)

v21.0.0

Relay v21.0.0 brings first-party TypeScript support, modernized Flow type generation, new error handling capabilities, and experimental React Server Components support. This release contains several breaking changes -- please read the migration notes below carefully.

Upgrading

TypeScript users: First-party .d.ts type definitions are now shipped directly in relay-runtime and react-relay. You no longer need @types/relay-runtime from DefinitelyTyped. Node.js ESM named imports (e.g. import { fetchQuery } from 'relay-runtime') now work correctly in .mjs files. Thank you to everyone who contributed to the DefinitelyTyped type definitions over the years — your work kept the Relay TypeScript community going, and it served as a valuable reference for these first-party types.

Flow users -- action required: Generated types now use modern Flow syntax. (expr: Type) casts are replaced with (expr as Type) (requires Flow >= 0.250.0), $ReadOnlyArray becomes ReadonlyArray, mixed becomes unknown, and $NonMaybeType becomes NonNullable. After upgrading, you must re-run the Relay compiler to regenerate all artifacts.

@live_query removed: The @live_query directive has been removed. Migrate to @client_polling(interval: ...) for polling behavior, or @live for server-pushed updates.

Relay Resolvers -- new syntax required: The enable_legacy_verbose_resolver_syntax flag has been removed. The legacy verbose docblock syntax (@onType, @onInterface, @fieldName, @edgeTo) no longer works. In addition, we've replaced the generic @RelayResolver tag with more specific @relayField and @relayType tags. The Relay compiler can automatically migrate you to this new syntax via the relay-compiler codemod fix-all command. If you're not ready to migrate, you can enable the allow_legacy_relay_resolver_tag feature flag in your compiler config file.

@oneOf inputs: @oneOf input types now generate a stricter discriminated union type that only permits one property at a time, instead of an object with all optional fields. This catches bugs at compile time where multiple fields were incorrectly set simultaneously. You can opt out via oneOfType: "relaxed" in compiler config if needed.

New Features

@catch expansion: @catch now works on @connection fields and client edge fields, letting you gracefully handle field errors in pagination and client-edge scenarios instead of throwing.

@alias on fragment definitions: The @alias directive now works on fragment definitions (not just inline fragments).

New compiler CLI tools: Two experimental subcommands are available: experimental-regenerate-sub-schema replaces the currently configured schema file with the portion of the provided "full schema" and experimental-compare-document-ir compares intermediate representations (IR) of documents passed and outputs selections that exists in left but not in right.

React Server Components (Experimental): A new react-relay/rsc_EXPERIMENTAL entry point provides an experimental API for fetching GraphQL in server components: serverFetchQuery for server-side data fetching, serverReadFragment for reading fragment data on the server, and serverPreloadQuery + useQueryFromServer for preloading data on the server and hydrating the client store. These APIs are experimental and are likely to change in upcoming versions.

Notable Bug Fixes

... (truncated)

Commits
  • 43eaa25 Relay v21.0.1 point release
  • d1e05da v21.0.0
  • 38ad9e1 Update prettier-plugin-hermes-parser in fbsource to 0.36.0
  • 6e2759a Update prettier-plugin-hermes-parser in fbsource to 0.35.0
  • 548434a Include docs in NPM package for LLM/agent access (#5237)
  • f9d28c4 Update prettier-plugin-hermes-parser in xplat to 0.34.1
  • 811151c Update prettier-plugin-hermes-parser in fbsource to 0.33.2
  • 5465a0b Upgrade @​babel/traverse (#5093)
  • 7ff4c54 Adopt modern flow casting syntax in relay
  • f0386b2 Update prettier-plugin-hermes-parser in fbsource to 0.32.0
  • See full diff in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for babel-plugin-relay since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 1, 2026
Bumps [babel-plugin-relay](https://github.com/facebook/relay/tree/HEAD/packages/babel-plugin-relay) from 20.1.1 to 21.0.1.
- [Release notes](https://github.com/facebook/relay/releases)
- [Commits](https://github.com/facebook/relay/commits/v21.0.1/packages/babel-plugin-relay)

---
updated-dependencies:
- dependency-name: babel-plugin-relay
  dependency-version: 21.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/babel-plugin-relay-21.0.1 branch from 0dbb4f7 to 2514ec8 Compare June 10, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants