Skip to content

Conversation

@eddeee888
Copy link
Collaborator

Description

This PR:

  • renames avoidOptionals.object to avoidOptionals.variableValue to match the format of other options e.g. inputValue
  • adds tests for avoidOptionals for typescript-operations (I think this was using tests from typescript plugin i.e. it was untested)

Related #10496

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2026

🦋 Changeset detected

Latest commit: 443934c

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/typescript-operations Major
@graphql-codegen/client-preset 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

@eddeee888 eddeee888 changed the title [typescript-operations] Rename avoidOptionals.object to avoidOptionals.variableValue to better reflect the target [typescript-operations] Rename avoidOptionals.object to avoidOptionals.variableValue to better reflect the target Jan 22, 2026
*/
export interface AvoidOptionalsConfig {
object?: boolean;
variableValue?: boolean;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

object didn't mean much. However, we know that it is used to handle optionality of variables, so I've renamed it variableValue

@github-actions
Copy link
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 6.1.2-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 5.0.1-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 5.0.8-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 5.1.3-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.0-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 6.0.0-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 6.1.6-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.0-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.0-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 5.1.3-alpha-20260122143420-443934ce7111ccee5603b05d9b4213cf2b83b2e6 npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 marked this pull request as ready for review January 22, 2026 14:53
@eddeee888 eddeee888 merged commit b6c4417 into master-next Jan 22, 2026
27 of 35 checks passed
@eddeee888 eddeee888 deleted the master-next-test-avoid-optionals branch January 22, 2026 14:53
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