[Snyk] Upgrade relay-compiler from 1.4.1 to 1.7.0 #3
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.
Snyk has created this PR to upgrade relay-compiler from 1.4.1 to 1.7.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: relay-compiler
Commits: 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.7.0-rc.1
This release doesn't contain many commits, but comes with two exciting additions 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 upcomingreact-scripts@2.0.0
will make it possible to use Relay without ejecting powered bybabel-plugin-macros
.Added
Fixed
relay-compiler
is no longer a peerDependency ofrelay-runtime
as it's not needed during deployment. Make sure to keep all Relay packages at the same version! (@ kassens)Removed
RelayNetwork.streamQuery
andRelayNetwork.sendSubscription
1.6.2
Fixed:
Commits: v1.6.0...master
Potentially Breaking:
graphql
peer dependency to^0.13.0
React.forwardRef
. This is a breaking change for people relying on therelayContainer.refs.component
implementation 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:
refetchConnection
in Pagination ContainerRelayConnectionHandler
now properly writespage_info
after refetching a connectionRelayContainerUtils
didn't recognizeReact.forwardRef
asReact.Component
mutation
orsubscription
updater functionsImproved:
relay-runtime
, set main entry in relay-runtimepackage.json
.dedupeJSONStringify
is now more effectiverelay-compiler
by caching client schema extensions.applyOptimisticUpdate
on RelayModern.relay-compiler
can now compile JS files withoptionalChaining
syntax.relay-compiler
can now compile JS files withnullishCoalescingOperator
syntax.relay-compiler
can now compile JS files withoptionalCatchBinding
syntax.relay-compiler
has better warnings when required variables are not passed in.relay-compiler
now generates operation Flow types: 5d83328.fbjs
dependency to0.8.17
.fast-glob
dependency to2.2.2
.1.6.0
Commits: v1.5.0...v1.6.0
Breaking:
^16.3.0
Potentially Breaking:
__type__
fieldsFixed:
jest --watch
work with React 16Improved:
graphql-compiler
out ofrelay-compiler
as its own independent packagegraphql
a peer dependencygraphql-js
to v0.13.2relay-compiler
: Makes flow generated'%future added value'
for enums optionalThis release introduces several changes, some of the most relevant ones are highlighted here.
New:
.graphql
files. Extensions only work on existing types, and does not currently support adding client-only types to the schema.dataFrom
prop.ConcreteNode
format supporting Batch requests.Potentially Breaking:
src
to therelay-compiler
(#2346).RelayNetwork.execute
to return aRelayObservable
withvariables
andnode
, in addition to theQueryPayload
. However,RelayNetwork.create
maintains the same API (c058ffc).Fixed:
RelayConcreteVariables
(0398585).RANGE_ADD
mutation (7f2013d).Improved:
getIdentifierForSelection
.NoFragmentCyclesRule
; can now use Fragments recursively.RecordSourceInspector
which is of marginal value, especially now that we have a useful devtools app.—quiet
.graphql.experimental
.v1.5.0-rc.1
New:
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs