A small update since 1.2.0 that mainly exposes a few new internals.
New:
graphql
tags now supportnull
literal values (@nkohari e7962fb)- Refactored
RelayEnvironment
to use Observables instead of Promises to prepare for streaming and other advanced usages (@leebyron) - Expose
formatGeneratedModule
onrelay-compiler
to allow more customization of the compiler (@robrichard 7b44013) - New CLI flag
--validate
torelay-compiler
to validate without writing files (@ajhyndman af35c30) RelayConnectionInterface
is now injectable for legacy clients (@kassens d9c1eb0)
Fixed:
- Various documentation fixes (@mattleff)
- Some exceptions in the compiler were only printing to console, but not causing an error code (@kassens 14e28dd)
RelayRecordProxy#setValue
now accepts arrays of scalar values (@kassens 7a2b27e)- Removed
eslint-config-fbjs
dependency fromrelay-compiler
(@mwalkerwells 7b914f0)