V2.0.0-rc.2
Pre-release
Pre-release
2.0.0-rc.2
Commits: v2.0.0-rc.1...v2.0.0-rc.2
Breaking
- Merge
graphql-compiler
intorelay-compiler
(#2593) - Selector type returned by
environment.unstable_internal.getSelector(...)
has changed.
Added
ReactRelayContext
is now exported fromreact-relay
.- Added fragment ownership model to relay-runtime: fragments can now point to the query that owns them, which removes reliance on React Context and gives us flexibility to experiment with new apis.
- Persisted queries: Enables a simple but straightforward mechanism to use persisted queries in open-source. (#2354)
- @arguments directive now supports literal values.
Experimental
- Added support for new @match directive for dynamically loading code and data dependencies determined by server. No user api is provided yet.
- Added support for @refetchable directive which automatically generates a query for a fragment that is “refetchable” (i.e. a fragment on
Viewer
,Query
, or a type that implementsNode
). No user api is provided yet.
Fixed
- Fixed receiving payloads out of order in QueryRenderer.
- Fixed issue in Pagination Container when receiving new props.
Improved
- Improved compiler error messages, which now show locations in source.
- Updated the structure of generated
ConcreteRequest
to provide more flexibility for our fetching apis. - Cleaned up Reader and Normalization AST representation.