Skip to content

chore(deps): upgrade graphql-codegen to v7#332

Merged
bennypowers merged 1 commit into
mainfrom
chore/upgrade-graphql-codegen-v7
Jun 10, 2026
Merged

chore(deps): upgrade graphql-codegen to v7#332
bennypowers merged 1 commit into
mainfrom
chore/upgrade-graphql-codegen-v7

Conversation

@bennypowers

Copy link
Copy Markdown
Member

Summary

  • Upgrade @graphql-codegen/cli from ^6.0.0 to ^7.1.2
  • Upgrade @graphql-codegen/typed-document-node from ^6.0.1 to ^7.0.3
  • Upgrade @graphql-codegen/typescript from ^5.0.1 to ^6.0.2
  • Upgrade @graphql-codegen/typescript-operations from ^5.0.1 to ^6.0.3

Generated types changed shape in v7: fields are now non-optional (nullable via union with null instead), __typename dropped. Two test fixes required:

  • Add missing name: null in partial cache write test (field now required)
  • Cast fetchMore result to match narrower generated types

Verification

  • npm run build:codegen succeeds
  • Generated types compile with tsc
  • npm run build completes
  • npm run lint passes
  • npm test passes (1909/1909)

Closes #321

- @graphql-codegen/cli ^6.0.0 -> ^7.1.2
- @graphql-codegen/typed-document-node ^6.0.1 -> ^7.0.3
- @graphql-codegen/typescript ^5.0.1 -> ^6.0.2
- @graphql-codegen/typescript-operations ^5.0.1 -> ^6.0.3

Generated types changed shape: fields are now non-optional (nullable via
union with null instead), `__typename` dropped. Two test fixes:
- Add missing `name: null` in partial cache write test
- Cast fetchMore result to match narrower generated types

Closes #321

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 28754c1

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

@bennypowers
bennypowers merged commit 3dbe3c1 into main Jun 10, 2026
1 check passed
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for apollo-elements ready!

Name Link
🔨 Latest commit 28754c1
🔍 Latest deploy log https://app.netlify.com/projects/apollo-elements/deploys/6a2978eb8ae35e00080c8191
😎 Deploy Preview https://deploy-preview-332--apollo-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bennypowers
bennypowers deleted the chore/upgrade-graphql-codegen-v7 branch July 22, 2026 07:02
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.

chore(deps): upgrade graphql-codegen to v7

1 participant