@graphql-tools/executor-http
3.6.2 · 12 Nov 2026MIT14.1M / weekRepositorynpmAtom feed
88 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 3.x · latest line
3.6.2
12 Nov 2026Reduce allocation during delegation: clone HTTP query results only when the in-flight request has multiple consumers, construct compact fresh null-prototype field metadata maps, and avoid temporary fake-promise wrappers for synchronous composite completion. Preserve shared-request isolation, metadata descriptors, and asynchronous completion behavior.
3.6.1
9 Nov 2026Dependencies updates:
@graphql-tools/executor-http@3.6.1
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/utils@^12.1.0↗︎ (from^12.0.1, independencies)
3.6.0
3 Nov 2026Add
deduplicateInflightRequestsPerContextoption to the HTTP executorWhen
true(default), inflight requests are deduplicated only within the samecontextobject. Whenfalse, identical requests are deduplicated across different contexts within the same executor.Hive Gateway's HTTP transport sets it to
falseso that identical subgraph requests coming from different clients are deduplicated.
3.5.1
2 Nov 2026Deduplicate inflight requests only within the same executor and the same
contextThe
fetchimplementation receives the requestcontextand may handle each request differently, so identical requests with different contexts or from different executors are no longer deduplicated together.
3.5.0
23 Oct 2026Support
@defer/@streamincremental delivery within schema stitching.Gateway-owned
@defer(default): deferred selections are omitted from subgraph requests (only@requires/ key dependencies are kept), so nested@defercan flush before slow fields resolve. Missing fields are filled later via type-merging or source resolvers.Subgraph-forwarded
@defer: setdefer: trueon aSubschemaConfig(ordefer: trueongetStitchedSchemaFromSupergraphSdl) to forward@deferto that subgraph and merge incremental patches viaIncrementalReceiver. Withbatch: trueandbatchingOptions.defer(orsubschema.defer), multi-request batches wrap each root selection in@deferfor subgraph compatibility; results are still collected before DataLoader waiters resolve. Single-request batches pass the AsyncIterable through so the initial payload can flush before deferred patches arrive.Hive Gateway config: extend
deferStreaminstead of a separate flag:deferStream: true // client-facing only (gateway-owned omit) deferStream: { subgraph: true } // also forward @defer to every subgraph deferStream: { subgraph: { users: true, '*': false } } // per-subgraph@graphql-tools/executor-httpaddsmergeIncremental(defaulttrue: legacy growing snapshots). SetmergeIncremental: falseto yield raw multipart parts like the default schema executor. Hive Gateway's@graphql-mesh/transport-httpalways uses passthrough (mergeIncremental: false).IncrementalReceiverprefers raw patches and cheaply tolerates accumulated snapshots (only fills missing keys). The HTTP executor preserveshasNextin accumulate mode.@streamcontinues to be forwarded on field directives as before. List streaming in@graphql-tools/delegateuses a plain async generator (no@repeaterjs/repeaterdependency).Hive Router runtime does not plan incremental delivery yet;
deferStream.subgraphapplies to the stitching federation path.
@graphql-tools/executor-http@3.5.0
Minor Changes
Support
@defer/@streamincremental delivery within schema stitching.Gateway-owned
@defer(default): deferred selections are omitted from subgraph requests (only@requires/ key dependencies are kept), so nested@defercan flush before slow fields resolve. Missing fields are filled later via type-merging or source resolvers.Subgraph-forwarded
@defer: setdefer: trueon aSubschemaConfig(ordefer: trueongetStitchedSchemaFromSupergraphSdl) to forward@deferto that subgraph and merge incremental patches viaIncrementalReceiver. Withbatch: trueandbatchingOptions.defer(orsubschema.defer), multi-request batches wrap each root selection in@deferfor subgraph compatibility; results are still collected before DataLoader waiters resolve. Single-request batches pass the AsyncIterable through so the initial payload can flush before deferred patches arrive.Hive Gateway config: extend
deferStreaminstead of a separate flag:deferStream: true // client-facing only (gateway-owned omit) deferStream: { subgraph: true } // also forward @defer to every subgraph deferStream: { subgraph: { users: true, '*': false } } // per-subgraph@graphql-tools/executor-httpaddsmergeIncremental(defaulttrue: legacy growing snapshots). SetmergeIncremental: falseto yield raw multipart parts like the default schema executor. Hive Gateway's@graphql-mesh/transport-httpalways uses passthrough (mergeIncremental: false).IncrementalReceiverprefers raw patches and cheaply tolerates accumulated snapshots (only fills missing keys). The HTTP executor preserveshasNextin accumulate mode.@streamcontinues to be forwarded on field directives as before. List streaming in@graphql-tools/delegateuses a plain async generator (no@repeaterjs/repeaterdependency).Hive Router runtime does not plan incremental delivery yet;
deferStream.subgraphapplies to the stitching federation path.
3.4.1
11 Sep 2026Release the connection when an SSE subscription is torn down
handleEventStreamResponsecalledreader.releaseLock()on normal teardown,
which detaches the reader but leaves the response body un-cancelled, so the
underlying HTTP connection was never released and the socket stayed open until
the process exited. Long-running consumers accumulated one leaked connection per
disposed subscription.It now calls
reader.cancel(), which propagates cancellation and closes the
connection. The error path already usedcancel(); only the normal path did not.Closes #2486
3.4.0
8 Sep 2026Support GraphQL 16 with @graphql-tools/utils v12
Preserves GraphQL 16 compatibility while upgrading to
@graphql-tools/utilsv12,@graphql-tools/executorv2, and the compatible@graphql-tools/schemaand@graphql-tools/mergereleases. Consumers now receive consistent resolver and execution request types without conflicts between different GraphQL Tools versions.Stitched and delegated operations handle the new executor variable result shape correctly, including variables used by directives. Resolver execution also supports the executor's cancellation and asynchronous work helpers while remaining compatible with the GraphQL 16
GraphQLResolveInfoAPI.Dependencies updates:
@graphql-tools/executor-http@3.4.0
Minor Changes
Support GraphQL 16 with @graphql-tools/utils v12
Preserves GraphQL 16 compatibility while upgrading to
@graphql-tools/utilsv12,@graphql-tools/executorv2, and the compatible@graphql-tools/schemaand@graphql-tools/mergereleases. Consumers now receive consistent resolver and execution request types without conflicts between different GraphQL Tools versions.Stitched and delegated operations handle the new executor variable result shape correctly, including variables used by directives. Resolver execution also supports the executor's cancellation and asynchronous work helpers while remaining compatible with the GraphQL 16
GraphQLResolveInfoAPI.
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/utils@^12.0.1↗︎ (from^11.0.0, independencies)
3.3.0
7 May 2026Add
useGETForHashedQueriessupport for downstream APQ requests so hash-only
query probes can use GET while full-query fallbacks continue to use POST.Add the
useContentTypeForGETRequestsopt-in for GET requests that needcontent-type: application/jsoncompatibility.
3.2.1
3 Apr 2026Do not recursively return HTTP extensions
3.2.0
3 Apr 2026Add
exposeHTTPDetailsInExtensionsflag to getResponsedetails in the result extensions.import { buildHTTPExecutor } from '@graphql-tools/executor-http'; const executor = buildHTTPExecutor({ exposeHTTPDetailsInExtensions: true, });Then in the result;
{ "data": { "hello": "world" }, "extensions": { "request": { "url": "http://localhost:4000/graphql", "method": "POST", "headers": { "content-type": "application/json" }, "body": "{\"query\":\"{ hello }\"}" }, "response": { "status": 200, "statusText": "OK", "headers": { "content-type": "application/json" } } } }
3.1.4
31 Mar 2026Prevent reusing the cached inflight requests
3.1.3
30 Mar 2026Exclude mutations for deduplication
3.1.2
30 Mar 2026Fix SSE data parsing when JSON payload contains literal "data:" substrings
The SSE event parser used
msg.split('data:')to extract the data field, which
incorrectly splits ondata:substrings inside the JSON payload (e.g., OAuth
scopes likefile_metadata:read, data URIs likedata:image/png). This causedJSON.parseto fail with "Unterminated string in JSON" errors.The fix uses line-based parsing per the SSE spec: split on newlines first, then
find the line starting withdata:.
3.1.1
15 Mar 2026Fix missing NPM provenance attestation by enabling
npmPublishProvenancein Yarn configuration
3.1.0
8 Jan 20263.0.7
19 Nov 2025Dependencies updates:
Dependencies updates:
Avoid shared AbortController instance on CloudflareWorkers because it gives
Cannot perform I/O on behalf of a different request.error.
This change ensures that the AbortController is only created when not running in a Cloudflare Workers environment.
@graphql-tools/executor-http@3.0.7
Patch Changes
Dependencies updates:
Updated dependency
@whatwg-node/fetch@^0.10.13↗︎ (from^0.10.12, independencies)
Dependencies updates:
Updated dependency
@graphql-tools/utils@^10.10.3↗︎ (from^10.10.1, independencies)
Avoid shared AbortController instance on CloudflareWorkers because it gives
Cannot perform I/O on behalf of a different request.error.
This change ensures that the AbortController is only created when not running in a Cloudflare Workers environment.
3.0.6
7 Nov 2025Dependencies updates:
Dependencies updates:
Use more specific error codes;
GATEWAY_TIMEOUT-> Server could not get a response from upstream in timeSUBREQUEST_HTTP_ERROR-> An error occurred while making the HTTP request to the upstreamRESPONSE_VALIDATION_FAILED-> The response from upstream did not conform to the expected GraphQL response format
@graphql-tools/executor-http@3.0.6
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/utils@^10.10.1↗︎ (from^10.9.1, independencies)Updated dependency
@whatwg-node/fetch@^0.10.12↗︎ (from^0.10.11, independencies)
Dependencies updates:
Updated dependency
@graphql-tools/utils@^10.10.1↗︎ (from^10.10.0, independencies)Updated dependency
@whatwg-node/fetch@^0.10.12↗︎ (from^0.10.11, independencies)
Use more specific error codes;
GATEWAY_TIMEOUT-> Server could not get a response from upstream in timeSUBREQUEST_HTTP_ERROR-> An error occurred while making the HTTP request to the upstreamRESPONSE_VALIDATION_FAILED-> The response from upstream did not conform to the expected GraphQL response format
3.0.5
1 Nov 2025Dependencies updates:
@graphql-tools/executor-http@3.0.5
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/utils@^10.10.0↗︎ (from^10.9.1, independencies)
3.0.4
23 Sep 2025Dependencies updates:
3.0.0 – 3.0.34 releases with no change for you1 dependency update, 3 without a note@graphql-tools/executor-common 1.0.2Show each
- 3.0.319 Sep 2025@graphql-tools/executor-common 1.0.2
- 3.0.215 Sep 2025no note
- 3.0.16 Sep 2025no note
- 3.0.04 Sep 2025no note
- 2.x
- 1.x
1.1.8 – 1.3.320 releases without a noteShow each
- 1.3.37 Apr 2025no note
- 1.3.225 Mar 2025no note
- 1.3.120 Mar 2025no note
- 1.3.011 Mar 2025no note
- 1.2.823 Feb 2025no note
- 1.2.713 Feb 2025no note
- 1.2.66 Feb 2025no note
- 1.2.515 Jan 2025no note
- 1.2.42 Jan 2025no note
- 1.2.326 Dec 2024no note
- 1.2.224 Dec 2024no note
- 1.2.113 Dec 2024no note
- 1.2.012 Dec 2024no note
- 1.1.146 Dec 2024no note
- 1.1.135 Dec 2024no note
- 1.1.124 Dec 2024no note
- 1.1.1129 Nov 2024no note
- 1.1.1027 Nov 2024no note
- 1.1.913 Nov 2024no note
- 1.1.88 Nov 2024no note
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.