graphile-engine icon indicating copy to clipboard operation
graphile-engine copied to clipboard

chore(deps): try supporting GraphQL v16

Open benjie opened this issue 2 years ago • 10 comments

GraphQL v16 doesn't support Node 8 or Node 10 or older versions of Node 12, so we cannot merge all of this, I'm opening it primarily to see if CI will pass on Node 12+.

Fixes #773

benjie avatar Oct 24 '21 12:10 benjie

Why do you need to support EOL versions of Node.js?

glen-84 avatar Dec 11 '21 11:12 glen-84

I agree; and will be officially and explicitly not supporting EOL versions of Node, Postgres, GraphQL, etc from V5 onwards. However this was not stated in the V4.0.0 release and I want to stay within semver which is somewhat fuzzy on the topic but there has definitely been pushback on removing support.

benjie avatar Dec 12 '21 10:12 benjie

It looks like getArgumentValues is no longer available. There's a related issue @ https://github.com/graphql/graphql-js/issues/2719.

glen-84 avatar Jan 02 '22 12:01 glen-84

Is there anything I can do to help with this migration / what is the state of it right now?

boredland avatar Jan 27 '22 13:01 boredland

According to the GraphQL.js WG yesterday a fix to the above issue is being worked on. Please follow that thread linked above.

benjie avatar Jan 27 '22 14:01 benjie

getArgumentValues is available for now since it merged https://github.com/graphql/graphql-js/pull/3487

hiepxanh avatar Feb 10 '22 10:02 hiepxanh

Any chance we can get an update on this? It's a major blocker for several down stream packages. Thanks.

sachaw avatar Mar 01 '22 11:03 sachaw

Rebased, GraphQL version bumped in the lockfile, added a few type workarounds. Fingers crossed :crossed_fingers:

benjie avatar Mar 01 '22 18:03 benjie

Alas, more work is required to support V16 without breaking backwards compatibility with previously supported versions of GraphQL. My time is currently focussed on developing PostGraphile V5, but if you wanted to raise a PR against this PR to make the necessary changes you're welcome to - I suspect it's mostly signature changes on the various methods where object parameters are now required instead of positional arguments.

I don't personally see this as much of a priority because it's still perfectly reasonable to use GraphQL v15 and there's no features in v16 that PostGraphile v4 needs. If I'm missing something, please feel free to let me know what critical reasons there are for using GraphQL v16 rather than v15 :+1:

benjie avatar Mar 01 '22 18:03 benjie

I agree with you, let's focus on PostGraphile V5. We just fine, sometime the npm install auto upgrade cause we frustrated and then the feeling of everything perfect make us need the new version must be up to date, but after all it just fine. haha

hiepxanh avatar Mar 04 '22 01:03 hiepxanh

If you need GraphQL v16 support, use PostGraphile V5 :+1:

benjie avatar Sep 27 '23 13:09 benjie