Remove unused utility types and functions#10564
Merged
eddeee888 merged 4 commits intomaster-nextfrom Jan 7, 2026
Merged
Conversation
…s from typescript plugin because they were used for typescript-operations
2e802db to
590bbac
Compare
🦋 Changeset detectedLatest commit: 590bbac The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
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 |
eddeee888
commented
Jan 7, 2026
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); | ||
| } |
Collaborator
Author
There was a problem hiding this comment.
Driveby remove as nothing is using this
8 tasks
Contributor
🚀 Snapshot Release (
|
| 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
added a commit
that referenced
this pull request
Jan 20, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Feb 25, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Mar 3, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
ikusakov2
pushed a commit
to ikusakov2/graphql-code-generator
that referenced
this pull request
Mar 4, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Mar 8, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Mar 8, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Mar 8, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Mar 12, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
eddeee888
added a commit
that referenced
this pull request
Mar 19, 2026
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations * Fix unit tests * Remove deprecated functions * Add changeset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR removes unused utitlity types from
typescriptplugin because they were only used intypescript-operationsMakeOptionalMakeMaybeMakeEmptyIncrementalNote:
MakeOptional,MakeMaybeandMakeEmptywere used in a code path that has been removed fromtypescript-operations, so we also don't add them there.Also: remove utility function
getRootTypeNamesas it's not used in this codebase directly and is availabel in@graphql-tools/utilsRelated #10496