Skip to content

[codex] Upgrade ReScript Relay to Relay 21 compiler#632

Draft
zth wants to merge 1 commit into
2.xfrom
codex/relay-21-redo-rescriptrelay-2.0
Draft

[codex] Upgrade ReScript Relay to Relay 21 compiler#632
zth wants to merge 1 commit into
2.xfrom
codex/relay-21-redo-rescriptrelay-2.0

Conversation

@zth
Copy link
Copy Markdown
Owner

@zth zth commented Jun 2, 2026

What changed

  • Points packages/relay at the Relay 21 upgrade branch/commit from zth/relay#38.
  • Updates ReScript Relay runtime bindings for Relay 21, including relayFieldLogger and resolver data injection.
  • Removes legacy useBlockingPaginationFragment support from the runtime and PPX template.
  • Updates tests and generated fixtures for Relay 21 behavior, including required @alias handling and refetch variable retention.
  • Keeps generated enums/unions as nominal ReScript variants, not polymorphic variants.

Why

Relay 21 changed compiler output and runtime metadata shape. This PR adapts ReScript Relay to those changes while preserving the long-standing ReScript variant API.

Validation

Passed locally:

  • cargo check -p common -p relay-typegen -p relay-compiler -p relay
  • cargo test -p extract-graphql (17 tests)
  • yarn build:test
  • yarn build
  • yarn test:ci (23 suites, 59 tests)

Related compiler/submodule PR: zth/relay#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant