Skip to content

Chore(deps): Bump immutable and relay-compiler - #1825

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-d3a31928c9
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-d3a31928c9

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Removes immutable. It's no longer used after updating ancestor dependency relay-compiler. These dependencies need to be updated together.

Removes immutable

Updates relay-compiler from 10.1.3 to 21.0.1

Release notes

Sourced from relay-compiler'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
Maintainer changes

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


Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 15, 2026
@github-actions

Copy link
Copy Markdown

Integration Tests

Failed to Prepare CI environment

Please find the Github Action logs here

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-d3a31928c9 branch from ae02361 to 711ce98 Compare June 23, 2026 16:16
@github-actions

Copy link
Copy Markdown

Integration Tests

Failed to Prepare CI environment

Please find the Github Action logs here

Removes [immutable](https://github.com/immutable-js/immutable-js). It's no longer used after updating ancestor dependency [relay-compiler](https://github.com/facebook/relay/tree/HEAD/packages/relay-compiler). These dependencies need to be updated together.


Removes `immutable`

Updates `relay-compiler` from 10.1.3 to 21.0.1
- [Release notes](https://github.com/facebook/relay/releases)
- [Commits](https://github.com/facebook/relay/commits/v21.0.1/packages/relay-compiler)

---
updated-dependencies:
- dependency-name: immutable
  dependency-version:
  dependency-type: indirect
- dependency-name: relay-compiler
  dependency-version: 21.0.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-d3a31928c9 branch from 711ce98 to 168e9c1 Compare July 7, 2026 17:23
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Integration Tests

Failed to Prepare CI environment

Please find the Github Action logs here

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