Repository navigation
chore(deps): bump @graphql-tools/wrap to 11.2.1 and delegate to 12.2.1 - #11052
Merged
Merged
Conversation
delegate@12.2.0 used the graphql 16+ runtime enum `OperationTypeNode`, which breaks ESM loading on graphql 15. #11043 kept the lockfile on wrap@11.1.15 / delegate@12.0.16 to avoid it. delegate@12.2.1 fixes the enum usage (graphql-hive/gateway#2644), so move the lockfile to the fixed versions, which also run on @graphql-tools/utils@12. Refs #11044 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F5BZTuSQZvUNWqyn9FvgUo
|
opensource-fork-sync Bot
pushed a commit
to cla7aye15I4nd/opensource-dotansimha__graphql-code-generator
that referenced
this pull request
Oct 9, 2026
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
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.
Description
@graphql-tools/delegate@12.2.0importsOperationTypeNodefromgraphqlas a runtime value. GraphQL 15 only has it as a type, so loading the CLI as ESM on GraphQL 15 fails. #11043 worked around this by keeping the lockfile onwrap@11.1.15/delegate@12.0.16.delegate@12.2.1fixes it upstream: it now compares against the strings'mutation'/'subscription'(graphql-hive/gateway#2644). This PR moves the lockfile towrap@11.2.1/delegate@12.2.1and drops the #11043 pin.pnpm-lock.yamlchanges. The new delegate also pulls inbatch-execute@10.2.0,executor@2.0.3and@repeaterjs/repeater@3.1.0.wrapanddelegatenow use@graphql-tools/utils@12.0.3, which has the GHSA-7mx3-vvmw-hjmv fix.@graphql-tools/url-loader@^9'swrap@^11.1.1range now resolves to 11.2.1. Users whose lockfile already holdsdelegate@12.2.0need to update it.Related #11044
Type of change
How Has This Been Tested?
pnpm install --frozen-lockfilewith the updated lockfilepnpm types:checkpnpm build, then the@graphql-codegen/clivitest suite: 177 passed, 5 failed. The 5 failures areinitprompt snapshots that differ only in the menu arrow (❯vs>) in the local terminal. They fail the same way without this change.graphqlto 17.0.2Test Environment:
@graphql-codegen/cli: workspacemasterFurther comments
Not in this PR: bumping
@graphql-tools/url-loader'swraprange to^11.2.1in graphql-tools, so already-locked installs can't keepdelegate@12.2.0. Also not in this PR: an ESM import check under GraphQL 15 in CI.🤖 Generated with Claude Code
https://claude.ai/code/session_01F5BZTuSQZvUNWqyn9FvgUo
Generated by Claude Code