Skip to content

CODEGEN905 - Add GraphQL 17 support#10866

Merged
eddeee888 merged 22 commits into
masterfrom
support-graphql-17
Jul 6, 2026
Merged

CODEGEN905 - Add GraphQL 17 support#10866
eddeee888 merged 22 commits into
masterfrom
support-graphql-17

Conversation

@eddeee888

Copy link
Copy Markdown
Collaborator

Description

This PR prepares for GraphQL 17 release: graphql/graphql-js#4786

Also related #10585

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Unit test

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

💻 Website Preview

The latest changes are available as preview in: https://pr-10866.graphql-code-generator.pages.dev

@changeset-bot

changeset-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3de10ec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@graphql-codegen/add Patch
@graphql-codegen/cli Patch
@graphql-codegen/client-preset Patch
@graphql-codegen/core Patch
@graphql-codegen/fragment-matcher Patch
@graphql-codegen/gql-tag-operations Patch
@graphql-codegen/graphql-modules-preset Patch
@graphql-codegen/introspection Patch
@graphql-codegen/plugin-helpers Patch
@graphql-codegen/schema-ast Patch
@graphql-codegen/time Patch
@graphql-codegen/typed-document-node Patch
@graphql-codegen/typescript Patch
@graphql-codegen/typescript-document-nodes Patch
@graphql-codegen/typescript-operations Patch
@graphql-codegen/typescript-resolvers Patch
@graphql-codegen/visitor-plugin-common Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 7.1.4-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/core 6.1.1-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/add 7.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/fragment-matcher 7.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 6.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/schema-ast 6.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/time 7.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.1.3-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 6.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 6.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.6-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 6.0.3-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 7.0.4-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.3-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 6.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎
@graphql-codegen/plugin-helpers 7.0.2-alpha-20260706105241-3de10ec4f3375e2a04ae89c71f5149909fe1dbbe npm ↗︎ unpkg ↗︎

@klarstrup klarstrup left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@eddeee888 eddeee888 force-pushed the support-graphql-17 branch from c200bb1 to 52c4ed4 Compare June 25, 2026 12:59
@eddeee888 eddeee888 marked this pull request as ready for review June 25, 2026 13:07
Comment thread vitest.config.mts

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This (and other vitest.config files) is changed to .mts since we use ESM syntax AND the CLI treats the file as ESM anyways.

Without this, it'd give errors about import.meta usage

@mikevoets

Copy link
Copy Markdown

Thanks so much for working on this! 🙏 We're trying to upgrade to graphql@17.0.1 and @graphql-codegen/cli is one of the two things gating it for us (the stable 7.1.3 peer range still tops out at ^16). We can see graphql-17 support has made it into the alpha tag from this PR.

Is there anything blocking this from landing in a stable release, or any way we can help (testing, repro cases)? Really appreciate the effort here.

@eddeee888 eddeee888 merged commit 959915f into master Jul 6, 2026
20 checks passed
@eddeee888 eddeee888 deleted the support-graphql-17 branch July 6, 2026 11:13
@eddeee888

Copy link
Copy Markdown
Collaborator Author

Apologies for the delay everyone, we were making sure an underlying library is v17-compatible as well.
This will be released today.

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.

3 participants