- Relay now uses new Context API instead of Legacy Context API. Any consumers of Relay context using the Legacy context API will break.
- Removed experimental support for @deferrable directive
- relay-compiler: Rename
- Merge graphql-compiler into relay-compiler (#2593)
- Selector type returned by
ReactRelayContextis now exported from
- 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.
- Add 'severity' field to
PayloadErrorin RelayNetwork interface.
- Add support for specifying
missingFieldHandlersin the Relay environment. These handlers allow developers to provide a fallback for missing data for a query when
- Add support making GC scheduling configurable in the Relay environment.
- Allow passing a custom handler to
@connection. This is useful for products that want to customize the way newly fetched items are merged into an existing connection.
recycleNodesIntono longer produces runtime error in DEV mode trying to mutate frozen objects (#2193)
- Fixed receiving payloads out of order in QueryRenderer.
- Fixed issue in Pagination Container when receiving new props.
- Fix incorrectly garbage collecting data during an optimistic update.
- Correctly fix double fetching with QueryRenderer in React Concurrent mode.
- Fix rendering sibling QueryRenderers that have the same query and variables.
- Improved compiler error messages, which now show locations in source.
- Updated the structure of generated
ConcreteRequestto provide more flexibility for our fetching apis.
- Cleaned up Reader and Normalization AST representation.
- Upgrade build dependencies to Babel 7 and Webpack 4.
- Make generated Flow types for Input types exact objects.
- Simplify structure of network payloads.
- 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
Query, or a type that implements
Node). No user api is provided yet.