Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Update relay-compiler in /modules/frontend from 1.5.0 to 1.7.0 #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Dec 1, 2018

Dependencies.io has updated relay-compiler (a npm dependency in /modules/frontend) from "1.5.0" to "1.7.0".

1.7.0

Commits: facebook/relay@v1.6.2...v1.7.0

This release comes with two exciting contributions from external contributors:

Language Plugins

While we at Facebook only support JS and Flow flavored JS and generate optional Flow types, supporting TypeScript had been difficult. #2293 by alloy does the required refactoring to allow other developers to write plugins to add this missing support.

Create React App support

Create React App tries to minimize dependencies, so including Relay's Babel plugin for everyone didn't make much sense. This meant that using Relay with Create React App wasn't possible without ejecting.
This release adds babel-plugin-relay/macro (apalm, #2171) which in the upcoming react-scripts@2.0.0 will make it possible to use Relay without ejecting powered by babel-plugin-macros (http://yarn.pm/babel-plugin-macros).

Added

  • Support for language plugins (alloy, #2293)
  • Support for babel-plugin-macros (apalm, #2171)
  • Updated to babel@7.0.0-beta.56 to extract GraphQL strings for the compiler
  • Pagination and Refetch containers now warn when a request is triggered when they're unmounted. (alunyov)

Fixed

  • Fix double fetching in QueryRenderer in React Concurrent mode (flarnie)
  • Fix rendering sibling QueryRenderers that have the same query and variables
  • relay-compiler is no longer a peerDependency of relay-runtime as it's not needed during deployment. Make sure to keep all Relay packages at the same version! (kassens)

Removed

  • Removed long deprecated RelayNetwork.streamQuery and RelayNetwork.sendSubscription
1.6.2

Fixed:

  • Fix relay-runtime main entry for OSS
  • Fix documentation page for Mutations
1.6.1

Commits: facebook/relay@v1.6.0...master

Potentially Breaking:

  • Bump graphql peer dependency to ^0.13.0
  • Use React.forwardRef. This is a breaking change for people relying on the relayContainer.refs.component implementation 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 refetchConnection in 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.
  • RelayConnectionHandler now properly writes page_info after refetching a connection
  • Fix issue where RelayContainerUtils didn't recognize React.forwardRef as React.Component
  • Properly guard agains errors thrown inside mutation or subscription updater functions

Improved:

  • De-hastify relay-runtime, set main entry in relay-runtime package.json.
  • dedupeJSONStringify is now more effective
  • Speed up relay-compiler by caching client schema extensions.
  • Expose applyOptimisticUpdate on RelayModern.
  • relay-compiler can now compile JS files with optionalChaining syntax.
  • relay-compiler can now compile JS files with nullishCoalescingOperator syntax.
  • relay-compiler can now compile JS files with optionalCatchBinding syntax.
  • relay-compiler has better warnings when required variables are not passed in.
  • relay-compiler now generates operation Flow types: 5d83328.
  • Bump fbjs dependency to 0.8.17.
  • Bump fast-glob dependency to 2.2.2.
  • Several documentation improvements.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant