react-relay v2.0.0-rc.2 Release Notes
Release Date: 2019-01-22 // about 5 years ago-
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.
- π Merge