@graphql-tools/executor-graphql-ws
3.2.2 · 17 Nov 2026MIT14.6M / weekRepositorynpmAtom feed
In short
1 fixed2 internal
Release note
The section about @graphql-tools/executor-graphql-ws of a note shared by several packages.
Patch Changes
Dependencies updates:
Added dependency
@graphql-tools/executor-common@workspace:^↗︎ (todependencies)
This is a bugfix with some internal changes, no user action is needed. This bugfix and improvement is done to improve the stability of some components of the gateway;
Like HMAC Upstream Signature plugin, different components of the gateway were using different ways of serializing the execution request.
Some of them were ignoringvariablesif it is empty, some of not, this was causing the signature generation to be different for the same query.
For example, it was working as expected in Proxy mode, but not working as expected in Federation Gateway mode.With this change, now we have a shared helper to serialize the upstream execution request with a memoized
printfunction for query AST etc to have a consistent serialization so consistent signature generation for HMAC.For example instead of using
print, you should usedefaultPrintFnthat memoizesprintoperation and also used the string version of it parsed before by Envelop/Yoga.-import { print } from 'graphql'; -const query = print(parsedQuery); +import { defaultPrintFn } from '@graphql-tools/executor-common'; +const query = defaultPrintFn(parsedQuery);Or instead of creating objects from
ExecutionRequest, useserializeExecutionRequesthelper.-const serializedRequest = { - query: print(executionRequest.document), - variables: executionRequest.variables, - operationName: executionRequest.operationName, - extensions: executionRequest.extensions, -}; +import { serializeExecutionRequest } from '@graphql-tools/executor-common'; +const serializedRequest = serializeExecutionRequest(executionRequest);
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.