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

graphql-anywhere is unmaintained; how does this impact apollo-link-rest? #295

Closed
rgrove opened this issue Feb 15, 2022 · 17 comments
Closed

Comments

@rgrove
Copy link

rgrove commented Feb 15, 2022

The functionality of apollo-link-rest seems heavily dependent on graphql-anywhere. That package was removed from @apollo/client in 3.0.0 and appears to no longer be maintained, except for a couple of bug fix releases that were made from the Apollo Client 2.x branch two years ago.

I'm not aware of any current problems related to graphql-anywhere, but it does seem like this could impact future development of apollo-link-rest. For example, graphql-anywhere 4.2.7 has a peer dependency on graphql ^0.11.0 — ^15.0.0, so it's not clear if it's safe to use it with graphql ^16.0.0.

Is this on anyone's radar?

@fbartho
Copy link
Collaborator

fbartho commented Feb 15, 2022

@rgrove it wasn't on my radar. That's been a dep the whole time I've been involved (since before this library was published to NPM).

I'd support PRs that move us off of graphql-anywhere.

Do you know if the functionality of graphql-anywhere was folded in to @apollo/client or a different library? apollographql/apollo-client#5159

@rgrove
Copy link
Author

rgrove commented Feb 15, 2022

Do you know if the functionality of graphql-anywhere was folded in to @apollo/client or a different library?

I'm afraid I don't know.

I only noticed this myself today when I tried to upgrade graphql to 16.x and saw the peer dependency warning from graphql-anywhere. This led to a bunch of searching, but all I was able to turn up was the removal PR linked above and the maintenance releases that were made from the 2.x branch a couple years ago.

@LionsAd
Copy link

LionsAd commented Mar 4, 2022

Probably it would make the most sense to put:

graphql-anywhere as a top-level repo to apollographql organization with maybe maintainers of apollo-link-rest?

It seems as useful as graphql-tag to me.

@lnmp4000
Copy link

lnmp4000 commented Jul 7, 2022

Is there any progress on this? I have other packages that are now forcing me into installing [email protected].
I don't know what the implications of that are on apollo-link-rest. It seems to continue to work, but I have to force the installation,.

npm WARN node_modules/graphql
npm WARN   peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from [email protected]
npm WARN   node_modules/graphql-anywhere
npm WARN     graphql-anywhere@"^4.2.7" from the root project
npm WARN     1 more (apollo-link-rest)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]

@fbartho
Copy link
Collaborator

fbartho commented Jul 7, 2022

Unfortunately we don’t have an obvious path forwards.

I’d be happy to review PRs that move us onto fully supported dependency, but I can’t commit Apollo to forking or maintaining other libraries/repos!

@TravisDart
Copy link

Is there any progress on this? I have other packages that are now forcing me into installing [email protected]. I don't know what the implications of that are on apollo-link-rest. It seems to continue to work, but I have to force the installation,.

+1 Same problem here.

@dennisjlee
Copy link

@fbartho from my understanding of the situation, the maintainers of apollographql/apollo-client decided to remove the graphql-anywhere code from their repo while leaving the package published to NPM. So if you wanted to make a new repo apollographql/graphql-anywhere that wouldn't be a fork per se, but just restoring some code that was written by Apollo and was previously deleted.

@jpvajda
Copy link
Contributor

jpvajda commented Sep 29, 2022

@rgrove Thanks for asking this question, I'm going to look into this and discuss with the team what we should do here.

@alessbell
Copy link
Contributor

Linking to my comment from #300 (comment)

The tl;dr is:

I opened #301 which moves the relevant function/types inside of apollo-link-rest - I'll leave it up to the maintainers to decide what the best path forward is there 🙏

@chrmoritz
Copy link

Looks like the fix was incomplete, since [email protected] still depends on [email protected] with an incompatible peer dep range to graphql@16.

npm WARN Could not resolve dependency:
npm WARN peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from [email protected]
npm WARN node_modules/graphql-anywhere/node_modules/apollo-utilities
npm WARN   apollo-utilities@"^1.3.4" from [email protected]
npm WARN   node_modules/graphql-anywhere

@alessbell
Copy link
Contributor

Oof, thanks for flagging @chrmoritz. Will look at getting that fixed but this week is particularly busy.

In the mean time I will note that #301 does not have this issue and also decreases bundle size :)

@chrmoritz
Copy link

Yeah, I totally agree that #301 is the best way forward. It uses the imports from @apollo/client/utilities instead of the deprecated apollo-utilities package too.

@fbartho fbartho added this to the v0.9.0 milestone Oct 26, 2022
@fbartho
Copy link
Collaborator

fbartho commented Oct 26, 2022

Resolved in #301! 🎉 -- will close this ticket when I release 0.9.0.

@rodrigo-arias
Copy link

Thank you @alessbell!

@fbartho do you have any ETA for the v0.9.0 release? It seems that all the PRs are merged in the milestone.

@fbartho
Copy link
Collaborator

fbartho commented Oct 26, 2022

@rodrigo-arias v0.9.0-rc.2 has been published to NPM, please try it out, and if we get no complaints, I'm happy to ship it to stable this weekend!

https://www.npmjs.com/package/apollo-link-rest/v/0.9.0-rc.2

@alessbell
Copy link
Contributor

It looks like v0.9.0-rc.2 has ~1500 downloads and no new/related issues have been opened, so seems we're clear to move to stable unless there's anything else that's come up 👍

@fbartho
Copy link
Collaborator

fbartho commented Nov 15, 2022

Shipped a new release v0.9.0! -- Enjoy! https://www.npmjs.com/package/apollo-link-rest/v/0.9.0

@fbartho fbartho closed this as completed Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants