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 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.