Skip to content

[typescript-operations/client-preset] Next major version#10496

Draft
eddeee888 wants to merge 69 commits intomasterfrom
master-next
Draft

[typescript-operations/client-preset] Next major version#10496
eddeee888 wants to merge 69 commits intomasterfrom
master-next

Conversation

@eddeee888
Copy link
Copy Markdown
Collaborator

@eddeee888 eddeee888 commented Nov 7, 2025

This is the feature branch for #10479

Checklist

typescript-operations

TODO/Cleanups

client-preset

Verify fixes

Issues to close

Documentation updates

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Nov 7, 2025

🦋 Changeset detected

Latest commit: eb41159

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

This PR includes changesets to release 12 packages
Name Type
@graphql-codegen/cli Patch
@graphql-codegen/client-preset Major
@graphql-codegen/gql-tag-operations Patch
@graphql-codegen/graphql-modules-preset Patch
@graphql-codegen/plugin-helpers Patch
@graphql-codegen/typed-document-node Patch
@graphql-codegen/typescript Major
@graphql-codegen/typescript-document-nodes Patch
@graphql-codegen/typescript-operations Major
@graphql-codegen/typescript-resolvers Major
@graphql-codegen/visitor-plugin-common Major
@graphql-codegen/introspection 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 force-pushed the master-next branch 2 times, most recently from 48ef01e to c2be6b3 Compare January 6, 2026 13:16
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2026

💻 Website Preview

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

eddeee888 and others added 14 commits April 13, 2026 22:50
…tional modifiers correctly when used on inline fragment (#10645)

* Migrate skip and include directive tests to a new file

* Add test for aliased field

* Add test for include directive, inline fragment cases

* Refactor selection set to object to reflect current usages

* Standardise type, parsing, fragment directive handling and fix conditional when inline fragment is used

* Add inline fragment skip directive test

* Add changeset
…al modifiers correctly when used on fragment spread (#10646)

* Set up TDD

* WIP implement conditional fragmentspread

* Fix empty object detection logic

* Format/cleanup

* Add test for include+skip+defer

* Add changeset

* Fix test
* Drop Node 20 tests for normal runs

* Add changeset

* Drop Node 20 support for watcher tests

* Revert "Drop Node 20 support for watcher tests"

This reverts commit cc52a81.
* Bump ESM packages

- detect-indent v7
- auto-bind v5
- chalk v5
- log-symbols v7
- debounce v3

* Bum all package deps to latest

* chore(dependencies): updated changesets for modified dependencies

* Revert @inquirer/prompts to v7 to be handled later

* chore(dependencies): updated changesets for modified dependencies

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Bump inquirer

* chore(dependencies): updated changesets for modified dependencies

* WIP fix test

* Swap bddstd for inquirer/testing

* Fix spec tsconfig to fix ts import issue in tests ESM

* Fix unnecessary Promise

* Update init tests to use @inquirer/testing

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… and follow recommended format (#10652)

* Update default hash to be sha256 for persisted documents

* Add changeset

* chore(dependencies): updated changesets for modified dependencies

* Update tests

* chore(dependencies): updated changesets for modified dependencies

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* typescript-operations: Add support for declarationKind option

* Drive-by: add fixme

* Add changeset
…rationKind config (#10655)

* move normalizeAvoidOptionals to visitor-plugin-common

* Make normalizeOperationDeclarationKind similar to normalizeOperationAvoidOptionals

* Fix issue where extractAllFieldsToTypes always causes console to warn

* Fix compilation issues
…on in certain scenarios (#10656)

* Set up test

* Refactor naming functions to visitor-plugin-common/naming

* Parse EnumValues with applying namingConvention on the schema type and use it for imports

* Ensure converted enum type is used across imports, exports and Result

* Fix enum-values.spec tests

* Update implementation to match expected

* Update enumValues tests

* Ensure correct naming convention being applied to Input, Variables and Result types

* Create a section for enumValues

* add changeset
…ingConvention in certain scenarios (2) (#10657)

* Ensure enumValues is consistent in typescript and typescript-resolvers

* Add a note to default alias import not doing anything

* Add changeset
Repository owner deleted a comment from github-actions bot Apr 13, 2026
Repository owner deleted a comment from github-actions bot Apr 13, 2026
Repository owner deleted a comment from github-actions bot Apr 13, 2026
* feat(cli): use `ESM` by default

* Update graphql-codegen-esm to use esm/bin.js
@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/cli 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/core 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/add 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/fragment-matcher 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/schema-ast 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/time 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 6.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/testing 5.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎
@graphql-codegen/plugin-helpers 7.0.0-alpha-20260413135420-eb41159d047f15f84648ca3282322ef660a92d63 npm ↗︎ unpkg ↗︎

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.

3 participants