Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universe: use Relay 13 and the new Rust Compiler #2119

Merged
merged 1 commit into from
Jan 7, 2022

Commits on Jan 7, 2022

  1. Universe: use Relay 13 and the new Rust Compiler

    This commit upgrades Relay to version 13 and switches from the old
    Relay Compiler to the new Rust one (since both things go together).
    
    Basically, the main change is that now we have only one Relay config
    for the whole monorepo and the compiler is being executed for the whole
    monorepo as well (while being much faster). Additionally, Relay support
    is directly integrated into Flow so in many cases I simply removed
    previous Flow types (see `useLazyLoadQuery` and `useFragment`).
    
    There is still ongoing effort to improve the Flow types in Relay so not
    everything is finalized. For this reason I decided to use "Compat" types
    mode. Similarly, some hooks (`useMutation` and `usePreloadedQuery` for
    example) still require explicit types information so I didn't change
    these yet. Regardless of that, we are pretty close to use "Final" types.
    We just need to wait for the Relay team to finish everything.
    
    Many issues were already resolved but there are still some that need to
    be fixed (not blocking this PR):
    
    - facebook/relay#3700
    - relayjs/eslint-plugin-relay#131
    - prettier/prettier#6102
    
    Important links with additional information:
    
    - https://relay.dev/blog/2021/12/08/introducing-the-new-relay-compiler/
    - https://github.com/facebook/relay/releases/tag/v13.0.0
    - https://github.com/facebook/relay/releases/tag/v13.0.0-rc.0
    - https://github.com/facebook/relay/releases/tag/v13.0.0-rc.1
    - https://github.com/facebook/relay/releases/tag/v13.0.0-rc.2
    mrtnzlml committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    dc0ca9e View commit details
    Browse the repository at this point in the history