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

Re-export all React Apollo functionality from @apollo/client #4037

Merged
merged 14 commits into from
Jul 11, 2020

Conversation

hwillson
Copy link
Member

We have migrated all remaining React Apollo functionality into Apollo Client (apollographql/apollo-client#6558). After Apollo Client 3 launches, our recommendation is to use the following entry points:

  • React Apollo components: @apollo/client/react/components
  • React Apollo HOC: @apollo/client/react/hoc
  • React Apollo SSR: @apollo/client/react/ssr
  • React Apollo testing utilities: @apollo/client/testing
  • React Apollo hooks: @apollo/client

This PR removes all source from this repo, re-exporting React Apollo functionality from @apollo/client. We will publish a final major version of all React Apollo packages (excluding the umbrella react-apollo package which we asked people to move away from when React Apollo 3 launched), that will just re-export functionality from @apollo/client. While it will be possible to keep using the @apollo/react-X packages, switching over to the @apollo/client equivalents is recommended.

Copy link

@jcreighton jcreighton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

We're no longer running tests in this repo.
We're no longer building/testing files in this repo.
We're no longer maintaining examples in this repo.
`react-apollo` is a catch all package the re-exports each of the
child React Apollo packages. We recommended people move away
from using it when React Apollo 3 was launched, as it imported
all of the React Apollo child packages, even if they weren't
all being used. Now that we're going to React Apollo 4 (which
will be the last version since all React Apollo functionality
is available from `@apollo/client` directly), we're removing
the `react-apollo` package completely.

The individual React Apollo packages (e.g. `@apollo/react-hoc`)
can still be used, but we recommend accessing the same
functionality from `@apollo/client` directly.
All React Apollo functionality is now re-exported from
`@apollo/client` directly, so the common package is no longer
needed.
The Apollo components source is no longer managed in this repo.
The Apollo HOC source is no longer managed in this repo.
The React Apollo SSR source is no longer managed in this repo.
We no longer need the common package.
We're no longer developing/building/testing React Apollo
functionality in this repo, so the package.json can be
greatly simplified.
 - @apollo/react-components@4.0.0-beta.2
 - @apollo/react-hoc@4.0.0-beta.2
 - @apollo/react-hooks@4.0.0-beta.2
 - @apollo/react-ssr@4.0.0-beta.2
 - @apollo/react-testing@4.0.0-beta.2
@hwillson hwillson merged commit 1708124 into master Jul 11, 2020
@hwillson hwillson deleted the export-from-ac branch July 11, 2020 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants