github facebook/relay v2.0.0-rc.2
V2.0.0-rc.2

latest releases: v16.2.0, v16.1.0, v16.0.0...
pre-release5 years ago

2.0.0-rc.2

Commits: v2.0.0-rc.1...v2.0.0-rc.2

Breaking

  • Merge graphql-compiler into relay-compiler (#2593)
  • Selector type returned by environment.unstable_internal.getSelector(...) has changed.

Added

  • ReactRelayContext is now exported from react-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 implements Node). 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.

Don't miss a new relay release

NewReleases is sending notifications on new releases.