v1.0.0-alpha.3
Pre-releaseCheck 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 moderngraphql
literals and classicRelay.QL
literals. The existingbabel-relay-plugin
will be deprecated in the future. Configuringbabel-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)