---
title: "@graphql-codegen/cli 8.0.0 Breaking Changes on npm"
description: "What each @graphql-codegen/cli release removed, renamed or changed: 21 breaking changes in 6 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@graphql-codegen/cli
last_updated: 2026-12-04
---

# @graphql-codegen/cli breaking changes

@graphql-codegen/cli 8.0.0 (November 7, 2026) is its newest release with breaking changes, 11 of them. The first: Drops support for GraphQL 14 and 15 in @graphql-codegen/cli 8.0.0. Every breaking API change we have recorded in @graphql-codegen/cli on npm: 21 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.0.0`, released November 7, 2026. [Source repository](https://github.com/dotansimha/graphql-code-generator)

Its 8.0.0 release requires Node.js 22.18.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 11 breaking changes in 1 version.
- From [3.0.0](#v-3-0-0) to [8.0.0](#v-8-0-0): 20 breaking changes in 5 versions.

## @graphql-codegen/cli 8.0.0 breaking changes

@graphql-codegen/cli 8.0.0, released November 7, 2026: 11 breaking changes.

- **Removed**  

GraphQL 14 and 15 are no longer supported; the graphql peer dependency is now ^16.0.0 || ^17.0.0, so upgrade graphql to 16 or 17 first. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@8.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Removed** `--emit-legacy-common-js-imports`  

Use --import-extension instead. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@8.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Removed** `YamlCliFlags.emit-legacy-common-js-imports`  

YamlCliFlags.emit-legacy-common-js-imports was removed in @graphql-codegen/cli 8.0.0 [npmjs.com](https://www.npmjs.com/package/@graphql-codegen/cli/v/8.0.0)
- **Removed** `YamlCliFlags.emitLegacyCommonJSImports`  

Use importExtension instead; when it is not set, no extension is appended to relative imports. [npmjs.com](https://www.npmjs.com/package/@graphql-codegen/cli/v/8.0.0)
- **Behavior changed**  

The @graphql-tools packages now require Node.js 22.18.0 or later and GraphQL 16 or 17; update your own @graphql-tools imports to the same majors to avoid duplicate installs. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@8.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Behavior changed**  

Node.js versions below 22.18.0 are no longer supported; upgrade Node.js before updating. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@8.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Signature changed** `buildOptions`  

Was function buildOptions(): {c: {alias: string; type: "string"; describe: string;}; w: {alias: string; describe: string; coerce(watch: any): string | boolean | any\[\];}; r: {alias: string; describe: string; type: "array"; default... [npmjs.com](https://www.npmjs.com/package/@graphql-codegen/cli/v/8.0.0)
- **Signature changed** `config.generates`  

Arrays in generates are now typed as ConfiguredOutput\[\]; only the first element is used, and normalizeOutputParam now returns an array. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@8.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Signature changed** `generate`  

generate() now returns Promise\<FileOutput\[\] | void>; consumers using the result as an array must narrow it first. [npmjs.com](https://www.npmjs.com/package/@graphql-codegen/cli/v/8.0.0)
- **Signature changed** `normalizeOutputParam`  

normalizeOutputParam returns ConfiguredOutput\[\] instead of a single ConfiguredOutput. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@8.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Signature changed** `YamlCliFlags`  

Was type YamlCliFlags = {config: string; watch: boolean | string | string\[\]; require: string\[\]; overwrite: boolean; project: string; silent: boolean; errorsOnly: boolean; profile: boolean; check?: boolean; verbose?: boolean; debug?... [npmjs.com](https://www.npmjs.com/package/@graphql-codegen/cli/v/8.0.0)

## @graphql-codegen/cli 7.0.0 breaking changes

@graphql-codegen/cli 7.0.0, released April 30, 2026: 4 breaking changes.

- **Removed**  

The package no longer supports Node 20. Users should upgrade to Node 22. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@7.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Behavior changed**  

Several dependencies were updated and some only support ESM, so code relying on CommonJS loading of them may break. Users should upgrade to Node 22 and lib maintainers using Jest may need Vitest. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@7.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Behavior changed**  

The CLI is now built as ESM instead of CJS. Users needing CommonJS should use the graphql-codegen-cjs command. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@7.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Default changed** `noSilentErrors`  

Operations with syntax errors are no longer silently dropped by default when some matching files fail to parse. Users who want the old behavior must set noSilentErrors to false in their config. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@7.0.0/packages/graphql-codegen-cli/CHANGELOG.md)

## @graphql-codegen/cli 6.0.0 breaking changes

@graphql-codegen/cli 6.0.0, released September 7, 2025: 3 breaking changes.

- **Removed**  

The package no longer supports Node.js 18. Users on Node 18 must upgrade their Node.js version before using 6.0.0. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@6.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Removed** `@graphql-tools.prisma-loader`  

The release removes support for @graphql-tools/prisma-loader. Code that relies on it must move to another approach before upgrading. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@6.0.0/packages/graphql-codegen-cli/CHANGELOG.md)
- **Signature changed** `executeCodegen`  

Was function executeCodegen(input: CodegenContext | Types.Config): Promise\<Types.FileOutput\[\]>; now function executeCodegen(input: CodegenContext | Types.Config): Promise<{result: Types.FileOutput\[\]; error: Error | null;}>. [npmjs.com](https://www.npmjs.com/package/@graphql-codegen/cli/v/6.0.0)

## @graphql-codegen/cli 5.0.0 breaking changes

@graphql-codegen/cli 5.0.0, released July 25, 2023: 1 breaking change.

- **Behavior changed**  

@parcel/watcher is no longer installed automatically with the CLI. Install it yourself if you rely on watch mode. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@5.0.0/packages/graphql-codegen-cli/CHANGELOG.md)

## @graphql-codegen/cli 4.0.0 breaking changes

@graphql-codegen/cli 4.0.0, released May 24, 2023: 1 breaking change.

- **Behavior changed**  

The package now requires Node.js >= 16, so users on Node.js 14 must upgrade their runtime before using this version. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@4.0.0/packages/graphql-codegen-cli/CHANGELOG.md)

## @graphql-codegen/cli 3.0.0 breaking changes

@graphql-codegen/cli 3.0.0, released February 3, 2023: 1 breaking change.

- **Removed**  

The CLI no longer supports Node.js 12; upgrade to a newer Node.js runtime before using this version. [github.com](https://github.com/dotansimha/graphql-code-generator/blob/@graphql-codegen/cli@3.0.0/packages/graphql-codegen-cli/CHANGELOG.md)

## Related packages

- [@graphql-codegen/plugin-helpers](https://since.dev/packages/npm/@graphql-codegen/plugin-helpers.md)
- [@graphql-codegen/typed-document-node](https://since.dev/packages/npm/@graphql-codegen/typed-document-node.md)
- [@graphql-codegen/typescript](https://since.dev/packages/npm/@graphql-codegen/typescript.md)
- [@graphql-codegen/schema-ast](https://since.dev/packages/npm/@graphql-codegen/schema-ast.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
