react-relay v10.1.1 Release Notes

Release Date: 2020-12-07 // 11 months ago
  • ๐Ÿ‘Œ Improvements

    • Mark failed network requests on preloaded query references (f59d712)
    • โ™ป๏ธ Refactor notifying store subscriptions for better consistency update perf (under feature flag) (ad65328)

    ๐Ÿ›  Fixed

    • Require babel helpers instead of inlining (#3188)
    • Ensure network requests are always logged (95606c5)
    • ๐Ÿ“ Memoize the cache config in useMemoOperationDescriptor (81d24d2)
    • โœ‚ Remove unstable_next from useLoadMoreFunction (3242c58)

    Misc

    • โž• Add missing peer dependency in website/package.json (#3262)
    • โž• Add missing copyright headers (bc55eb6)
    • Refine typescript type generation (#3239)
    • Extract store subscription management into separate module (d64b579)
    • โœ‚ Remove link to GraphCool from prerequisites page (#3173)
    • โšก๏ธ Update website/i18n/en.json (#3261)

Previous changes from v10.1.0

  • โž• Added

    • โž• Added @appendNode and @prependNode declarative mutation directives for inserting a node to connections (#3155) [0fe732d]
      • Usage: comments @appendNode(connections: $connections, edgeTypeName: "CommentEdgeType") { id }
    • โž• Added @deleteEdge directive for removing the edge from connections (#3177) [01d65b3]
      • Usage: deletedCommentId @deleteEdge(connections: $connections)
    • โž• Added plural support for @deleteRecord directive (#3135) [27f938c]
      • Usage: deletedCommentIds @deleteRecord
    • โฑ Made scheduleGC a public function inside RelayModernStore (#3167) [97401cb]
    • โž• Added cacheConfig in RequestDescriptor (#3070) โ€ฆ [eb256a3]

    ๐Ÿ‘Œ Improvements

    • โœ‚ Remove fragment naming enforcement from JS compiler [ff1c10b]

    ๐Ÿ›  Fixed

    • ๐Ÿ“„ Docs: fix typos of the 'A Guided Tour' page (#3236) [e4413bf]
    • ๐Ÿ›  Fix prependNode and prependEdge in declarative connection [7c836df]
    • ๐Ÿ›  Fix warning for plural fragment ref pointing to null data [c1a6831]
    • Don't setTimeout in loadQuery in SSR [2da0325]
    • Fix @match with __typename: other in MatchContainer [92c8d68]
    • ๐Ÿ›  Fix conflicting field value warning [7e3deb4]
    • ๐Ÿ›  Bugfix for validating optimistic updates containing undefined fields โ€ฆ [6a1586d]
    • Dispose nested entrypoints when calling dispose() [d5352a2]

    Misc

    • In @relay/react-relay, we now use ^16.9.0 || ^17 as a peerDependency.

    Experimental

    • โž• Added various minor improvements and fixes to the loadQuery API.
    • useQueryLoader now accepts an initial query reference.
    • Prevent usePreloadedQuery from consuming stale cached query refs
    • Stop caching errors at fragment boundaries, which prevented
    • Warn when attempting to use an already disposed PreloadedQuery or PreloadedEntryPoint [187bd34]
    • ๐Ÿ‘‰ Make sure loadQuery requests are deduped when started (vs at render time) [a21b1cb]
    • โž• Add Relay log event for when an EntryPointContainer uses an entrypoint component resource [7818bfb]
    • Create type utility EntryPointElementConfig [7d02240]
    • Unsubscribe network requests when releasing temporary retains [933b280]
    • โšก๏ธ Optimize getFragmentIdentifier [ac3a252]
    • holdGC for incremental responses in QueryExecutor [b3ecce2]

    Relay Compiler in Rust

    ๐Ÿš€ The Relay team is actively working on the new compiler implemented in Rust. The majority of recent changes you can see in the repo are related to the compiler. This new version won't be included in the release, as we are still working on the migration strategies for our OSS customers.

    Thank you for all outstanding contribution to the Relay compiler (#3182)