Skip to content

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

Open
eddeee888 wants to merge 8 commits into
masterfrom
dedupe-fragments
Open

CODEGEN-899 - Dedupe fragments when documentMode=graphQLTag#10554
eddeee888 wants to merge 8 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
Copy link
Copy Markdown

changeset-bot Bot commented Dec 26, 2025

🦋 Changeset detected

Latest commit: a15dc9a

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

This PR includes changesets to release 3 packages
Name Type
@graphql-codegen/client-preset Patch
@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
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 26, 2025

💻 Website Preview

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

@eddeee888 eddeee888 marked this pull request as ready for review December 27, 2025 11:55
"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
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