Packages

@graphql-tools/executor-http

3.6.2 · 12 Nov 2026MIT14.1M / weekRepositorynpmAtom feed

Your version

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

  1. 3.x · latest line
  2. 3.6.2

    12 Nov 2026
    • Reduce 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. 3.6.1

    9 Nov 2026
    • Dependencies updates:

  4. 3.6.0

    3 Nov 2026
    • Add deduplicateInflightRequestsPerContext option to the HTTP executor

      When true (default), inflight requests are deduplicated only within the same context object. When false, identical requests are deduplicated across different contexts within the same executor.

      Hive Gateway's HTTP transport sets it to false so that identical subgraph requests coming from different clients are deduplicated.

  5. 3.5.1

    2 Nov 2026
    • Deduplicate inflight requests only within the same executor and the same context

      The fetch implementation receives the request context and may handle each request differently, so identical requests with different contexts or from different executors are no longer deduplicated together.

  6. 3.5.0

    23 Oct 2026
    • 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.

  7. 3.4.1

    11 Sep 2026
    • Release the connection when an SSE subscription is torn down

      handleEventStreamResponse called reader.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 used cancel(); only the normal path did not.

      Closes #2486

  8. 3.4.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:

  9. 3.3.0

    7 May 2026
    • Add useGETForHashedQueries support for downstream APQ requests so hash-only
      query probes can use GET while full-query fallbacks continue to use POST.

      Add the useContentTypeForGETRequests opt-in for GET requests that need
      content-type: application/json compatibility.

  10. 3.2.1

    3 Apr 2026
    • Do not recursively return HTTP extensions

  11. 3.2.0

    3 Apr 2026
    • Add exposeHTTPDetailsInExtensions flag to get Response details 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"
                  }
              }
          }
      }
  12. 3.1.4

    31 Mar 2026
    • Prevent reusing the cached inflight requests

  13. 3.1.3

    30 Mar 2026
    • Exclude mutations for deduplication

  14. 3.1.2

    30 Mar 2026
    • Fix 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 on data: substrings inside the JSON payload (e.g., OAuth
      scopes like file_metadata:read, data URIs like data:image/png). This caused
      JSON.parse to 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 with data:.

  15. 3.1.1

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

  16. 3.1.0

    8 Jan 2026
  17. 3.0.7

    19 Nov 2025
    • Dependencies 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.

  18. 3.0.6

    7 Nov 2025
    • Dependencies updates:

    • Dependencies updates:

    • Use more specific error codes;

      GATEWAY_TIMEOUT -> Server could not get a response from upstream in time
      SUBREQUEST_HTTP_ERROR -> An error occurred while making the HTTP request to the upstream
      RESPONSE_VALIDATION_FAILED -> The response from upstream did not conform to the expected GraphQL response format

  19. 3.0.5

    1 Nov 2025
    • Dependencies updates:

  20. 3.0.4

    23 Sep 2025
    • Dependencies updates:

  21. 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
  22. 2.x
  23. 2.0.0 – 2.1.27 releases without a noteShow each
  24. 1.x
  25. 1.1.8 – 1.3.320 releases without a noteShow 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.