Skip to content

Update import-types-preset, apollo-angular, apollo-client-helpers and graphql-request to codegen v7 helpers - #1648

Open
yharaskrik wants to merge 1 commit into
dotansimha:mainfrom
yharaskrik:codegen-v7-deps
Open

yharaskrik wants to merge 1 commit into
dotansimha:mainfrom
yharaskrik:codegen-v7-deps

Conversation

@yharaskrik

@yharaskrik yharaskrik commented Oct 8, 2026 •

Copy link
Copy Markdown

These packages still depend on @graphql-codegen/plugin-helpers and @graphql-codegen/visitor-plugin-common v6. When they're used with v7 of @graphql-codegen/typescript-operations, the v6 and v7 visitors get mixed and the generated near-operation files break. For example, type-only fragment imports come out as import * from.

Right now the only workaround is pnpm overrides like this one:

'@graphql-codegen/import-types-preset>@graphql-codegen/plugin-helpers': 7.4.0
'@graphql-codegen/import-types-preset>@graphql-codegen/visitor-plugin-common': 7.2.7
# ...same for typescript-apollo-angular, typescript-apollo-client-helpers, typescript-graphql-request

This PR bumps the dependencies in these four packages:

  • @graphql-codegen/import-types-preset
  • @graphql-codegen/typescript-apollo-angular
  • @graphql-codegen/typescript-apollo-client-helpers
  • @graphql-codegen/typescript-graphql-request

They go to plugin-helpers@^7.4.0 and visitor-plugin-common@^7.2.7, the same as was already done for typescript-react-query and typescript-rtk-query. I've added a patch changeset. The existing tests for these packages pass without snapshot changes.

Happy to make any changes you would like so that we can get this merged and released.

… graphql-request to codegen v7 helpers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ca463a5

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

This PR includes changesets to release 4 packages
Name Type
@graphql-codegen/import-types-preset Patch
@graphql-codegen/typescript-apollo-angular Patch
@graphql-codegen/typescript-apollo-client-helpers Patch
@graphql-codegen/typescript-graphql-request 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

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