Skip to content

[client-preset] Forward immutableTypes option to client preset#10459

Merged
eddeee888 merged 2 commits into
masterfrom
allow-immutableTypes-in-client-preset
Oct 6, 2025
Merged

[client-preset] Forward immutableTypes option to client preset#10459
eddeee888 merged 2 commits into
masterfrom
allow-immutableTypes-in-client-preset

Conversation

@eddeee888
Copy link
Copy Markdown
Collaborator

@eddeee888 eddeee888 commented Oct 6, 2025

Description

immutableTypes is a good option to pass through because it forces users handle responses as immutable. Majority of users would use a client such as Apollo Client which manages its own caching which shouldn't be mutated in any way.

Related: #8296 (comment)

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • Unit test

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Oct 6, 2025

🦋 Changeset detected

Latest commit: 2abc148

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

This PR includes changesets to release 1 package
Name Type
@graphql-codegen/client-preset Minor

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

Comment thread yarn.lock
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.

I think I didn't commit yarn.lock correctly in the last PR, so when running yarn in this PR, it cleans up the lockfile like this.

@eddeee888 eddeee888 changed the title Forward immutableTypes to client preset [client-preset] Forward immutableTypes option to client preset Oct 6, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 6, 2025

🚀 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/client-preset 5.1.0-alpha-20251006112644-2abc148abefef377d171dcf8f82f008b899b10b4 npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 6, 2025

💻 Website Preview

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

@eddeee888 eddeee888 merged commit 87184aa into master Oct 6, 2025
19 checks passed
@eddeee888 eddeee888 deleted the allow-immutableTypes-in-client-preset branch October 6, 2025 11:34
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