@graphql-tools/batch-execute
10.3.2 · 9 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 87 releases- 10.x · latest line
10.3.2
9 Nov 2026Dependencies updates:
10.3.1
2 Nov 2026Batch only requests that share the same
contextincreateBatchingExecutor
10.3.0
23 Oct 2026Execution cancellation on batched requests
When using Batched Execution, it is now possible to cancel the entire batched request if all individual requests'
AbortSignals are aborted. This enhancement improves resource management and responsiveness in applications that utilize batched GraphQL operations.Previously, aborting individual requests did not affect the batched request. With this update, if all individual requests signal an abort, the batched request will also be aborted, ensuring that unnecessary processing is avoided.
This feature is implemented using the new utility function
abortSignalAll, which combines multipleAbortSignalinstances into a single signal. If all of the individual signals are aborted, the combined signal will also be aborted, allowing for more efficient cancellation handling in batched operations.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.Dependencies updates:
@graphql-tools/batch-execute@10.3.0
Minor Changes
Execution cancellation on batched requests
When using Batched Execution, it is now possible to cancel the entire batched request if all individual requests'
AbortSignals are aborted. This enhancement improves resource management and responsiveness in applications that utilize batched GraphQL operations.Previously, aborting individual requests did not affect the batched request. With this update, if all individual requests signal an abort, the batched request will also be aborted, ensuring that unnecessary processing is avoided.
This feature is implemented using the new utility function
abortSignalAll, which combines multipleAbortSignalinstances into a single signal. If all of the individual signals are aborted, the combined signal will also be aborted, allowing for more efficient cancellation handling in batched operations.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.
Patch Changes
Dependencies updates:
Added dependency
@graphql-hive/signal@^2.0.0↗︎ (todependencies)
Use semver dependencies matched by minor
Dependency tracking
Know when your own dependencies move
@graphql-tools/batch-execute published 10 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 19 Nov 2026. Releases and advisories last read 19 Nov 2026.
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.