NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #3667 most downloaded on npm
GraphQL Code Generator plugin for generating TypeScript types
Latest stable
7.0.1
Last release 12 days ago
10 Nov 2026
Release timing varies
gaps range from 8 days to 3 months
Some releases are documented
notes for 34 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
6589 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
e7870ac28: Fix security vulnerability by removing latest-version dependency.
d84afec09: Add bin CLI command for running graphql-code-generator in ESM mode. You can now use graphql-codegen-esm instead of graphql-codegen.
GraphQL Code Generator will continue supporting both ESM and CommonJS in parallel.
d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").
8e44df58b: Add new config option to not exit with non-zero exit code when there are no documents.
You can use this option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
ignoreNoDocuments: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --ignore-no-documents
e7870ac28: Fix security vulnerability by removing latest-version dependency.
dce40edeb: Allow to disable watch mode from CLI to overwrite the config. Now you can do:
$ graphql-codegen --watch=false
2e86ecb65: ### Summary
listr2listrlistr is not actively maintained and we have to maintain our custom renderer for it to display errors. Migrating to listr2 it just works out of the almost similar to how it was working in past and is a actively maintained.
Big change for us is how errors were collected. In listr errors were thrown and were caught in the end function of our custom listr Renderer but with listr2 we don't really get Error in end function always so instead we use the context to collect errors from all the tasks and then show them after all the tasks are finished.
Updated dependencies [d84afec09]
Updated dependencies [a4fe5006b]
Updated dependencies [8e44df58b]
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Updated dependencies [`a46b8d99c`]:
a46b8d99c]:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated dependencies [`1bd7f771c`]:
1bd7f771c]:
Nothing published for this version
Updated dependencies [`b408f8238`, `47d0a57e2`]:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated dependencies [2cbcbb371]
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated dependencies [525ad580b]
.js extension.Nothing published for this version
d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").
d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true this way it ensure that generated code works with non-compliant bund
2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true this way it ensure that generated code works with non-compliant bundlers.
You can use the option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
emitLegacyCommonJSImports: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --emit-legacy-common-js-imports
d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").
Nothing published for this version
Updated dependencies [525ad580b]
Nothing published for this version
1b0b00be3: fix(generic-sdk): fix Requester type when rawQuery is true
d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").
d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").
8e44df58b: Add new config option to not exit with non-zero exit code when there are no documents.
You can use this option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
ignoreNoDocuments: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --ignore-no-documents
a4fe5006b: Fix TS type error on strictNullChecks: true
Fix the compiler error:
node_modules/@graphql-codegen/plugin-helpers/oldVisit.d.ts:5:75 - error TS2339: Property 'enter' does not exist on type '{ readonly enter?: ASTVisitFn<NameNode> | undefined; readonly leave: ASTReducerFn<NameNode, unknown>; } | { readonly enter?: ASTVisitFn<DocumentNode> | undefined; readonly leave: ASTReducerFn<...>; } | ... 41 more ... | undefined'.
5 enter?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['enter']>>;
~~~~~~~
node_modules/@graphql-codegen/plugin-helpers/oldVisit.d.ts:6:75 - error TS2339: Property 'leave' does not exist on type '{ readonly enter?: ASTVisitFn<NameNode> | undefined; readonly leave: ASTReducerFn<NameNode, unknown>; } | { readonly enter?: ASTVisitFn<DocumentNode> | undefined; readonly leave: ASTReducerFn<...>; } | ... 41 more ... | undefined'.
6 leave?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['leave']>>;
~~~~~~~
Found 2 errors in the same file, starting at: node_modules/@graphql-codegen/plugin-helpers/oldVisit.d.ts:5
Only happens when TS compiler options `strictNullChecks: true` and `skipLibCheck: false`.
`Partial<T>` includes `{}`, therefore `NewVisitor[keyof NewVisitor]` includes `undefined`, and indexing `undefined` is error.
Eliminate `undefined` by wrapping it inside `NonNullable<...>`.
Related #7519
## 2.4.2
### Patch Changes
- a521216d6: broken links within documentation
## 2.4.1
### Patch Changes
- cb9adeb96: Cache validation of documents
## 2.4.0
### Minor Changes
- 754a33715: Performance Profiler --profile
## 2.3.2
### Patch Changes
- 6002feb3d: Fix exports in package.json files for react-native projects
## 2.3.1
### Patch Changes
- bcc5636fc: fix wrong dependency version range
## 2.3.0
### Minor Changes
- 97ddb487a: feat: GraphQL v16 compatibility
## 2.2.0
### Minor Changes
- 7c60e5acc: feat(core): ability to skip some specific validation rules with skipDocumentsValidation option
## 2.1.1
### Patch Changes
- 6470e6cc9: fix(plugin-helpers): remove unnecessary import
- 35199dedf: Fix module not found bug in resolveExternalModuleAndFn
## 2.1.0
### Minor Changes
- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils
- 440172cfe: support ESM
### Patch Changes
- 24185985a: bump graphql-tools package versions
## 2.0.0
### Major Changes
- b0cb13df4: Update to latest `graphql-tools` and `graphql-config` version.
‼️ ‼️ ‼️ Please note ‼️ ‼️ ‼️:
This is a breaking change since Node 10 is no longer supported in `graphql-tools`, and also no longer supported for Codegen packages.
## 1.18.8
### Patch Changes
- 470336a1: don't require plugins for for config if preset provides plugin. Instead the preset should throw if no plugins were provided.
## 1.18.7
### Patch Changes
- dfd25caf: chore(deps): bump graphql-tools versions
## 1.18.6
### Patch Changes
- 637338cb: fix: make lifecycle hooks definition a partial
## 1.18.5
### Patch Changes
- d9212aa0: fix(visitor-plugin-common): guard for a runtime type error
## 1.18.4
### Patch Changes
- 23862e7e: fix(naming-convention): revert and pin change-case-all dependency for workaround #3256
## 1.18.3
### Patch Changes
- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention
## 1.18.2
### Patch Changes
- 1183d173: Bump all packages to resolve issues with shared dependencies
## 1.18.1
### Patch Changes
- eaf45d1f: fix issue with inline fragment without typeCondition
## 1.18.0
### Minor Changes
- 857c603c: Adds the --errors-only flag to the cli to print errors only.
## 1.17.9
### Patch Changes
- da8bdd17: Allow hooks to be defined as partial object
## 1.17.8
### Patch Changes
- 1d7c6432: Bump all packages to allow "^" in deps and fix compatibility issues
- 1d7c6432: Bump versions of @graphql-tools/ packages to fix issues with loading schemas and SDL comments
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.