v1.7.0-rc1
Pre-release
Pre-release
1.7.0-rc.1
This release doesn't contain many commits, but comes with two exciting additions from external contributors:
Language Plugins
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 react-scripts@2.0.0
will make it possible to use Relay without ejecting powered by babel-plugin-macros
.
Added
- Support for language plugins (@alloy, #2293)
- Support for babel-plugin-macros (@apalm, #2171)
- Updated to babel@7.0.0-beta.56 to extract GraphQL strings for the compiler
- Pagination and Refetch containers now warn when a request is triggered when they're unmounted. (@alunyov)
Fixed
- Fix double fetch in React Async development mode (@flarnie)
relay-compiler
is no longer a peerDependency ofrelay-runtime
as it's not needed during deployment. Make sure to keep all Relay packages at the same version! (@kassens)
Removed
- Removed long deprecated
RelayNetwork.streamQuery
andRelayNetwork.sendSubscription