Skip to content

v1.0.0-alpha.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@leebyron leebyron released this 17 Apr 19:16
· 8494 commits to main since this release

Check it out!

npm install babel-plugin-relay@dev react-relay@dev relay-compiler@dev relay-runtime@dev

Changes since v1.0.0-alpha.2:

  • Lots of bug fixes, improvements to ease of use and API clarity.

  • The all new babel plugin: babel-plugin-relay now handles both modern graphql literals and classic Relay.QL literals. The existing babel-relay-plugin will be deprecated in the future. Configuring babel-plugin-relay should be easier as it now relies on modern babel conventions.

    An example .babelrc file:

    {
      "plugins": [
        ["relay", {"schema": "path/to/schema.graphql"}]
      ]
    }
    
  • Flow types are now generated inline in the relay-compiler output, so Relay Modern projects can leverage flow typed GraphQL responses. Recently flow types were added to the results of GraphQL mutations as well.

  • Generated files are now created inline with your source in __generated__ directories. This makes it easier to require the generated files and simplifies configuring the compiler (no more --out flag).

  • Support for prototype "live" queries via polling (88d09dc)