This repository was 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
Update relay-compiler in /modules/frontend from 1.5.0 to 1.7.0#315
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Fixed
Removed
1.6.2
Fixed:
1.6.1
Commits: facebook/relay@v1.6.0...master
Potentially Breaking:
graphqlpeer dependency to^0.13.0React.forwardRef. This is a breaking change for people relying on therelayContainer.refs.componentimplementation detail.New:
@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:
refetchConnectionin Pagination ContainerRelayConnectionHandlernow properly writespage_infoafter refetching a connectionRelayContainerUtilsdidn't recognizeReact.forwardRefasReact.Componentmutationorsubscriptionupdater functionsImproved:
relay-runtime, set main entry in relay-runtimepackage.json.dedupeJSONStringifyis now more effectiverelay-compilerby caching client schema extensions.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.fbjsdependency to0.8.17.fast-globdependency to2.2.2.