# What changed in @graphql-codegen/client-preset

> 5 changes in @graphql-codegen/client-preset 6 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@graphql-codegen/client-preset/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @graphql-codegen/client-preset 6

### Breaking changes

- The babel plugin now throws when a file has no filename instead of crashing later with a less clear error. (6.2.1) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/68a2ef2586b969470993116846628d6075d2f19b/packages/presets/client/CHANGELOG.md#621)
- The preset now throws a clear error when schemaAst is missing from the preset options instead of crashing later. (6.2.1) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/68a2ef2586b969470993116846628d6075d2f19b/packages/presets/client/CHANGELOG.md#621)

### Fixes and other changes

- The babel preset accepts options as ClientBabelPresetOptions | null | undefined, widening its declared parameter type. (6.2.3) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/68a2ef2586b969470993116846628d6075d2f19b/packages/presets/client/CHANGELOG.md#623)
- Now unwraps AggregateError so schema and document syntax errors still print the native GraphQLError with its file location. (6.2.2) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/68a2ef2586b969470993116846628d6075d2f19b/packages/presets/client/CHANGELOG.md#622)
- Fixes type errors when strict: true is enabled; generated output is unchanged. (6.2.1) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/68a2ef2586b969470993116846628d6075d2f19b/packages/presets/client/CHANGELOG.md#621)
