NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2760 most downloaded on npm
Latest stable
8.0.1
Last release 12 days ago
10 Nov 2026
Ships fairly regularly
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
6698 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
@graphql-codegen/visitor-plugin-common@7.2.8
@graphql-codegen/visitor-plugin-common@7.2.8
#11009
1f7566f
Thanks @eddeee888! - Fix type errors in typescript-operations
under strict: true by widening the shared types it calls into:
@graphql-codegen/plugin-helpers: Types.ComplexPluginOutput's prepend and append now
accept null items. Core already skipped them.@graphql-codegen/visitor-plugin-common: DeclarationBlock.withComment accepts undefined,
parseEnumValues's mapOrStr is optional (it already defaulted to {}),
ImportSource.namespace accepts null, and optimizeOperations's includeFragments is
optional.@graphql-codegen/typescript-operations: skips document files without a document, and no
longer throws when called without the plugin info argument.Generated output is unchanged.
#11014
7a376ef
Thanks @eddeee888! - Fix type errors in typescript under
strict: true by typing the shared visitor methods it overrides:
@graphql-codegen/visitor-plugin-common: adds NormalizedDeclarationKindConfig (every
declaration kind set), used by normalizeDeclarationKind, DEFAULT_DECLARATION_KINDS and
ParsedTypesConfig.declarationKind. BaseTypesVisitor's NamedType, ListType,
FieldDefinition, InputValueDefinition and UnionTypeDefinition have typed visitor params
(key and parent are required, since the visitor always passes them), and
ObjectTypeDefinition, EnumTypeDefinition and DirectiveDefinition may return null.@graphql-codegen/typescript: skips document files without a document when collecting
introspection types, types the TsVisitor visitor params, and TsVisitor.EnumTypeDefinition
may return null like the introspection visitor's override.Generated output is unchanged.
#11031
3caccd3
Thanks @eddeee888! - Fix type errors in visitor-plugin-common
(selection-set-to-object, client-side-base-visitor and base-documents-visitor) under
strict: true:
BaseDocumentsVisitor._selectionSetToObject is optional, since it is only set by
setSelectionSetHandler. FragmentDefinition and OperationDefinition throw a descriptive
error when it is not set, and FragmentDefinition throws one when the fragment's type condition
is not in the schema.BaseDocumentsVisitor.FragmentDefinition may return null, which it already returns when
generateOperationTypes is false.ClientSideBaseVisitor.buildOperation may return null, which its base implementation already
returns.SelectionSetToObject.transformSelectionSet declares its return type, and throws a descriptive
error when the instance has no selection set.LinkField's alias is optional, matching the link fields built for fields without an alias.BaseSelectionSetProcessor.typeCache is keyed by Location | undefined, since selection sets
parsed with noLocation have no loc.getPossibleTypes accepts any GraphQLType or undefined, which it already handles by
unwrapping lists and non-nulls and returning no types, and returns a copy of the schema's
possible types instead of the schema's own readonly array.OperationVariablesToObject.transform accepts undefined, which it already handles by
returning null.Generated output is unchanged.
#11030
ccc0d5c
Thanks @eddeee888! - Fix type errors in visitor-plugin-common
(base-resolvers-visitor) under strict: true:
BaseResolversVisitor's constructor takes additionalConfig as Partial<TPluginConfig>, since
the visitor fills in the defaults for every key it leaves out.BaseResolversVisitor's ScalarTypeDefinition, DirectiveDefinition and EnumTypeDefinition
may return null, which they already return for skipped federation scalars and directives and
for enums without mappers or enumValues.BaseResolversVisitor.getAbstractMembersType's isTypenameNonOptional is optional, matching
the optional resolversNonOptionalTypename flags it is read from.BaseResolversVisitor.defaultMapperType throws a descriptive error when the defaultMapper
config is not set.Generated output is unchanged.
Updated dependencies
[43d0f65,
82ebbb5,
eae0e62,
1f7566f]:
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
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
Nothing published for this version
Nothing published for this version
Nothing published for this version
@graphql-codegen/visitor-plugin-common@7.2.7
@graphql-codegen/visitor-plugin-common@7.2.7
#11001
65e5599
Thanks @eddeee888! - Fix typescript-operations generating
invalid interface declarations for @oneOf inputs when declarationKind is interface
(#10996).
A @oneOf input with multiple fields is a union, so it is always generated as a type alias; a
single-field @oneOf input keeps the configured declarationKind.input. typescript and
typescript-operations share this rule through the new getOneOfInputDeclarationKind export from
@graphql-codegen/visitor-plugin-common.
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
@graphql-codegen/visitor-plugin-common@7.2.6
@graphql-codegen/visitor-plugin-common@7.2.6
#10982
e5361bc
Thanks @eddeee888! - Fix out-of-memory errors with deeply nested,
widely reused fragments
(#10940).
The type cache used while generating selection set types was keyed by every fragment-expanded
field path, so its keys grew exponentially with fragment nesting. Keys are now built from the
selection set as written, referencing fragment spreads by name, so they stay linear in the size of
the documents. The exported getFieldNames helper from @graphql-codegen/visitor-plugin-common,
which built those expanded paths, is removed.
#10993
be69e9d
Thanks @eddeee888! - Type getConfigValue's value parameter as
T | null | undefined, so the result is non-nullable when a non-nullable default is given.
Updated dependencies
[1d1153b]:
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
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.