react-relay v9.0.0 Release Notes
Release Date: 2020-02-13 // about 4 years ago-
9.0.0
๐ฅ Breaking
- ๐ Rename
getModernOperationVariables
togetOperationVariables
โ Added
- โ Added
queuePendingOperation
toRelaModernMockEnvironment
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
tousePaginationFragment
. - 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
@stream
ing or@defer
.
- ๐ Rename