Releases: graphql-hive/gateway
hive-gateway@1.7.1
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.1 release.
December 13, 2024
@graphql-hive/gateway-abort-signal-any@0.0.1
Patch Changes
@graphql-tools/batch-delegate@9.0.24
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-tools/delegate@10.2.8
@graphql-tools/delegate@10.2.8
Patch Changes
-
#322
23b8987
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.3.8
↗︎ (from^1.3.6
, independencies
)
- Updated dependency
@graphql-tools/executor-http@1.2.1
Patch Changes
-
#322
23b8987
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-hive/gateway-abort-signal-any@workspace:^
↗︎ (todependencies
)
- Added dependency
-
Updated dependencies [
23b8987
]:- @graphql-hive/gateway-abort-signal-any@0.0.1
@graphql-tools/federation@3.0.2
Patch Changes
- Updated dependencies [
23b8987
,23b8987
]:- @graphql-tools/delegate@10.2.8
- @graphql-tools/executor-http@1.2.1
- @graphql-tools/stitch@9.4.10
- @graphql-tools/wrap@10.0.26
@graphql-mesh/fusion-runtime@0.10.21
Patch Changes
- Updated dependencies [
23b8987
,23b8987
]:- @graphql-mesh/transport-common@0.7.23
- @graphql-tools/delegate@10.2.8
- @graphql-tools/federation@3.0.2
- @graphql-tools/stitch@9.4.10
- @graphql-tools/stitching-directives@3.1.23
- @graphql-tools/wrap@10.0.26
@graphql-hive/gateway@1.7.0
Minor Changes
-
#322
23b8987
Thanks @ardatan! - New Retry and Timeout plugins;- Retry plugin: Retry a request if it fails
It respects the
Retry-After
HTTP header, See more about this HTTPexport const gatewayConfig = defineConfig({ upstreamRetry: { // The maximum number of retries to attempt. maxRetries: 3, // required // The delay between retries in milliseconds. retryDelay: 1000, // default /** * A function that determines whether a response should be retried. * If the upstream returns `Retry-After` header, the request will be retried. */ shouldRetry: ({ response }) => response?.status >= 500 || response?.status === 429 } // or you can configure it by subgraph name upstreamRetry({ subgraphName }) { if (subgraphName === 'my-rate-limited-subgraph') { return { maxRetries: 3, } } return { maxRetries: 10 } } })
- Timeout plugin: Timeout a request if it takes too long
export const gatewayConfig = defineConfig({ // The maximum time in milliseconds to wait for a response from the upstream. upstreamTimeout: 1000, // required // or you can configure it by subgraph name upstreamTimeout({ subgraphName }) { if (subgraphName === 'my-slow-subgraph') { return 1000; } }, });
Patch Changes
- Updated dependencies [
23b8987
,23b8987
]:- @graphql-hive/gateway-runtime@1.4.0
- @graphql-mesh/plugin-opentelemetry@1.3.28
- @graphql-mesh/plugin-prometheus@1.3.16
- @graphql-mesh/hmac-upstream-signature@1.2.17
- @graphql-mesh/transport-http@0.6.27
- @graphql-mesh/transport-http-callback@0.5.14
- @graphql-mesh/transport-ws@0.4.12
@graphql-mesh/hmac-upstream-signature@1.2.17
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-mesh/transport-common@0.7.23
@graphql-mesh/plugin-opentelemetry@1.3.28
Patch Changes
- Updated dependencies [
23b8987
,23b8987
,23b8987
]:- @graphql-hive/gateway-runtime@1.4.0
- @graphql-mesh/transport-common@0.7.23
@graphql-mesh/plugin-prometheus@1.3.16
Patch Changes
@graphql-hive/gateway-runtime@1.4.0
Minor Changes
-
#322
23b8987
Thanks @ardatan! - New Retry and Timeout plugins;- Retry plugin: Retry a request if it fails
It respects the
Retry-After
HTTP header, See more about this HTTPexport const gatewayConfig = defineConfig({ upstreamRetry: { // The maximum number of retries to attempt. maxRetries: 3, // required // The delay between retries in milliseconds. retryDelay: 1000, // default /** * A function that determines whether a response should be retried. * If the upstream returns `Retry-After` header, the request will be retried. */ shouldRetry: ({ response }) => response?.status >= 500 || response?.status === 429 } // or you can configure it by subgraph name upstreamRetry({ subgraphName }) { if (subgraphName === 'my-rate-limited-subgraph') { return { maxRetries: 3, } } return { maxRetries: 10 } } })
- Timeout plugin: Timeout a request if it takes too long
export const gatewayConfig = defineConfig({ // The maximum time in milliseconds to wait for a response from the upstream. upstreamTimeout: 1000, // required // or you can configure it by subgraph name upstreamTimeout({ subgraphName }) { if (subgraphName === 'my-slow-subgraph') { return 1000; } }, });
Patch Changes
-
#322
23b8987
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-hive/gateway-abort-signal-any@workspace:^
↗︎ (todependencies
)
- Added dependency
-
Updated dependencies [
23b8987
,23b8987
,23b8987
,23b8987
]:- @graphql-mesh/transport-common@0.7.23
- @graphql-tools/delegate@10.2.8
- @graphql-tools/executor-http@1.2.1
- @graphql-hive/gateway-abort-signal-any@0.0.1
- @graphql-mesh/fusion-runtime@0.10.21
- @graphql-mesh/hmac-upstream-signature@1.2.17
- @graphql-tools/batch-delegate@9.0.24
- @graphql-tools/federation@3.0.2
- @graphql-tools/stitch@9.4.10
- @graphql-tools/wrap@10.0.26
@graphql-tools/stitch@9.4.10
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-tools/delegate@10.2.8
- @graphql-tools/batch-delegate@9.0.24
- @graphql-tools/wrap@10.0.26
@graphql-tools/stitching-directives@3.1.23
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-tools/delegate@10.2.8
@graphql-mesh/transport-common@0.7.23
Patch Changes
- #322 [
23b8987
](https://github.com/graphql-hiv...
hive-gateway@1.7.0
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.0 release.
December 12, 2024
@graphql-tools/executor-http@1.2.0
Minor Changes
-
#313
367b359
Thanks @ardatan! - Automatic Persisted Queries support for upstream requestsFor HTTP Executor;
buildHTTPExecutor({ // ... apq: true, });
For Gateway Configuration;
export const gatewayConfig = defineConfig({ transportEntries: { '*': { options: { apq: true, }, }, }, });
@graphql-tools/federation@3.0.1
Patch Changes
- Updated dependencies [
367b359
]:- @graphql-tools/executor-http@1.2.0
@graphql-mesh/fusion-runtime@0.10.20
Patch Changes
- Updated dependencies []:
- @graphql-tools/federation@3.0.1
@graphql-hive/gateway@1.6.8
Patch Changes
- Updated dependencies [
367b359
]:- @graphql-mesh/transport-http@0.6.26
- @graphql-hive/gateway-runtime@1.3.15
- @graphql-mesh/plugin-opentelemetry@1.3.27
- @graphql-mesh/plugin-prometheus@1.3.15
- @graphql-mesh/hmac-upstream-signature@1.2.16
@graphql-mesh/plugin-opentelemetry@1.3.27
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.15
@graphql-mesh/plugin-prometheus@1.3.15
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.15
@graphql-hive/gateway-runtime@1.3.15
Patch Changes
- Updated dependencies [
367b359
]:- @graphql-tools/executor-http@1.2.0
- @graphql-tools/federation@3.0.1
- @graphql-mesh/fusion-runtime@0.10.20
- @graphql-mesh/hmac-upstream-signature@1.2.16
@graphql-mesh/transport-http@0.6.26
Patch Changes
-
#313
367b359
Thanks @ardatan! - Automatic Persisted Queries support for upstream requestsFor HTTP Executor;
buildHTTPExecutor({ // ... apq: true, });
For Gateway Configuration;
export const gatewayConfig = defineConfig({ transportEntries: { '*': { options: { apq: true, }, }, }, });
-
Updated dependencies [
367b359
]:- @graphql-tools/executor-http@1.2.0
hive-gateway@1.6.8
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.6.8 release.
December 10, 2024
@graphql-tools/federation@3.0.0
Major Changes
-
#308
d747d4c
Thanks @ardatan! - BREAKING CHANGES;- Removed
buildSubgraphSchema
, use@apollo/subgraph
instead. - Removed the following gateway related functions, and prefer using Supergraph approach instead
getSubschemaForFederationWithURL
getSubschemaForFederationWithTypeDefs
getSubschemaForFederationWithExecutor
getSubschemaForFederationWithSchema
federationSubschemaTransformer
SupergraphSchemaManager
is no longer anEventEmitter
butEventTarget
instead, and it emits a realEvent
object.SupergraphSchemaManager
is nowDisposable
and it no longer stops based on Nodejs terminate events, so you should useusing
syntax.
using manager = new SupergraphSchemaManager({ ... }); manager.addEventListener('error', (event: SupergraphSchemaManagerErrorEvent) => { console.error(event.detail.error); }); let schema: GraphQLSchema | null = null; manager.addEventListener('schema', (event: SupergraphSchemaManagerSchemaEvent) => { schema = event.detail.schema; });
- Removed
Patch Changes
-
#308
d747d4c
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-yoga/typed-event-target@^3.0.0
↗︎ (todependencies
) - Added dependency
@whatwg-node/disposablestack@^0.0.5
↗︎ (todependencies
) - Added dependency
@whatwg-node/events@^0.1.2
↗︎ (todependencies
)
- Added dependency
@graphql-mesh/fusion-runtime@0.10.19
Patch Changes
@graphql-hive/gateway@1.6.7
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.14
- @graphql-mesh/plugin-opentelemetry@1.3.26
- @graphql-mesh/plugin-prometheus@1.3.14
- @graphql-mesh/hmac-upstream-signature@1.2.16
@graphql-mesh/plugin-opentelemetry@1.3.26
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.14
@graphql-mesh/plugin-prometheus@1.3.14
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.14
@graphql-hive/gateway-runtime@1.3.14
Patch Changes
hive-gateway@1.6.7
Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.6.7 release.
December 06, 2024
@graphql-hive/gateway@1.6.6
Patch Changes
- Updated dependencies [
21ac43e
]:- @graphql-hive/gateway-runtime@1.3.13
- @graphql-mesh/plugin-opentelemetry@1.3.25
- @graphql-mesh/plugin-prometheus@1.3.13
- @graphql-mesh/hmac-upstream-signature@1.2.16
@graphql-mesh/plugin-opentelemetry@1.3.25
Patch Changes
- Updated dependencies [
21ac43e
]:- @graphql-hive/gateway-runtime@1.3.13
@graphql-mesh/plugin-prometheus@1.3.13
Patch Changes
- Updated dependencies [
21ac43e
]:- @graphql-hive/gateway-runtime@1.3.13
@graphql-hive/gateway-runtime@1.3.13
Patch Changes
December 06, 2024
@graphql-tools/batch-delegate@9.0.23
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
]:- @graphql-tools/delegate@10.2.7
@graphql-tools/batch-execute@9.0.10
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
@graphql-tools/delegate@10.2.7
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.5.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
]:- @graphql-tools/batch-execute@9.0.10
@graphql-tools/executor-graphql-ws@1.3.5
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
@graphql-tools/executor-http@1.1.14
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
@graphql-tools/federation@2.2.40
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
,34d1224
,34d1224
,34d1224
]:- @graphql-tools/delegate@10.2.7
- @graphql-tools/executor-http@1.1.14
- @graphql-tools/stitch@9.4.9
- @graphql-tools/wrap@10.0.25
@graphql-mesh/fusion-runtime@0.10.18
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-mesh/cross-helpers@^0.4.9
↗︎ (from^0.4.8
, independencies
) - Updated dependency
@graphql-mesh/types@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
@graphql-mesh/utils@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
@graphql-tools/utils@^10.6.2
↗︎ (from^10.6.0
, independencies
) - Updated dependency
graphql-yoga@^5.10.4
↗︎ (from^5.10.3
, independencies
) - Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
,34d1224
,34d1224
,34d1224
,34d1224
,34d1224
]:- @graphql-mesh/transport-common@0.7.22
- @graphql-tools/delegate@10.2.7
- @graphql-tools/federation@2.2.40
- @graphql-tools/stitch@9.4.9
- @graphql-tools/stitching-directives@3.1.22
- @graphql-tools/wrap@10.0.25
@graphql-hive/gateway@1.6.5
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-mesh/cross-helpers@^0.4.9
↗︎ (from^0.4.8
, independencies
) - Updated dependency
@graphql-mesh/types@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
@graphql-mesh/utils@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
graphql-yoga@^5.10.4
↗︎ (from^5.10.3
, independencies
) - Updated dependency
tslib@^2.8.1
↗︎ (from^2.8.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
,34d1224
,34d1224
,34d1224
,34d1224
,34d1224
,34d1224
]:- @graphql-hive/gateway-runtime@1.3.12
- @graphql-mesh/hmac-upstream-signature@1.2.16
- @graphql-mesh/plugin-opentelemetry@1.3.24
- @graphql-mesh/plugin-prometheus@1.3.12
- @graphql-mesh/transport-http@0.6.25
- @graphql-mesh/transport-http-callback@0.5.13
- @graphql-mesh/transport-ws@0.4.11
@graphql-mesh/hmac-upstream-signature@1.2.16
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-mesh/cross-helpers@^0.4.9
↗︎ (from^0.4.8
, independencies
) - Updated dependency
@graphql-mesh/types@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
@graphql-mesh/utils@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
]:- @graphql-mesh/transport-common@0.7.22
@graphql-mesh/plugin-opentelemetry@1.3.24
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-mesh/cross-helpers@^0.4.9
↗︎ (from^0.4.8
, independencies
) - Updated dependency
@graphql-mesh/types@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
@graphql-mesh/utils@^0.103.6
↗︎ (from^0.103.4
, independencies
) - Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
-
Updated dependencies [
34d1224
,34d1224
]:- @graphql-hive/gateway-runtime@1...
December 06, 2024
@graphql-mesh/fusion-runtime@0.10.17
Patch Changes
@graphql-hive/gateway@1.6.4
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.11
- @graphql-mesh/plugin-opentelemetry@1.3.23
- @graphql-mesh/plugin-prometheus@1.3.11
- @graphql-mesh/hmac-upstream-signature@1.2.15
@graphql-mesh/plugin-opentelemetry@1.3.23
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.11
@graphql-mesh/plugin-prometheus@1.3.11
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.11
@graphql-hive/gateway-runtime@1.3.11
Patch Changes
- Updated dependencies [
3b901c6
]:- @graphql-mesh/fusion-runtime@0.10.17
- @graphql-mesh/hmac-upstream-signature@1.2.15