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-relaynow handles both moderngraphqlliterals and classicRelay.QLliterals. The existingbabel-relay-pluginwill be deprecated in the future. Configuringbabel-plugin-relayshould 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--outflag). -
Support for prototype "live" queries via polling (88d09dc)