npm / @graphql-codegen/client-preset
@graphql-codegen/client-preset
What changed in @graphql-codegen/client-preset 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
2 breaking3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@graphql-codegen/client-preset 65 changes
Breaking changes 2
The babel plugin now throws when a file has no filename instead of crashing later with a less clear error.
The preset now throws a clear error when schemaAst is missing from the preset options instead of crashing later.
Fixes and other changes 3
The babel preset accepts options as ClientBabelPresetOptions | null | undefined, widening its declared parameter type.
Now unwraps AggregateError so schema and document syntax errors still print the native GraphQLError with its file location.
Fixes type errors when strict: true is enabled; generated output is unchanged.