Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Update dependency react-relay to v1.7.0 #7

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 29, 2018

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-relay (source) 1.1.0 -> 1.7.0 age adoption passing confidence

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
  • 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

v1.6.2

Compare Source

1.6.2

Fixed:

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

v1.6.1

Compare Source

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.

v1.6.0

Compare Source

1.6.0

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

Breaking:

  • The minimum React dependency was raised to ^16.3.0

Potentially Breaking:

  • Remove some usages of deprecated React lifecycle methods and changes to make containers React Async safe.
  • Remove support for legacy __type__ fields
  • Remove support for parsinglegacy interfaces(51c5761)

Fixed:

  • Make jest --watch work with React 16
  • Fix flow type generation for recursive Input types

Improved:

  • Move graphql-compiler out of relay-compiler as its own independent package
  • Make graphql a peer dependency
  • Upgrade graphql-js to v0.13.2
  • Support batch queries in Refetch and Pagination containers
  • relay-compiler: Makes flow generated '%future added value' for enums optional

v1.5.0

Compare Source

This release introduces several changes, some of the most relevant ones are highlighted here.

New:

  • Relay Containers are now Flow typed, however Flow types are not yet exported (#​2284).
  • Relay Compiler now generates Flow types for GraphQL enum values.
  • Add undocumented support for client-only schema extensions using .graphql files. Extensions only work on existing types, and does not currently support adding client-only types to the schema.
  • Add experimental and undocumented support for QueryRenderer to render directly from store if data is available using new dataFrom prop.
  • Add hooks to enable and disable Relay GC in the store.
  • New ConcreteNode format supporting Batch requests.

Potentially Breaking:

  • Support for client-only schema extensions requires that your GraphQL schema not be inside your the directory you specify as src to the relay-compiler (#​2346).
  • Changes the type of RelayNetwork.execute to return a RelayObservable with variables and node, in addition to the QueryPayload. However, RelayNetwork.create maintains the same API (c058ffc).

Fixed:

  • Fix passing a single item to a "list" input argument (42c1119).
  • Fix end cursor when fetch returned zero edges in Pagination Container (a17b462).
  • No longer throw false alarm error in RelayConcreteVariables (0398585).
  • Properly handle complex GraphQL argument literals in the compiler (bb02769).
  • Calling viewer handler multiple times should not accidentally cause viewer to be null (f442fcd).
  • Fix issue when using multiple connectionInfo for RANGE_ADD mutation (7f2013d).
  • Fix issue in Relay Compiler when parsing non-null input (4baa970).
  • Fix pagination on empty connections (62c8b43).

Improved:

  • Ensure the Relay build has run and is not using outdated GraphQL fragments. Optionally this can be turned off in the babel plugin settings (a628637).
  • Update all callers of react-relay to use CommonJS requires.
  • Speed up getIdentifierForSelection.
  • Compiler doesn't warn on missing fields with abstract types anymore.
  • Relay Compiler now de-duplicates identical objects when generating JSON artifacts which decreases size of artifacts and improves compressability.
  • Disable NoFragmentCyclesRule; can now use Fragments recursively.
  • Remove RecordSourceInspector which is of marginal value, especially now that we have a useful devtools app.
  • Print timing information in compiler —verbose mode.
  • Add option to Compiler to be —quiet.
  • Upgrade to graphql-js v0.13.0.
  • Upgrade to latest version of fast-glob.
  • Upgrade to babylon7 in Relay Compiler to support new JSX Fragment syntax.
  • Remove graphql.experimental.
  • Several Flow typing improvements.
  • Several documentation fixes.
  • Move test utils to their own package: relay-test-utils.
  • Add support for accessing Components wrapped in a Container in tests.
  • Use jest snapshots for relay-compiler tests.

v1.4.1

Compare Source

New:

v1.4.0

Compare Source

New:

  • Full support for returning Observable from Relay Network implementations. Use const {Observable} = require('relay-runtime') to use Relay's lightweight Observable implementation which seeks to follow the Observable specification.
  • Support for the new Relay DevTools beta (install with yarn add relay-devtools) (86b63d4)
  • Support for latest version of Flow
  • Deprecated graphql.experimental All features now supported directly in graphql literal tags. (9afd764)
  • Pagination container now accepts an Observer when loading more data (ef7aa5b)

Potentially Breaking:

  • Relay Network and Environment internal APIs renamed to execute() and executeMutation() (0202673)
  • Removed legacy flow type generation (8cf10b9)

Fixed:

  • Case where callback might not be called after mutation (980de6d)
  • Improved printing of queries with @include in classic/compat mode (d652911)
  • Improved error messages (d8eb6d4)
  • Fix case where compiler might not place __typename and id in the correct order (95319d1)
  • Fix deferred queries when root arguments are not of type ‘ID’ (5ac9271)
  • Fixed remaining issues for compatibility with React v16.
  • Fix passing default arguments to @arguments in compat mode (1ce348a)
  • Fix issues in QueryRenderer when queries resolve synchronously and immediately (87bfc91)
  • Fix case where @argumentDefinitions would not be validated first (50803a5)
  • Change readyState to getDefaultState value after retry (beaf5c2)

v1.3.0

Compare Source

A small update since 1.2.0 that mainly exposes a few new internals.

New:

  • graphql tags now support null literal values (@​nkohari e7962fb)
  • Refactored RelayEnvironment to use Observables instead of Promises to prepare for streaming and other advanced usages (@​leebyron)
  • Expose formatGeneratedModule on relay-compiler to allow more customization of the compiler (@​robrichard 7b44013)
  • New CLI flag --validate to relay-compiler to validate without writing files (@​ajhyndman af35c30)
  • RelayConnectionInterface is now injectable for legacy clients (@​kassens d9c1eb0)

Fixed:

v1.2.0

Compare Source

In addition to all of the changes in v1.2.0-rc1, v1.2.0 includes:

New:

  • Unmasked fragment spreads introduced in the RC have been renamed from @inline to @relay(mask: false) (c7235ab) and can be used in both Relay modern and Relay compat (20327fd)
  • Full queries are generated in development builds for easier debugging (9a81b3f)
  • Relay compiler now allows disabling watchman for typical builds (@​robrichard 4f80e02)
  • No longer explicitly need to include pageInfo when using pagination controllers (9686119)
  • Experimental support for returning Observable from provided fetch and subscribe Network functions (bfc7f7f)

Fixed:

  • Ensure Relay compiler generates the right kinds (db6ef37)
  • Edge cases when Network cache returns synchronously (2ffb5c6)
  • Incorrect error handling in Networking (63ca3ae)
  • Ensure logging for each response from a GraphQL Subscription (777bcf6)
  • Ensure the same edge is not added twice during pagination (d0aff0f)

Improved:

  • Full support for React v16
  • Support root level types that aren't named "Query" in Relay Compat (@​robrichard 1544f59)
  • Improved generated flow types (0d4cf95)
  • Support for customized logging (a82a417)
  • Included a peerDep between relay-runtime and relay-compiler to create early warnings if dependencies are misaligned (2582646)
  • Support for flow types for custom scalars (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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/react-relay-1.x branch from e5b9801 to 957148a Compare April 27, 2018 01:47
@renovate renovate bot changed the title Update dependency react-relay to v1.5.0 Update dependency react-relay to v1.6.0 Apr 27, 2018
@renovate renovate bot force-pushed the renovate/react-relay-1.x branch from 957148a to 5b5ef3e Compare July 30, 2018 01:46
@renovate renovate bot changed the title Update dependency react-relay to v1.6.0 Update dependency react-relay to v1.6.1 Jul 30, 2018
@renovate renovate bot force-pushed the renovate/react-relay-1.x branch from 5b5ef3e to 3b47c6c Compare July 31, 2018 17:16
@renovate renovate bot changed the title Update dependency react-relay to v1.6.1 Update dependency react-relay to v1.6.0 Jul 31, 2018
@renovate renovate bot force-pushed the renovate/react-relay-1.x branch from 3b47c6c to 1f68c5e Compare August 1, 2018 04:36
@renovate renovate bot changed the title Update dependency react-relay to v1.6.0 Update dependency react-relay to v1.6.2 Aug 1, 2018
@renovate renovate bot changed the title Update dependency react-relay to v1.6.2 Update dependency react-relay to v1.7.0 Oct 31, 2018
@renovate
Copy link
Author

renovate bot commented Mar 25, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

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