This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
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.
This PR contains the following updates:
1.1.0
->1.7.0
Release Notes
facebook/relay
v1.7.0
Compare Source
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
v1.6.2
Compare Source
1.6.2
Fixed:
v1.6.1
Compare Source
Commits: facebook/relay@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
.v1.6.0
Compare Source
1.6.0
Commits: facebook/relay@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 optionalv1.5.0
Compare Source
This 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:
42c1119
).a17b462
).RelayConcreteVariables
(0398585
).bb02769
).f442fcd
).RANGE_ADD
mutation (7f2013d
).4baa970
).62c8b43
).Improved:
a628637
).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.4.1
Compare Source
New:
6d87a70
cherry-picked as87b4eb6
)v1.4.0
Compare Source
New:
const {Observable} = require('relay-runtime')
to use Relay's lightweight Observable implementation which seeks to follow the Observable specification.yarn add relay-devtools
) (86b63d4
)graphql.experimental
All features now supported directly ingraphql
literal tags. (9afd764
)Observer
when loading more data (ef7aa5b
)Potentially Breaking:
execute()
andexecuteMutation()
(0202673
)8cf10b9
)Fixed:
980de6d
)@include
in classic/compat mode (d652911
)d8eb6d4
)__typename
andid
in the correct order (95319d1
)5ac9271
)@arguments
in compat mode (1ce348a
)87bfc91
)@argumentDefinitions
would not be validated first (50803a5
)beaf5c2
)v1.3.0
Compare Source
A small update since 1.2.0 that mainly exposes a few new internals.
New:
graphql
tags now supportnull
literal values (@nkoharie7962fb
)RelayEnvironment
to use Observables instead of Promises to prepare for streaming and other advanced usages (@leebyron)formatGeneratedModule
onrelay-compiler
to allow more customization of the compiler (@robrichard7b44013
)--validate
torelay-compiler
to validate without writing files (@ajhyndmanaf35c30
)RelayConnectionInterface
is now injectable for legacy clients (@kassensd9c1eb0
)Fixed:
14e28dd
)RelayRecordProxy#setValue
now accepts arrays of scalar values (@kassens7a2b27e
)eslint-config-fbjs
dependency fromrelay-compiler
(@mwalkerwells7b914f0
)v1.2.0
Compare Source
In addition to all of the changes in v1.2.0-rc1, v1.2.0 includes:
New:
@inline
to@relay(mask: false)
(c7235ab
) and can be used in both Relay modern and Relay compat (20327fd
)9a81b3f
)4f80e02
)pageInfo
when using pagination controllers (9686119
)bfc7f7f
)Fixed:
db6ef37
)2ffb5c6
)63ca3ae
)777bcf6
)d0aff0f
)Improved:
1544f59
)0d4cf95
)a82a417
)peerDep
between relay-runtime and relay-compiler to create early warnings if dependencies are misaligned (2582646
)9488a51
)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.