Skip to content

CODEGEN-899 - Dedupe fragments when documentMode=graphQLTag#10554

Merged
eddeee888 merged 9 commits into
masterfrom
dedupe-fragments
May 27, 2026
Merged

CODEGEN-899 - Dedupe fragments when documentMode=graphQLTag#10554
eddeee888 merged 9 commits into
masterfrom
dedupe-fragments

Conversation

@eddeee888

Copy link
Copy Markdown
Collaborator

Description

We recently removed a deprecated dedupeFragments config option here.
However, I believe the intention was "to enable it by default, therefore the option is not required" 😅

This PR re-applies the deduping logic, without the need of an option. I've also added a test to demonstrate the behaviour for next time.

Related # #10551

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Unit test

@changeset-bot

changeset-bot Bot commented Dec 26, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 082a3d3

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

This PR includes changesets to release 2 packages
Name Type
@graphql-codegen/typed-document-node Patch
@graphql-codegen/visitor-plugin-common 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 Dec 26, 2025

Copy link
Copy Markdown
Contributor

💻 Website Preview

The latest changes are available as preview in: https://pr-10554.graphql-code-generator.pages.dev

"dependencies": {
"@graphql-codegen/plugin-helpers": "^7.0.0",
"@graphql-codegen/visitor-plugin-common": "^7.0.0",
"@graphql-codegen/visitor-plugin-common": "workspace:^",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to do this for other deps as well, will do in another PR to keep changes low here.

Repository owner deleted a comment from github-actions Bot May 25, 2026
@github-actions

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/visitor-plugin-common 7.0.4-alpha-20260527133424-62e1923187340d3bbafbbf73e6e7aaa787e7d383 npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 7.0.2-alpha-20260527133424-62e1923187340d3bbafbbf73e6e7aaa787e7d383 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.2-alpha-20260527133424-62e1923187340d3bbafbbf73e6e7aaa787e7d383 npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 merged commit 446aef4 into master May 27, 2026
@eddeee888 eddeee888 deleted the dedupe-fragments branch May 27, 2026 13:35
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.

1 participant