-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[typescript-operations/client-preset] Next major version #10496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
eddeee888
wants to merge
17
commits into
master
Choose a base branch
from
master-next
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,632
−26,194
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🦋 Changeset detectedLatest commit: 99ab3a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
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 |
Contributor
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-codegen/cli |
6.0.3-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/introspection |
5.0.1-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/visitor-plugin-common |
7.0.0-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
5.0.5-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
5.0.6-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
6.0.0-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
5.1.3-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
6.1.3-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
6.0.0-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
6.0.0-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
5.0.6-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 |
npm ↗︎ unpkg ↗︎ |
This was referenced Nov 15, 2025
ecee891 to
f999b72
Compare
* 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
2 tasks
* [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]>
2 tasks
…ring 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
2 tasks
…les (#10508) * Collect used enums * Use enum converter for Enum * Add changeset * Add doc * Update dev tests * Fix return type issue
2 tasks
2 tasks
…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
2 tasks
3 tasks
…ned+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
…tions 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)
3 tasks
… conditional (#10548) * Fix types issues and put comments * Handle avoidOptionals * Update integration tests * Add FIXME to pass test for now * Add changeset
* 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]>
…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
3 tasks
… on `typescript` plugin (`preResolveTypes: false`) (#10556) * Remove legacy selection set proccessor that depends on typescript plugin * Remove obsolete tests * Improve tests to be explicit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the feature branch for #10479
Checklist
typescript-operations
[typescript-operations] Generate
Exactinto target file #10504 @eddeee888[typescript-operations] Remove inputmaybe and scalars #10509 @ikusakov2
Generate Enum used in Variables into target file @eddeee888
visitor-plugin-common#10520Generate input types and output enums into target file #10527 @ikusakov2
[typescript-operations] Add generatesOperationTypes config option #10529 @eddeee888
[typescript-operations] Add importSchemaTypesFrom to import user-defined+used input/enum types externally #10534 @eddeee888
[typescript-operations] No optional Result fields, unless deferred or conditional #10548 @eddeee888
[typescript-operations] Fix __typename optionality and nullability #10552 @eddeee888
[typescript-operations] Clean up selection set processor that depends on
typescriptplugin (preResolveTypes: false) #10556Remove
skipTypenameoption for operations pluginUtility type audit:
Incrementalutility type is required in some cases. Must keep inoperations.Maybeutility type was used inpreResolverTypes: false. Should remove fromoperations.MakeOptionalutility type was used inpreResolverTypes: false. Should remove fromoperationsandtypescriptpluginsMakeEmptywas used inpreResolverTypes: false. Should remove fromoperationsandtypescriptpluginsunknownTODO:
config.addOperationExportconfig.globalNamespacedirectiveArgumentAndInputFieldMappingsis neededtypescriptandtypescript-operations'sInputValueDefinitionclient-preset
Verify fixes
extractAllFieldsToTypeshandling of nested interfaces in type names #10502