Packages

@graphql-tools/batch-execute

10.3.2 · 9 Nov 2026MIT15.5M / weekRepositorynpmAtom feed

Your version

87 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 10.x · latest line
  2. 10.3.2

    9 Nov 2026
    • Dependencies updates:

  3. 10.3.1

    2 Nov 2026
    • Batch only requests that share the same context in createBatchingExecutor

  4. 10.3.0

    23 Oct 2026
    • 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 multiple AbortSignal instances 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 / @stream incremental delivery within schema stitching.

      Gateway-owned @defer (default): deferred selections are omitted from subgraph requests (only @requires / key dependencies are kept), so nested @defer can flush before slow fields resolve. Missing fields are filled later via type-merging or source resolvers.

      Subgraph-forwarded @defer: set defer: true on a SubschemaConfig (or defer: true on getStitchedSchemaFromSupergraphSdl) to forward @defer to that subgraph and merge incremental patches via IncrementalReceiver. With batch: true and batchingOptions.defer (or subschema.defer), multi-request batches wrap each root selection in @defer for 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 deferStream instead 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-http adds mergeIncremental (default true: legacy growing snapshots). Set mergeIncremental: false to yield raw multipart parts like the default schema executor. Hive Gateway's @graphql-mesh/transport-http always uses passthrough (mergeIncremental: false).

      IncrementalReceiver prefers raw patches and cheaply tolerates accumulated snapshots (only fills missing keys). The HTTP executor preserves hasNext in accumulate mode.

      @stream continues to be forwarded on field directives as before. List streaming in @graphql-tools/delegate uses a plain async generator (no @repeaterjs/repeater dependency).

      Hive Router runtime does not plan incremental delivery yet; deferStream.subgraph applies to the stitching federation path.

    • Dependencies updates:

  5. 10.2.0

    8 Sep 2026
    • Support GraphQL 16 with @graphql-tools/utils v12

      Preserves GraphQL 16 compatibility while upgrading to @graphql-tools/utils v12, @graphql-tools/executor v2, and the compatible @graphql-tools/schema and @graphql-tools/merge releases. 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 GraphQLResolveInfo API.

    • Dependencies updates:

  6. 10.1.0

    7 Sep 2026
    • Fixes #1288.

      Per the GraphQL spec a non-nullable field returning null should propagate to the parent, in this case it should propagate to data.
      Batched sub-requests share one merged document so null should propagate to every result and not just the one whose fields actually failed.

  7. 10.0.9

    3 Jul 2026
    • Fix DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array thrown when a batched subgraph response omits some of the merged sub-requests.

      splitResult builds new Array(numResults) and only assigns the indices present in the merged response's data/errors. When a subgraph answers only some of the batched operations — returning neither a data key nor a path-scoped error for the rest — those slots stay holes. A hole at the trailing slot fails DataLoader's isArrayLike check (which requires hasOwnProperty(length - 1)) even though Array.isArray is true, so the batching executor's DataLoader throws. The result is now densified to numResults, filling any missing slot with an empty ExecutionResult.

      This mirrors the sibling fix for @graphql-tools/batch-delegate in #2393.

  8. 10.0.8

    3 Apr 2026
    • Inherit operationName, operationType, context, info, and subgraphName from any available request in the batch.
      If operationName is not defined, it will be inherited from the operation itself, if it has a name.

  9. 10.0.7

    16 Mar 2026
    • Add automatic batching to SDK requester

  10. 10.0.6

    15 Mar 2026
    • Fix missing NPM provenance attestation by enabling npmPublishProvenance in Yarn configuration

  11. 10.0.5

    8 Jan 2026
    • Dependencies updates:

  12. 10.0.4

    19 Nov 2025
    • Dependencies updates:

  13. 10.0.3

    7 Nov 2025
    • Dependencies updates:

    • Dependencies updates:

  14. 10.0.2

    1 Nov 2025
    • Dependencies updates:

  15. 10.0.1

    15 Sep 2025
    • Dependencies updates:

  16. 10.0.0

    4 Sep 2025
    • Breaking

      Drop Node 18 support

      Least supported Node version is now v20.

    • Fixed subgraph name being lost when execution requests get batched together.

  17. 9.x
  18. 9.0.19

    1 Aug 2025
    • Dependencies updates:

  19. 9.0.18

    23 Jul 2025
    • Dependencies updates:

  20. 9.0.17

    2 Jun 2025
    • Small improvements on usage of promise helpers

  21. 9.0.16

    16 May 2025
    • Spread sync errors into an array with the same size of the requests to satisfy underlying DataLoader implementation to throw the error correctly

  22. 9.0.15

    25 Mar 2025
    • Dependencies updates:

  23. 9.0.14

    20 Mar 2025
    • Dependencies updates:

  24. 9.0.13

    11 Mar 2025
    • Dependencies updates:

  25. 9.0.12

    13 Feb 2025
    • Dependencies updates:

  26. 9.0.11

    24 Dec 2024
    • Dependencies updates:

  27. 9.0.10

    6 Dec 2024
    • Dependencies updates:

  28. 9.0.9

    4 Dec 2024
    • Dependencies updates:

    • Dependencies updates:

  29. 9.0.8

    2 Dec 2024
    • Fix the issue that batched query generation when optional variables are not prefixed and sent correctly.

      See the use case below;

      When two batched queries are sent like below;

      query TestOne($someOptionalVar: String) {
        foo(someOptionalArg: $someOptionalVar) {
          id
          name
        }
      }
      query TestTwo($someOptionalVar: String) {
        foo(someOptionalArg: $someOptionalVar) {
          id
          name
        }
      }

      And then someOptionalVar is not prefixed if the value is not sent by the user. The batched queries will be sent as below, then it will cause issues.

      query TestOneTwo($someOptionalVar: String, $someOptionalVar: String) {
        _0_foo: foo(someOptionalArg: $someOptionalVar) {
          id
          name
        }
        _1_foo: foo(someOptionalArg: $someOptionalVar) {
          id
          name
        }
      }
  30. 9.0.7

    27 Nov 2024
    • Dependencies updates:

    • Dependencies updates:

    • Dependencies updates:

  31. 9.0.5 – 9.0.62 releases with no change for you1 dependency update, 1 without a note@graphql-tools/utils 10.5.5Show each
  32. 9.0.4

    23 Feb 2024
  33. 9.0.3

    20 Feb 2024
  34. 9.0.2

    23 Aug 2023
  35. 9.0.1

    9 Aug 2023

    Only updates a dependency:@graphql-tools/utils 10.0.5

  36. 9.0.0

    19 May 2023
  37. 8.x
  38. 8.5.22

    27 Apr 2023
  39. 8.5.21

    24 Apr 2023
  40. 8.5.20

    23 Apr 2023
  41. 8.5.19

    13 Apr 2023
  42. 8.5.18

    14 Feb 2023
  43. 8.5.17

    6 Feb 2023
  44. 8.5.16

    1 Feb 2023

    Only updates a dependency:@graphql-tools/utils 9.2.0

  45. 8.5.15

    12 Jan 2023
  46. 8.5.8 – 8.5.147 releases that only update dependencies@graphql-tools/utils 9.1.3Show each

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.