This release comes with two exciting contributions from external contributors:
While we at Facebook only support JS and Flow flavored JS and generate optional Flow types, supporting TypeScript had been difficult. #2293 by @alloy does the required refactoring to allow other developers to write plugins to add this missing support.
Create React App support
Create React App tries to minimize dependencies, so including Relay's Babel plugin for everyone didn't make much sense. This meant that using Relay with Create React App wasn't possible without ejecting.
This release adds babel-plugin-relay/macro (@apalm, #2171) which in the upcoming email@example.com will make it possible to use Relay without ejecting powered by babel-plugin-macros (http://yarn.pm/babel-plugin-macros).
- Support for language plugins (@alloy, #2293)
- Support for babel-plugin-macros (@apalm, #2171)
- Updated to firstname.lastname@example.org to extract GraphQL strings for the compiler
- Pagination and Refetch containers now warn when a request is triggered when they're unmounted. (@alunyov)
- Fix double fetching in QueryRenderer in React Concurrent mode (@flarnie)
- Fix rendering sibling QueryRenderers that have the same query and variables
- relay-compiler is no longer a peerDependency of relay-runtime as it's not needed during deployment. Make sure to keep all Relay packages at the same version! (@kassens)
- Removed long deprecated RelayNetwork.streamQuery and RelayNetwork.sendSubscription