-
Notifications
You must be signed in to change notification settings - Fork 470
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
Update graphql to version 14 #624
Conversation
Looks like quite a few typescript errors showed up that weren't popping in vscode - will address these soon, feel free to disregard until then. |
0ae0c68
to
7f789f2
Compare
Update graphql package + types. Resolve typescript errors and update snapshots.
7f789f2
to
0a4f535
Compare
@trevor-scheer The test seemed to be spurious and went away when I re-ran it. If you don't mind testing the workflow I was concerned about able to:
I'm mainly curious if the:
|
Steps: |
Please consider put graphql into peerDependencies. reference |
Also, please consider problem I described in #629, which would also prevent |
@daggerjames I hope we can help solve your problem, but Ref from your reference above:
If you have |
@trevor-scheer Full disclosure: I should have made two of my instructions more clear:
That said, I was quite surprised that So... is it possible that you've updated the version of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚢
I'm confident that this PR will cause a change in the generated schema hash for anyone who is using a version of graphql
on their server that isn't 14.x
, but that will be fine given what Engine currently uses the schema hash for (nothing important since there's currently only one schema per service). So the worst that will happen at the moment is a new hash (id
) and a no-op diff (because nothing but the internal GraphQL types have changed).
#614 should help make sure that this is avoided in the future with new graphql
updates and I'm glad we caught that now!
package-lock.json
Outdated
@@ -2128,7 +2128,7 @@ | |||
}, | |||
"strip-ansi": { | |||
"version": "3.0.1", | |||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", | |||
"resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing, could you — this one time — run:
npm cache clear --force
and then run npm install
again and see if it changes these back to https
?
Update graphql package + types. Resolve typescript errors and update snapshots. Fixes #626 -- Amending commit for a new hash for testing purposes
Update graphql package + types. Resolve typescript errors and update snapshots. Fixes #626 -- Amending commit for a new hash for testing purposes -- 2nd amend
The apollo cli still depends on graphql v13 with latest published version on npm indirectly through [email protected]. Highlighted in #629. Not a duplicate actually @trevor-scheer |
This PR is to upgrade our usage of the graphql library to v14 🎉
@abernix: tests pass, but what needs to be done to make sure this isn't breaking anything around schema publishing? (IIRC, this was the concern you raised)