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

wip upgrade apollo-client to v3 #1289

Closed
wants to merge 1 commit into from
Closed

Conversation

ZauberNerd
Copy link
Contributor

@ZauberNerd ZauberNerd commented Jul 23, 2020

Needs to wait for:

Bors merge bot cheat sheet

We are using bors-ng to automate merging of our pull requests. The following table provides a summary of commands that are available to reviewers (members of this repository with push access) and delegates (in case of bors delegate+ or bors delegate=[list]).

Syntax Description
bors merge Run the test suite and push to master if it passes. Short for "reviewed: looks good."
bors merge- Cancel an r+, r=, merge, or merge=
bors try Run the test suite without pushing to master.
bors try- Cancel a try
bors delegate+ Allow the pull request author to merge their changes.
bors delegate=[list] Allow the listed users to r+ this pull request's changes.
bors retry Run the previous command a second time.

This is a short collection of opinionated commands. For a full list of the commands read the bors reference.

@ZauberNerd ZauberNerd force-pushed the upgrade-apollo-client branch 3 times, most recently from 2d700c3 to dbeafea Compare August 24, 2020 14:03
@ZauberNerd
Copy link
Contributor Author

ZauberNerd commented Aug 26, 2020

waiting for: apollographql/apollo-client#6915

@ZauberNerd ZauberNerd force-pushed the upgrade-apollo-client branch 2 times, most recently from 1489ac3 to e370da4 Compare September 21, 2020 08:08
This upgrades all usages of react-apollo to @apollo/client v3.

BREAKING CHANGE: Support for react apollo < v3 has been removed.
In detail this means:

*New peer dependency `@apollo/client`*
The previous peer dependencies `react-apollo` and `graphql-tag` are no
longer needed.

*Fragment types have changed*
After upgrading the `fragmentTypes.json` needs to be re-created.
This can be done by running `hops graphql introspect`.

*Errored-requests no longer throw errors on the server*
Before, when a SSR request encountered a GraphQL error (such as an
invalid query, non-nullable field resolve error or a network error), it
would throw an error which meant that Hops itself would render a status
500 response with said error.
This is no longer the case and therefore all applications must now
decide in their components what kind of response they want to send.
You can use the `<Status code={123} />` component for that.
Take a look at `packages/spec/integration/graphql` for an example.

*`createFragmentMatcher` mixin hook has been removed*
This should'nt affect any applications, because it has mostly been used
internally.
@ZauberNerd
Copy link
Contributor Author

superseded by #1648

@ZauberNerd ZauberNerd closed this Mar 11, 2021
@ZauberNerd ZauberNerd deleted the upgrade-apollo-client branch March 11, 2021 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants