Releases: graphql-hive/gateway
December 14, 2024
@graphql-tools/[email protected]
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/[email protected]
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/[email protected]
@graphql-hive/[email protected]
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/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
0d81307
]:- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
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/[email protected]
@graphql-hive/[email protected]
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/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
December 13, 2024
@graphql-hive/[email protected]
Patch Changes
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-tools/[email protected]
@graphql-tools/[email protected]
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/[email protected]
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/[email protected]
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
23b8987
,23b8987
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
23b8987
,23b8987
]:- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-hive/[email protected]
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/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
23b8987
,23b8987
,23b8987
]:- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
23b8987
,23b8987
]:- @graphql-hive/[email protected]
@graphql-hive/[email protected]
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/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
23b8987
]:- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- #322 [
23b8987
](https://github.com/graphql-hiv...
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
December 12, 2024
@graphql-tools/[email protected]
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/[email protected]
Patch Changes
- Updated dependencies [
367b359
]:- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-tools/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
367b359
]:- @graphql-mesh/[email protected]
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
367b359
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
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/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
December 10, 2024
@graphql-tools/[email protected]
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/[email protected]
Patch Changes
- Updated dependencies [
d747d4c
,d747d4c
]:- @graphql-tools/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
d747d4c
,d747d4c
]:- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
December 06, 2024
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
21ac43e
]:- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
21ac43e
]:- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
21ac43e
]:- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
-
#293
21ac43e
Thanks @ardatan! - Fixes the bug when the fetcher given in subgraph called multiple times, so in the CLI when you point to a file for subgraph file, it fetches the subgraph on each request. -
Updated dependencies []:
- @graphql-mesh/[email protected]
December 06, 2024
@graphql-tools/[email protected]
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/[email protected]
@graphql-tools/[email protected]
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
@graphql-tools/[email protected]
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/[email protected]
@graphql-tools/[email protected]
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
@graphql-tools/[email protected]
Patch Changes
-
#291
34d1224
Thanks @ardatan! - dependencies updates:- Updated dependency
tslib@^2.8.1
↗︎ (from^2.4.0
, independencies
)
- Updated dependency
@graphql-tools/[email protected]
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/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
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/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-hive/[email protected]
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/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
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/[email protected]
@graphql-mesh/[email protected]
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...