Releases: graphql-hive/gateway
January 02, 2025
@graphql-hive/gateway-abort-signal-any@0.0.3
Patch Changes
-
#401
c60a8f4
Thanks @ardatan! - dependencies updates:- Updated dependency
graphql@^15.0.0 || ^16.9.0 || ^17.0.0
↗︎ (from^16.9.0 || ^17.0.0
, inpeerDependencies
)
- Updated dependency
@graphql-tools/batch-delegate@9.0.27
Patch Changes
-
#396
da65b2d
Thanks @ardatan! - Memoize the key arguments correctly;With the following schema and resolvers,
userById
should batch all the requests tousersByIds
;{ typeDefs: /* GraphQL */ ` type User { id: ID! email: String! } type Query { userById(id: ID!): User usersByIds(ids: [ID!]): [User] } `, resolvers: { Query: { usersByIds: (_root, args) => { return args.ids.map((id: string) => users.find((user) => user.id === id)); }, userById: (root, args, context, info) => { return batchDelegateToSchema({ schema: userSubschema, fieldName: 'usersByIds', key: args.id, rootValue: root, context, info, }) }, }, }, }
This query should batch all the requests to
usersByIds
:{ userById(id: "1") { id email } userById(id: "2") { id email } }
The delegation request should be;
{ usersByIds(ids: ["1", "2"]) { id email } }
@graphql-tools/executor-http@1.2.4
Patch Changes
- Updated dependencies [
c60a8f4
]:- @graphql-hive/gateway-abort-signal-any@0.0.3
@graphql-tools/federation@3.0.7
Patch Changes
-
#387
3571399
Thanks @ardatan! - In case of shared root field on Mutation, it was batched incorrectly across subgraphs. But instead only one mutation should be called as mutations should not be parallel -
Updated dependencies []:
- @graphql-tools/executor-http@1.2.4
- @graphql-tools/stitch@9.4.13
@graphql-mesh/fusion-runtime@0.10.27
Patch Changes
- Updated dependencies [
3571399
]:- @graphql-tools/federation@3.0.7
- @graphql-mesh/transport-common@0.7.26
- @graphql-tools/stitch@9.4.13
@graphql-hive/gateway@1.7.6
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.6
- @graphql-mesh/transport-http@0.6.30
- @graphql-mesh/plugin-opentelemetry@1.3.34
- @graphql-mesh/plugin-prometheus@1.3.22
- @graphql-mesh/transport-http-callback@0.5.17
- @graphql-mesh/transport-ws@0.4.15
- @graphql-mesh/hmac-upstream-signature@1.2.19
@graphql-mesh/plugin-opentelemetry@1.3.34
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.6
- @graphql-mesh/transport-common@0.7.26
@graphql-mesh/plugin-prometheus@1.3.22
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.6
@graphql-hive/gateway-runtime@1.4.6
Patch Changes
- Updated dependencies [
c60a8f4
,3571399
,da65b2d
]:- @graphql-hive/gateway-abort-signal-any@0.0.3
- @graphql-tools/federation@3.0.7
- @graphql-tools/batch-delegate@9.0.27
- @graphql-tools/executor-http@1.2.4
- @graphql-mesh/transport-common@0.7.26
- @graphql-mesh/fusion-runtime@0.10.27
- @graphql-tools/stitch@9.4.13
- @graphql-mesh/hmac-upstream-signature@1.2.19
@graphql-tools/stitch@9.4.13
Patch Changes
- Updated dependencies [
da65b2d
]:- @graphql-tools/batch-delegate@9.0.27
@graphql-mesh/transport-common@0.7.26
Patch Changes
- Updated dependencies [
c60a8f4
]:- @graphql-hive/gateway-abort-signal-any@0.0.3
@graphql-mesh/transport-http@0.6.30
Patch Changes
- Updated dependencies []:
- @graphql-tools/executor-http@1.2.4
- @graphql-mesh/transport-common@0.7.26
@graphql-mesh/transport-http-callback@0.5.17
Patch Changes
- Updated dependencies []:
- @graphql-mesh/transport-common@0.7.26
@graphql-mesh/transport-ws@0.4.15
Patch Changes
- Updated dependencies []:
- @graphql-mesh/transport-common@0.7.26
hive-gateway@1.7.6
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.6 release.
December 31, 2024
@graphql-tools/batch-delegate@9.0.26
Patch Changes
-
#382
21e1f05
Thanks @ardatan! - Memoize the batched delegation loader by respecting the arguments correctly
@graphql-tools/federation@3.0.6
Patch Changes
- Updated dependencies []:
- @graphql-tools/stitch@9.4.12
@graphql-mesh/fusion-runtime@0.10.26
Patch Changes
- Updated dependencies []:
- @graphql-tools/stitch@9.4.12
- @graphql-tools/federation@3.0.6
@graphql-mesh/plugin-prometheus@1.3.21
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.5
December 26, 2024
@graphql-tools/executor-common@0.0.1
Patch Changes
-
#381
55eb1b4
Thanks @ardatan! - 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 ignoringvariables
if 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
print
function for query AST etc to have a consistent serialization so consistent signature generation for HMAC.For example instead of using
print
, you should usedefaultPrintFn
that memoizesprint
operation 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
, useserializeExecutionRequest
helper.-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);
@graphql-tools/executor-graphql-ws@1.3.7
Patch Changes
-
#381
55eb1b4
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-tools/executor-common@workspace:^
↗︎ (todependencies
)
- Added dependency
-
#381
55eb1b4
Thanks @ardatan! - 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 ignoringvariables
if 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
print
function for query AST etc to have a consistent serialization so consistent signature generation for HMAC.For example instead of using
print
, you should usedefaultPrintFn
that memoizesprint
operation 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
, useserializeExecutionRequest
helper.-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);
-
Updated dependencies [
55eb1b4
]:- @graphql-tools/executor-common@0.0.1
@graphql-tools/executor-http@1.2.3
Patch Changes
-
#381
55eb1b4
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-tools/executor-common@workspace:^
↗︎ (todependencies
)
- Added dependency
-
#381
55eb1b4
Thanks @ardatan! - 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 ignoringvariables
if 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
print
function for query AST etc to have a consistent serialization so consistent signature generation for HMAC.For example instead of using
print
, you should usedefaultPrintFn
that memoizesprint
operation 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
, useserializeExecutionRequest
helper.-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);
-
Updated dependencies [
55eb1b4
]:- @graphql-tools/executor-common@0.0.1
@graphql-tools/federation@3.0.5
Patch Changes
@graphql-mesh/fusion-runtime@0.10.25
Patch Changes
- Updated dependencies [
55eb1b4
,55eb1b4
]:- @graphql-mesh/transport-common@0.7.25
- @graphql-tools/federation@3.0.5
@graphql-hive/gateway@1.7.4
Patch Changes
- Updated dependencies [
55eb1b4
,55eb1b4
,55eb1b4
]:- @graphql-mesh/hmac-upstream-signature@1.2.19
- @graphql-mesh/transport-http-callback@0.5.16
- @graphql-mesh/transport-http@0.6.29
- @graphql-mesh/transport-ws@0.4.14
- @graphql-hive/gateway-runtime@1.4.4
- @graphql-mesh/plugin-opentelemetry@1.3.32
- @graphql-mesh/plugin-prometheus@1.3.20
@graphql-mesh/hmac-upstream-signature@1.2.19
Patch Changes
-
#381
55eb1b4
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-tools/executor-common@workspace:^
↗︎ (todependencies
) - Removed dependency
@graphql-mesh/transport-common@workspace:^
↗︎ (fromdependencies
)
- Added dependency
-
#381
55eb1b4
Thanks @ardatan! - 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 ignoringvariables
if 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 chan...
hive-gateway@1.7.4
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.4 release.
December 24, 2024
@graphql-hive/gateway-abort-signal-any@0.0.2
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-tools/utils@^10.7.0
↗︎ (todependencies
) - Added dependency
graphql@^16.9.0 || ^17.0.0
↗︎ (topeerDependencies
)
- Added dependency
-
#373
e606975
Thanks @ardatan! - UseregisterAbortSignalListener
helper function to register event listeners toAbortSignal
instances to avoid warning on Node.js like
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 abort listeners added. Use emitter.setMaxListeners() to increase limit
.
@graphql-tools/batch-delegate@9.0.25
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
Updated dependencies [
e606975
]:- @graphql-tools/delegate@10.2.9
@graphql-tools/batch-execute@9.0.11
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
@graphql-tools/delegate@10.2.9
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.3.10
↗︎ (from^1.3.8
, independencies
) - Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
Updated dependencies [
e606975
]:- @graphql-tools/batch-execute@9.0.11
@graphql-tools/executor-graphql-ws@1.3.6
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
@graphql-tools/executor-http@1.2.2
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
#367
15975c2
Thanks @ardatan! - Fix the combination ofupstreamRetry
andupstreamTimeout
togetherWhen you use
upstreamRetry
andupstreamTimeout
together, theupstreamRetry
wasn't applied properly when the request is timed out withupstreamTimeout
. -
Updated dependencies [
e606975
,e606975
]:- @graphql-hive/gateway-abort-signal-any@0.0.2
@graphql-tools/federation@3.0.4
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
Updated dependencies [
e606975
,e606975
,e606975
,e606975
,15975c2
]:- @graphql-tools/delegate@10.2.9
- @graphql-tools/executor-http@1.2.2
- @graphql-tools/stitch@9.4.11
- @graphql-tools/wrap@10.0.27
@graphql-mesh/fusion-runtime@0.10.24
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.3.10
↗︎ (from^1.3.6
, independencies
) - Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
#367
15975c2
Thanks @ardatan! - Fix the combination ofupstreamRetry
andupstreamTimeout
togetherWhen you use
upstreamRetry
andupstreamTimeout
together, theupstreamRetry
wasn't applied properly when the request is timed out withupstreamTimeout
. -
Updated dependencies [
e606975
,e606975
,e606975
,e606975
,e606975
,e606975
,15975c2
]:- @graphql-mesh/transport-common@0.7.24
- @graphql-tools/delegate@10.2.9
- @graphql-tools/federation@3.0.4
- @graphql-tools/stitch@9.4.11
- @graphql-tools/stitching-directives@3.1.24
- @graphql-tools/wrap@10.0.27
@graphql-hive/gateway@1.7.3
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
Updated dependencies [
e606975
,e606975
,e606975
,e606975
,e606975
,e606975
,e606975
,15975c2
,e606975
]:- @graphql-hive/gateway-runtime@1.4.3
- @graphql-mesh/hmac-upstream-signature@1.2.18
- @graphql-mesh/plugin-opentelemetry@1.3.31
- @graphql-mesh/plugin-prometheus@1.3.19
- @graphql-mesh/transport-http@0.6.28
- @graphql-mesh/transport-http-callback@0.5.15
- @graphql-mesh/transport-ws@0.4.13
@graphql-mesh/hmac-upstream-signature@1.2.18
Patch Changes
-
#373
e606975
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.7.0
↗︎ (from^10.6.2
, independencies
)
- Updated dependency
-
U...
December 24, 2024
@graphql-mesh/fusion-runtime@0.10.23
Patch Changes
-
#357
8b64103
Thanks @ardatan! - Fix the bug on setting the default polling interval to 10 seconds
So by default, the gateway will poll the schema every 10 seconds, and update the schema if it has changed.This PR also contains improvements on logging about polling
@graphql-hive/gateway@1.7.2
Patch Changes
-
#357
8b64103
Thanks @ardatan! - Fix the bug on setting the default polling interval to 10 seconds
So by default, the gateway will poll the schema every 10 seconds, and update the schema if it has changed.This PR also contains improvements on logging about polling
-
#342
2f59fce
Thanks @ardatan! - Respect both registry token from CLI arguments and the configuration in the `gateway.config`User can provide the token in the CLI arguments, and have some registry configuration in `gateway.config`
-
Updated dependencies [
7a1877a
,8b64103
,122c013
,2f59fce
]:- @graphql-mesh/plugin-opentelemetry@1.3.30
- @graphql-hive/gateway-runtime@1.4.2
- @graphql-mesh/hmac-upstream-signature@1.2.17
- @graphql-mesh/plugin-prometheus@1.3.18
@graphql-mesh/plugin-opentelemetry@1.3.30
Patch Changes
-
#352
7a1877a
Thanks @renovate! - dependencies updates:- Updated dependency
@opentelemetry/exporter-trace-otlp-grpc@^0.57.0
↗︎ (from^0.56.0
, independencies
) - Updated dependency
@opentelemetry/exporter-trace-otlp-http@^0.57.0
↗︎ (from^0.56.0
, independencies
) - Updated dependency
@opentelemetry/instrumentation@^0.57.0
↗︎ (from^0.56.0
, independencies
)
- Updated dependency
-
Updated dependencies [
8b64103
,122c013
,2f59fce
]:- @graphql-hive/gateway-runtime@1.4.2
@graphql-mesh/plugin-prometheus@1.3.18
Patch Changes
@graphql-hive/gateway-runtime@1.4.2
Patch Changes
-
#357
8b64103
Thanks @ardatan! - Fix the bug on setting the default polling interval to 10 seconds
So by default, the gateway will poll the schema every 10 seconds, and update the schema if it has changed.This PR also contains improvements on logging about polling
-
#356
122c013
Thanks @ardatan! - Better messages on debug logs of readiness check endpoint;Before;
On successful readiness check, the gateway was logging the following message:Readiness check passed: Supergraph loaded
Because this makes the users think it was just loaded.
After;
On successful readiness check, the gateway will log the following message:Readiness check passed because supergraph has been loaded already
On failed readiness check, the gateway was logging the following message:
Before;Readiness check failed: Supergraph not loaded
It should make the users think it was not loaded or there is an issue with the supergraph.
After;
Readiness check failed because supergraph has not been loaded yet or failed to load
-
#342
2f59fce
Thanks @ardatan! -token
doesn't need to be required for Hive reporting in the configuration because it can be provided by the arguments -
Updated dependencies [
8b64103
]:- @graphql-mesh/fusion-runtime@0.10.23
- @graphql-mesh/hmac-upstream-signature@1.2.17
hive-gateway@1.7.3
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.3 release.
hive-gateway@1.7.2
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.2 release.
December 14, 2024
@graphql-tools/federation@3.0.3
Patch Changes
-
#333
0d81307
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-yoga/typed-event-target@^3.0.1
↗︎ (from^3.0.0
, independencies
)
- Updated dependency
@graphql-mesh/fusion-runtime@0.10.22
Patch Changes
-
#333
0d81307
Thanks @renovate! - dependencies updates:- Updated dependency
graphql-yoga@^5.10.6
↗︎ (from^5.10.4
, independencies
)
- Updated dependency
-
Updated dependencies [
0d81307
]:- @graphql-tools/federation@3.0.3
@graphql-hive/gateway@1.7.1
Patch Changes
-
#333
0d81307
Thanks @renovate! - dependencies updates:- Updated dependency
graphql-yoga@^5.10.6
↗︎ (from^5.10.4
, independencies
)
- Updated dependency
-
Updated dependencies [
0d81307
,0d81307
]:- @graphql-hive/gateway-runtime@1.4.1
- @graphql-mesh/plugin-prometheus@1.3.17
- @graphql-mesh/hmac-upstream-signature@1.2.17
- @graphql-mesh/plugin-opentelemetry@1.3.29
@graphql-mesh/plugin-opentelemetry@1.3.29
Patch Changes
- Updated dependencies [
0d81307
]:- @graphql-hive/gateway-runtime@1.4.1
@graphql-mesh/plugin-prometheus@1.3.17
Patch Changes
-
#333
0d81307
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-yoga/plugin-prometheus@^6.5.3
↗︎ (from^6.5.0
, independencies
) - Updated dependency
graphql-yoga@^5.10.6
↗︎ (from^5.10.4
, inpeerDependencies
)
- Updated dependency
-
Updated dependencies [
0d81307
]:- @graphql-hive/gateway-runtime@1.4.1
@graphql-hive/gateway-runtime@1.4.1
Patch Changes
-
#333
0d81307
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-yoga/plugin-apollo-usage-report@^0.5.3
↗︎ (from^0.5.0
, independencies
) - Updated dependency
@graphql-yoga/plugin-csrf-prevention@^3.10.6
↗︎ (from^3.7.0
, independencies
) - Updated dependency
@graphql-yoga/plugin-defer-stream@^3.10.6
↗︎ (from^3.7.0
, independencies
) - Updated dependency
@graphql-yoga/plugin-persisted-operations@^3.10.6
↗︎ (from^3.7.0
, independencies
) - Updated dependency
graphql-yoga@^5.10.6
↗︎ (from^5.10.4
, independencies
)
- Updated dependency
-
Updated dependencies [
0d81307
,0d81307
]:- @graphql-mesh/fusion-runtime@0.10.22
- @graphql-tools/federation@3.0.3
- @graphql-mesh/hmac-upstream-signature@1.2.17