Commits: v1.6.0...master
Potentially Breaking:
- Bump
graphqlpeer dependency to^0.13.0 - Use
React.forwardRef. This is a breaking change for people relying on therelayContainer.refs.componentimplementation detail.
New:
- Introduce
@relay(mask: false)directive for fragment *definitions: *Applied to a fragment definition, @relay(mask: false)changes the generated Flow types to be more usable when the fragment is spread with the same directive; The Flow types will no longer be exact objects and no longer contain internal marker fields.
Fixed:
- Fix pagination after using
refetchConnectionin Pagination Container - Use aliases for __typename generated fields in the union (#2465)
- Fix issue in React Async mode where container would render inconsistent data if rendering was interrupted.
RelayConnectionHandlernow properly writespage_infoafter refetching a connection- Fix issue where
RelayContainerUtilsdidn't recognizeReact.forwardRefasReact.Component - Properly guard agains errors thrown inside
mutationorsubscriptionupdater functions
Improved:
- De-hastify
relay-runtime, set main entry in relay-runtimepackage.json. dedupeJSONStringifyis now more effective- Speed up
relay-compilerby caching client schema extensions. - Expose
applyOptimisticUpdateon RelayModern. relay-compilercan now compile JS files withoptionalChainingsyntax.relay-compilercan now compile JS files withnullishCoalescingOperatorsyntax.relay-compilercan now compile JS files withoptionalCatchBindingsyntax.relay-compilerhas better warnings when required variables are not passed in.relay-compilernow generates operation Flow types: 5d83328.- Bump
fbjsdependency to0.8.17. - Bump
fast-globdependency to2.2.2. - Several documentation improvements.