react-relay v9.1.0 Release Notes

Release Date: 2020-04-27 // 30 days ago

Previous changes from v9.0.0

  • 9.0.0

    ๐Ÿ’ฅ Breaking

    • ๐Ÿ“‡ Rename getModernOperationVariables to getOperationVariables

    โž• Added

    • โž• Added queuePendingOperation to RelaModernMockEnvironment in testing tools. This allows the caller to manually register an operation that should be pending.
    • Optionally output eager es modules (#2781).
    • ๐Ÿ”ฆ Expose a way to override isGeneratedFile function via language plugin (#2810).
    • ๐Ÿ‘ Allow language plugin to specify how generated files should be named (#2866).
    • ๐Ÿ‘ Allow language plugin to specify how to check for presence of graphql strings (#2811).
    • Setup external config for Relay Compiler.

    ๐Ÿ›  Fixed

    • Ensure root record is always created upon store initialization, even before initial query has been processed.
    • ๐Ÿ›  Fix disposable of optimistic updates: 87ef4ed
    • ๐Ÿ›  Fix various issues in docs.
    • ๐Ÿ›  Fix loading external config for Relay Compiler (#2999).

    Misc

    • DataChecker::check now returns the operation fetch time.
    • โœ‚ Removed getRelayDefaultMissingFieldHandlers.js

    Experimental

    • ๐Ÿ›  Fix leaking environments when using Relay Hooks (#3014).
    • ๐Ÿ›  Fix support of Fast Refresh when used with Relay Hooks.
    • ๐Ÿ›  Fix recycling data for plural fragments; i.e. return an array with the sam object identity if the data hasnโ€™t changed.
    • โž• Add support for batched @streamโ€™ed responses.
    • Internally renamed useLegacyPaginationFragment to usePaginationFragment.
    • Potentially Breaking
      • preloadQuery will error if called during render.
      • Remove new connection model experimental code.
      • We know check for โ€œactiveโ€ instead of queries in โ€œflightโ€ when determining when to suspend. An operation may be indefinitely in flight (e.g. a live query, or a GraphQL Subscription), but itโ€™s only โ€œactiveโ€ if itโ€™s actively receiving payloads, e.g. during @streaming or @defer.