Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove apollo-boost #5217

Merged
merged 3 commits into from
Aug 22, 2019
Merged

Remove apollo-boost #5217

merged 3 commits into from
Aug 22, 2019

Conversation

hwillson
Copy link
Member

One of Apollo Client 3.0's primary goals (roadmap) is to provide a new simplified getting started experience. This new approach will revolve around the @apollo/client package, and all interactions with Apollo Client will use this same package. This means developers will no longer have to worry about the differences between apollo-boost and apollo-client, or worry about having to eject from one project to the other. More details about the new @apollo/client approach will emerge over the next couple of weeks, but as a starting point this PR removes apollo-boost.

Apollo Client 3.0 will provide a new getting started experience
that doesn't involve a separate package like `apollo-boost`.
@@ -81,7 +80,7 @@
"graphql": "14.4.2",
"graphql-tag": "2.10.1",
"isomorphic-fetch": "2.2.1",
"jest": "24.8.0",
"jest": "23.6.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

I know this version rollback seems out of place, but it looks like we've jumped to the latest version of Jest at some point. Unfortunately, versions of Jest higher than 24.0.0 are not compatible with ts-jest, and while working on the changes in this PR I hit random test failures because of this. Rolling Jest back to a version supported by ts-jest resolved the issue.

@hwillson
Copy link
Member Author

I've left this PR in draft status for now, as I still need to slice and dice the AC docs to rework our apollo-boost sections and samples. The docs changes I make won't be final (as we'll be overhauling a large chunk of the docs for the AC 3 release), but they'll at least show that boost will no longer be available in AC 3.

Apollo Client 3.0 will include a new out of the box getting
started experience. That experience is still being worked out,
but since we're interested in trying to keep the docs somewhat
up to date as we work on AC 3.0 changes, we can't leave the
existing `apollo-boost` content in place (since boost is
being removed). This commit modifies the docs to remove all
references to boost, and replace all `ApolloClient` imports
with their equivalent coming from the new `@apollo/client`
package. We're still going to do a complete review/overhaul
of the docs as we finalize more parts of AC 3.0, but this
initial step will at least get boost out of the picture.

It's important to note that the docs changes made in this
commit are not yet usable, as `@apollo/client` hasn't been
published. While this might seem a bit "cart before the horse",
we need to get boost out of the picture before we can
properly restructure the Apollo Client repo, to prep for
`@apollo/client`.
@hwillson hwillson marked this pull request as ready for review August 22, 2019 17:13
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.

1 participant