Skip to content

Next major feature branch - #11075

Merged
eddeee888 merged 21 commits into
masterfrom
master-next
Nov 7, 2026
Merged

eddeee888 merged 21 commits into
masterfrom
master-next

Conversation

@changeset-bot

changeset-bot Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f340f29

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
@graphql-codegen/add Patch
@graphql-codegen/cli Patch
@graphql-codegen/client-preset Patch
@graphql-codegen/core Patch
@graphql-codegen/fragment-matcher Patch
@graphql-codegen/gql-tag-operations Patch
@graphql-codegen/graphql-modules-preset Patch
@graphql-codegen/introspection Patch
@graphql-codegen/plugin-helpers Patch
@graphql-codegen/schema-ast Patch
@graphql-codegen/time Patch
@graphql-codegen/typed-document-node Patch
@graphql-codegen/typescript Patch
@graphql-codegen/typescript-document-nodes Patch
@graphql-codegen/typescript-operations Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/core 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/add 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/fragment-matcher 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/schema-ast 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/time 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 7.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/testing 6.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎
@graphql-codegen/plugin-helpers 8.0.0-alpha-20261107062740-f340f298f9678d50ddf00165e067ef1608d9cd4b npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 mentioned this pull request Oct 25, 2026
13 tasks done
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview (rebuilds on every push, ready ~10 min after each): https://codegen-pr-11075.guild-dev-website.pages.dev/graphql/codegen

eddeee888 and others added 5 commits October 31, 2026 22:34
…[] | void (#11071) (#11074)

* refactor: type generate() return as FileOutput[] | void

The return was typed `FileOutput[] | any`, which collapsed to `any` and lost type-hints. Watch mode resolves with no value, so the union is `FileOutput[] | void`.

Skill: cops:pr-start
Approved-by: eddeee888

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* refactor: note type-safety-only fallbacks in generate specs

The `|| []` and `?.` in the generate specs only satisfy the `void` return type, so each site now says so.

Skill: cops:pr-start
Approved-by: eddeee888

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…11078)

* chore: remove deprecated emitLegacyCommonJSImports option

`importExtension` replaces it, so the option, its CLI flag and every pass-through are dropped for the next major (#11071).

Skill: cops:pr-start
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WmgeFRnsoawCS9eR6uBjn8

* refactor: inline normalizeImportExtension

With emitLegacyCommonJSImports gone the helper only returns importExtension ?? '', so call sites use that directly and the export is removed.

Skill: cops:pr-start
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WmgeFRnsoawCS9eR6uBjn8

* refactor: default importExtension in plugin param destructure

Removes the redundant `?? ''` const by defaulting at the destructure.

Skill: cops:pr-address
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WmgeFRnsoawCS9eR6uBjn8

* refactor: reuse normalised importExtension in client-side visitor

BaseVisitor already defaults importExtension to '', so the extra `?? ''` is redundant.

Skill: cops:pr-address
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WmgeFRnsoawCS9eR6uBjn8

---------

Co-authored-by: Claude <noreply@anthropic.com>
…iguredOutput[]` instead of `ConfiguredPlugin[]` (#11087)

* Stop exposing isOutputConfigArray and isConfiguredOutput

* Fix config.generates type

* Add more details to changeset

* Fix undefined case

* Add @graphql-codegen/cli to changeset as its interface changes because plugin-helpers changed

* Only warn once in watcher

* Add tests for array `generates` values in executeCodegen

Cover single-element, multi-element (first used, warns once), empty
array, and non-object element (old plugin-list shape) cases.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyYayC2MDVx4YRioaQPChv

* Remove watcher warn about config

* Move array `generates` tests to codegen.generates.spec.ts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyYayC2MDVx4YRioaQPChv

* Add tests for multiple entries and only warn once

* Update changeset to match final behavior

Fix typos and describe the cli warning, the return type change of
normalizeOutputParam and the empty array error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyYayC2MDVx4YRioaQPChv

* Clarify changeset wording on the old array behavior and error message

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyYayC2MDVx4YRioaQPChv

---------

Co-authored-by: Claude <noreply@anthropic.com>
eddeee888 and others added 13 commits November 1, 2026 16:31
…` with PluginInfo (#11071) (#11102)

* refactor: [@graphql-codegen/plugin-helpers] type PluginFunction `info` with PluginInfo

`plugin` and `validate` now share one info definition; the index signature stays for third-party plugins.

Skill: cops:pr-start
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyYayDM9pv2k12dnZ8W44m

* refactor: [@graphql-codegen/plugin-helpers] reword PluginFunction info comment

Comment now describes only what the index signature does, not change history.

Skill: cops:pr-address
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyYayDM9pv2k12dnZ8W44m

---------

Co-authored-by: Claude <noreply@anthropic.com>
eddeee888 and others added 2 commits November 7, 2026 17:13
#11108)

The published plugin still uses the old positional validate signature, which breaks with the new validate info object (#11071).


Claude-Session: https://claude.ai/code/session_01NyYayCpxtJ1D7KtvhxTPTV

Co-authored-by: Claude <noreply@anthropic.com>
@eddeee888
eddeee888 marked this pull request as ready for review November 7, 2026 06:29
@eddeee888
eddeee888 merged commit fa49a37 into master Nov 7, 2026
19 checks passed
@eddeee888
eddeee888 deleted the master-next branch November 7, 2026 06:41
eddeee888 added a commit to the-guild-org/website that referenced this pull request Nov 17, 2026
* docs: announce GraphQL Codegen CLI and plugins v8.0

Summarizes the v7->v8 breaking changes and links the migration guide
from dotansimha/graphql-code-generator#11075 and #11107.

Skill: cops:pr-start
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs: reword v8.0 claim to cover CLI and new plugin majors

Most plugins still ship as 7.0.0 on npm, so "official plugins v8.0" was
inaccurate; the title/description/intro now say "CLI v8.0 and new
plugin majors" per review feedback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs: correct claim that v8.0 never changes generated code shape

The code-file-loader@9 pluck default and the emitLegacyCommonJSImports
removal both can change generated output, contradicting the earlier
"none of it changes the shape" claim.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs: clarify config.generates array behaviour and fix

Apply review suggestion verbatim: the old plugin-name array form still
throws Invalid Codegen Configuration rather than "working correctly",
and the fix (wrapping in { plugins: [...] }) was missing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs: note Array.isArray narrowing for generate() in watch mode

generate() can now resolve to void in watch mode, so callers indexing
the result need an Array.isArray(result) check to compile.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs: trim detail in the v8 announcement per feedback

Drop the code-file-loader callout, stop listing every package the
emitLegacyCommonJSImports removal touches, simplify the config.generates
explanation, and retitle "Why v8?" to "What's in v8?".

Skill: cops:pr-start
Approved-by: eddeee888
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Apply suggestion from @eddeee888

* Apply suggestion from @eddeee888

* Update website/src/hive/documentation/content/blog/graphql-codegen-cli-v8-202611/index.mdx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @eddeee888

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants