Skip to content

[typescript-operations] Clean up selection set processor that depends on typescript plugin (preResolveTypes: false)#10556

Merged
eddeee888 merged 3 commits intomaster-nextfrom
master-next-clean-up-preResolveTypes-false
Jan 1, 2026
Merged

[typescript-operations] Clean up selection set processor that depends on typescript plugin (preResolveTypes: false)#10556
eddeee888 merged 3 commits intomaster-nextfrom
master-next-clean-up-preResolveTypes-false

Conversation

@eddeee888
Copy link
Copy Markdown
Collaborator

@eddeee888 eddeee888 commented Dec 30, 2025

Description

ts-selection-set-processor.ts is an old selection set processor that picks from typescript plugin types.
Since we no longer have this dependency, it should be safe to clean this up in this PR.

We can also update and remove relevant tests

Related #10496

Type of change

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

How Has This Been Tested?

  • Unit test
  • Integration test

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 30, 2025

⚠️ No Changeset found

Latest commit: db5e004

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 30, 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/cli 6.0.3-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 5.0.1-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 5.0.5-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 5.0.6-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.0-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 5.1.3-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 6.1.3-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.0-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.0-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 5.0.6-alpha-20260101134152-db5e004a3d2c64200376026e73d4a178cd47367f npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 force-pushed the master-next-clean-up-preResolveTypes-false branch from 20e7671 to 5609723 Compare January 1, 2026 11:26
Comment on lines -159 to -209
it('Should handle "namespacedImportName" and "preResolveTypes" together', async () => {
const testSchema = buildSchema(/* GraphQL */ `
type Query {
f: E
user: User!
}

enum E {
A
B
}

scalar JSON

type User {
id: ID!
f: E
j: JSON
}
`);
const ast = parse(/* GraphQL */ `
query test {
f
user {
id
f
j
}
}
`);
const config = { namespacedImportName: 'Types', preResolveTypes: true };
const { content } = await plugin(testSchema, [{ location: 'test-file.ts', document: ast }], config, {
outputFile: '',
});

expect(content).toMatchInlineSnapshot(
`
"export type E =
| 'A'
| 'B';

export type TestQueryVariables = Exact<{ [key: string]: never; }>;


export type TestQuery = { f: Types.E | null, user: { id: string, f: Types.E | null, j: any | null } };
"
`
);

await validate(content, '', [`Cannot find namespace 'Types'.`]);
});
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.

Comment on lines -46 to -92
it('Should handle "namespacedImportName" and add it when specified', async () => {
const ast = parse(/* GraphQL */ `
query notifications {
notifications {
id

... on TextNotification {
text
textAlias: text
}

... on TextNotification {
text
}

... on ImageNotification {
imageUrl
metadata {
created: createdBy
}
}
}
}
`);
const config = { preResolveTypes: false, namespacedImportName: 'Types' };
const { content } = await plugin(schema, [{ location: 'test-file.ts', document: ast }], config, {
outputFile: '',
});

expect(content).toMatchInlineSnapshot(`
"export type NotificationsQueryVariables = Exact<{ [key: string]: never; }>;


export type NotificationsQuery = { notifications: Array<
| (
Pick<Types.TextNotification, 'text' | 'id'>
& { textAlias: Types.TextNotification['text'] }
)
| (
Pick<Types.ImageNotification, 'imageUrl' | 'id'>
& { metadata: { created: Types.ImageMetadata['createdBy'] } }
)
> };
"
`);
await validate(content, '', [`Cannot find namespace 'Types'.`]);
});
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.

Comment thread packages/plugins/typescript/operations/tests/ts-documents.spec.ts
Comment on lines -368 to -396
describe('Scalars', () => {
it('Should include scalars when doing pick', async () => {
const testSchema = buildSchema(/* GraphQL */ `
scalar Date
type Query {
me: User
}
type User {
id: ID!
joinDate: Date!
}
`);

const doc = parse(/* GraphQL */ `
query {
me {
id
joinDate
}
}
`);
const config = { preResolveTypes: false };
const { content } = await plugin(testSchema, [{ location: 'test-file.ts', document: doc }], config, {
outputFile: '',
});
expect(content).toContain(`Pick<User, 'id' | 'joinDate'>`);
await validate(content);
});
});
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.

This entirely tests the preResolveTypes: false approach, so it's ok to remove.

@eddeee888 eddeee888 force-pushed the master-next-clean-up-preResolveTypes-false branch from a0436f5 to f271167 Compare January 1, 2026 12:25
Comment on lines -1237 to -1246
it('Should add __typename as optional when its not specified', async () => {
const ast = parse(/* GraphQL */ `
query {
dummy
}
`);
const config = { preResolveTypes: false };
const { content } = await plugin(schema, [{ location: 'test-file.ts', document: ast }], config, {
outputFile: '',
});
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.

This test is no longer the expected behaviour. So it can be removed.

"
`);
await validate(content);
});

it('Should add __typename correctly when unions are in use', async () => {
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.

Changing this test to test correct __typename generation instead.

Previously, __typename would be optional so it'd appear in the generated template

"
`);
await validate(content);
});

it('Should add __typename correctly when interfaces are in use', async () => {
it('Should add __typename correctly when interfaces are in use and nonOptionalTypename=true', async () => {
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.

@eddeee888 eddeee888 force-pushed the master-next-clean-up-preResolveTypes-false branch 2 times, most recently from ccdcfbe to 97ba058 Compare January 1, 2026 13:24
@eddeee888 eddeee888 force-pushed the master-next-clean-up-preResolveTypes-false branch from 97ba058 to 2a616db Compare January 1, 2026 13:26
@eddeee888 eddeee888 changed the title [typescript-operations] Clean up selection set processor that depends on typescript plugin [typescript-operations] Clean up selection set processor that depends on typescript plugin (preResolveTypes: false) Jan 1, 2026
@eddeee888 eddeee888 marked this pull request as ready for review January 1, 2026 13:42
@eddeee888 eddeee888 merged commit 99ab3a8 into master-next Jan 1, 2026
19 checks passed
@eddeee888 eddeee888 deleted the master-next-clean-up-preResolveTypes-false branch January 1, 2026 13:51
eddeee888 added a commit that referenced this pull request Jan 6, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Jan 20, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Feb 25, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Mar 3, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
ikusakov2 pushed a commit to ikusakov2/graphql-code-generator that referenced this pull request Mar 4, 2026
… on `typescript` plugin (`preResolveTypes: false`) (dotansimha#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Mar 8, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Mar 8, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Mar 8, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Mar 12, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Mar 19, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 13, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 18, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 19, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 22, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 24, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 27, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 30, 2026
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
eddeee888 added a commit that referenced this pull request Apr 30, 2026
* Add dummy commit to create branch

* Ensure CI runs

* [typescript-operations] Generate `Exact` into target file (#10504)

* Create standalone test

* Add Exact and set up test

* Remove Exact from typescript plugin

* Update tests that switch out Exact

* Update dev tests

* Add changeset

* Update test

* Add InputMaybe Scalars tests

* Fix schema in test

* Fix up examples tests

* Add result enum example

* [typescript-operations] Remove inputmaybe and scalars (#10509)

* [typescript-operations] Remove generation of InputMaybe and Scalars for variables

* Adding support for `config.scalars`, fixing intergation tests

---------

Co-authored-by: Igor Kusakov <[email protected]>

* chore(dependencies): updated changesets for modified dependencies

* [typescript-operations] Extract convertSchemaEnumToDeclarationBlockString and getNodeComment to `visitor-plugin-common` (#10520)

* Extract convertSchemaEnumToDeclarationBlockString and getNodeComment to visitor-plugin-common to re-use in next major version

* Create major breaking changeset for @graphql-codegen/visitor-plugin-common

* Fix naming

* Replace buildEnumValuesBlock method in base-types-visitor with a utility version

* Fix changeset

* Fix import path

* Fix getNodeComment import issue by moving to utils.ts

* [typescript-operations] Generate enums referenced in operation Variables (#10508)

* Collect used enums

* Use enum converter for Enum

* Add changeset

* Add doc

* Update dev tests

* Fix return type issue

* [typescript-operations] Add missing enum tests & fix enum generating logic for standalone approach (#10525)

* Add tests for enum

* Baselin tests

* Ensure correctness of enumValues import

* Split enum tests

* Abstract import printing functions

* Add missing enum tests

* Format to minimise conflict

* Add changeset

* Add generatesOperationTypes config option to generate shared types only (#10529)

* [typescript-operations] Add importSchemaTypesFrom to import user-defined+used input/enum types externally (#10534)

* Draft importSchemaTypesFrom

* Minor test fixes

* Fix test name

* Update dev-tests

* Baseline dev-test for importSchemaTypesFrom

* Implement relative import paths correctly

* Update tests to handle outputDir correctly

* Add test for absolute importSchemaTypesFrom

* Remove unncessary files

* Add test about unused things

* Remove comment

* Add comments

* Add changeset

* [typescript-operations][client-preset] Integrate new typescript-operations with client preset (#10540)

* Do not use typescript and its config in Client Preset

* Fix issue where enumValues are imported even if not used

* Split enum tests for client preset

* Update unit tests

* Update examples

* Generate Incremental utilty type

* Add changeset

* Rebase tests (with errors)

* [typescript-operations] No optional Result fields, unless deferred or conditional (#10548)

* Fix types issues and put comments

* Handle avoidOptionals

* Update integration tests

* Add FIXME to pass test for now

* Add changeset

* Generate input types and output enums into target file (#10527)

* input types, input/output enums are generated to the target files

* cleanup

* better code

* more tests

* cleanup

* better code

* better tests

* bugfixing for inner types and outer enums

* bugfixing after merge

* cleanup

* cleanup

* fix snapshots

* fix type errors in presets/client

* updated tests/examples

* Add standalone.input.spec.ts and update standalone tests to TDD

* Update operations/visitor.ts to satisfy tests

* Revert Client Preset changes

* Add oneOf directive for GraphQL 15

* Update changeset

* Refactor IIFE

---------

Co-authored-by: Igor Kusakov <[email protected]>
Co-authored-by: Eddy Nguyen <[email protected]>

* Remove placeholder and test release 🤞

* Test snapshot release

* [typescript-operations] Fix __typename optionality and nullability (#10552)

* Fix typename optionality and existence at Result root and types

* Update tests

* Update tests

* Stop allowing skipTypename into Client Preset and typescript-operations, and update tests

* Remove dependency on typescript plugin

* Add changeset

* [typescript-operations] Clean up selection set processor that depends on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit

* Adjust config inheritance to reflect usage and type-hint better (#10560)

* Refactor utility function to match practice

* Fix config option inheritance

- addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from base-visitor
- nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor there
- extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there
- enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to correctly sync the enum type names. This is moved to base visitor
- ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from base-visitor there.
- globalNamespace: is a documents-visitor concern. Moved from base-visitor there

Other changes:
- documents-visitor no longer extends types-visitor _option types_ as they have two distinct usages now. The types now extend base-visitor types. This is now consistent with documents-visitor extending base-visitor
- Classes now handle config parsing and types at the same level e.g. if typescript-operations plugin parses configOne, then the types for configOne must be in that class, rather than in base-documents-visitor

* Remove references and tests related to skipTypename in operations plugin

* Add changeset

* chore(dependencies): updated changesets for modified dependencies

* Fix issues after rebasing (#10563)

* Fix missing dep

* chore(dependencies): updated changesets for modified dependencies

* Fix dev-tests

---------

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

* chore(dependencies): updated changesets for modified dependencies

* Remove unused utility types and functions (#10564)

* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations

* Fix unit tests

* Remove deprecated functions

* Add changeset

* Add config extract all fields to types field names only (same as apollo-tooling), v2 (#10568)

* add extractAllFieldsToTypesCompact config option

* adding changeset

* fixing duplication bug

* duplication bug fix

---------

Co-authored-by: Igor Kusakov <[email protected]>

* Only generate `Exact` utility type if documents have operations (#10571)

* Remove extraneous test setup

* Do not generate Exact utility type of not used

* Add default test case to check that Exact is used for Mutation and Subscription variables

* Update dev-tests

* Add changeset

* Remove extraneous config for Exact test

* Make `unknown` instead of `any` the default scalar type (#10566)

* Make default scalar unknown, instead of any

* Set up defaultScalarType tests

* Add changeset

* Revert unrelated null | undefined changes

* Fix test description

* Add a test case for custom scalar in dev-test

* Decouple `typescript-operations` plugin from `typescript` plugin (#10572)

* Decouple TypeScriptOperationVariablesToObject from typescript plugin

* Add changeset

* Remove typescript plugin dep

* chore(dependencies): updated changesets for modified dependencies

---------

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

* chore(dependencies): updated changesets for modified dependencies

* Add `inputMaybeValue` to allow changing Variables and Input nullable types (#10573)

* Shuffle methods to group things together, cleanup

* Wire up _inputMaybeValue and organise config

* Wire up inputMaybeValue

* Add inputMaybeValue test

* Update tests

* Add changeset

* [typescript-operations] Handle printing "Maybe" types consistently when types are `any` and `unknown` (#10574)

* Use printTypeScriptType to handle printing typescript types consistently, especially for any and unknown

* Update tests

* Add changeset

* Make printTypeScriptMaybeType scope smaller

* Update tests

* [typescript-operations] Fix Input generation when using `importSchemaTypesFrom` (#10575)

* Fix importing issue when using importSchemaTypesFrom

* Add dev-tests for usage with typescript plugin

* Update unit test

* Add changeset

* Bugfix: enums from external fragments were not generated along with operations (#10565)

* integration test

* cleanups

* cleanups2

* fixed a bug with external fragments

* cleanup

* keep generated files, refactored visitorwq

* cleanup

* changeset

* adding missing dependency

* delete temporary files

* cleanup

* cleanups

* Adding back the integration tests + fix them

* merged + fixes

* cleanup

* cleanup

* patching near-operation-file preset

* cleanup

* adding duplicates case to integration tests

* Fixing bug with duplicates generated when using extractAllFieldsToTypesCompact

* cleanup

* prevent running prettier on generated code

* cleanups

* cleanup

* adding unit tests

* update changeset

* cleanups

* try resolving graphql 16 error

* remove unused deps

* remove unused deps

* cleanups

* Revert and apply minimal yarn.lock changes

---------

Co-authored-by: ikusakov <[email protected]>
Co-authored-by: Igor Kusakov <[email protected]>
Co-authored-by: Eddy Nguyen <[email protected]>
Co-authored-by: Eddy Nguyen <[email protected]>

* Various test, FIXMEs, config fixes (#10577)

* Enable TS test

* Add missing test for globalNamespace

* Ensure dev-test-apollo-tooling is private

* [typescript-operations] Cut down `avoidOptionals` to only support `object`, `inputValue` and `defaultValue` (+ minor drive-by fixes) (#10579)

* Trim down avoidOptionals for client use case

* Add changeset

* Correctly ignore dev-test from changeset

* [typescript-operations] Rename `avoidOptionals.object` to `avoidOptionals.variableValue` to better reflect the target (#10582)

* Rename avoidOptionals.object -> avoidOptionals.variableValue to better reflect the target. Add tests.

* Add default input use cases

* [typescript-operations] Fix external custom scalars not getting imported (#10584)

* Rename scalar test

* Refactor to move position of getEnumsImports to group methods

* Implement handling of external scalars

* Add (wrong) import scalar tests to work against

* Fix importing types wrongly count Scalar as part of types generated into shared type file

* Do not generate scalar imports if not needed

* Add changeset

* Cleanup

* Fix granularity of operation-file

* Improve comments, remove unused prop (#10589)

Co-authored-by: Igor Kusakov <[email protected]>

* Remove support for directiveArgumentAndInputFieldMappings (#10596)

* [CLI] Set `noSilentErrors: true` by default (#10597)

* Set noSilentErrors: true by default

* Add changeset

* Format tests

* Change generatesOperationTypes to generateOperationTypes for consistency (#10602)

* [typescript-operations] Set `namespacedImportName` default value when `importSchemaTypesFrom` is used (#10603)

* Improve namespacedImportName integration with importSchemaTypesFrom

* Update dev-test

* Update changeset

* [typescript-operations] Change default input ID scalar type (#10604)

* Ensure input and variables use the same input scalars default

* Add changeset

* chore(dependencies): updated changesets for modified dependencies

* Fix lint issue

* Fix unit tests (#10606)

* [client-preset] Update client preset doc and clean up deps (#10608)

* Remove typescript plugin from client-preset as no longer used

* Update client-preset doc

* Add changeset

* chore(dependencies): updated changesets for modified dependencies

---------

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

* chore(dependencies): updated changesets for modified dependencies

* [client-preset] Fix docs for upcoming major release (#10609)

* Fix enumValues doc issue

* fix link issues in client preset doc

* Move nonOptionalTypename and skipTypeNameForRoot together in the doc for ease of read

* chore(dependencies): updated changesets for modified dependencies

* Bring in latest near-operation-file preset (#10621)

* Master next fix native ast detection (#10637)

* Fix isNativeNamedType function

* Add changeset

* Regen dev-tests

* Rename function from collectUsedInputTypes to collectUsedSchemaTypesToGenerate to correctly reflect its functionality (#10640)

* [typescript-operations] Add warning for internal utility types (#10643)

* Add internal utility type warning

* Update snapshots

* Add changeset

* Improve internal type message

* [typescript-operations] Fix `@skip` and `@include` not applying conditional 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

* [typescript-operations] Fix @Skip and @include not applying conditional 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

* Add test case (#10647)

* [Major version release] Drop Node 20 tests for normal runs (#10648)

* 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.

* Update package deps (#10650)

* 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>

* chore(dependencies): updated changesets for modified dependencies

* Bump inquirer and improve related tests (#10651)

* 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>

* chore(dependencies): updated changesets for modified dependencies

* Add ESM changeset

* [client-preset] Make persisted docs default hashing algorithm sha256, 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 `declarationKind` support (#10654)

* typescript-operations: Add support for declarationKind option

* Drive-by: add fixme

* Add changeset

* [typesceript-operations] Refactor operations avoidOptionals and declarationKind 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

* [typescript-operations] Fix enumValues not considering namingConvention 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

* [typescript][typescript-resolvers] Fix enumValues not considering namingConvention 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

* chore(dependencies): updated changesets for modified dependencies

* Cleanup after rebase

* feat(cli): use `ESM` by default (#10705)

* feat(cli): use `ESM` by default

* Update graphql-codegen-esm to use esm/bin.js

* Remove master-next CI config

---------

Co-authored-by: Igor Kusakov <[email protected]>
Co-authored-by: Igor Kusakov <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: ikusakov <[email protected]>
Co-authored-by: Arda TANRIKULU <[email protected]>
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