Skip to content

Conversation

@eddeee888
Copy link
Collaborator

@eddeee888 eddeee888 commented Jan 7, 2026

Description

This PR removes unused utitlity types from typescript plugin because they were only used in typescript-operations

  • MakeOptional
  • MakeMaybe
  • MakeEmpty
  • Incremental

Note: MakeOptional, MakeMaybe and MakeEmpty were used in a code path that has been removed from typescript-operations, so we also don't add them there.

Also: remove utility function getRootTypeNames as it's not used in this codebase directly and is availabel in @graphql-tools/utils

Related #10496

@eddeee888 eddeee888 force-pushed the master-next-remove-unused-utility-types branch from 2e802db to 590bbac Compare January 7, 2026 12:57
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: 590bbac

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

This PR includes changesets to release 10 packages
Name Type
@graphql-codegen/visitor-plugin-common Major
@graphql-codegen/typescript Major
@graphql-codegen/typescript-document-nodes Patch
@graphql-codegen/gql-tag-operations Patch
@graphql-codegen/typescript-operations Patch
@graphql-codegen/typescript-resolvers Patch
@graphql-codegen/typed-document-node Patch
@graphql-codegen/introspection Patch
@graphql-codegen/client-preset Patch
@graphql-codegen/graphql-modules-preset 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

Comment on lines -421 to -426
// will be removed on next release because tools already has it
export function getRootTypeNames(schema: GraphQLSchema): string[] {
return [schema.getQueryType(), schema.getMutationType(), schema.getSubscriptionType()]
.filter(t => t)
.map(t => t.name);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Driveby remove as nothing is using this

@eddeee888 eddeee888 changed the title Remove unused utility types Remove unused utility types and functions Jan 7, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

🚀 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 6.1.1-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 5.0.1-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 5.0.8-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 5.1.3-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 6.1.6-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 5.1.3-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 merged commit cda43e2 into master-next Jan 7, 2026
33 of 35 checks passed
@eddeee888 eddeee888 deleted the master-next-remove-unused-utility-types branch January 7, 2026 13:09
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