UNPKG

@graphql-hive/gateway-runtime

Version:
597 lines (425 loc) 119 kB
# @graphql-hive/gateway-runtime ## 1.10.3-alpha-cd12c8ada0500da1601c7b556442de73d21cbdb6 ### Patch Changes - [#1383](https://github.com/graphql-hive/gateway/pull/1383) [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@graphql-mesh/plugin-response-cache@^0.104.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-response-cache/v/0.104.8) (from `^0.104.6`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.7) (from `^0.104.5`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.7) (from `^0.104.5`, in `dependencies`) - Updated dependencies [[`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420)]: - @graphql-hive/logger-json@0.0.7-alpha-cd12c8ada0500da1601c7b556442de73d21cbdb6 - @graphql-mesh/fusion-runtime@0.11.20-alpha-cd12c8ada0500da1601c7b556442de73d21cbdb6 - @graphql-mesh/hmac-upstream-signature@1.2.31-alpha-cd12c8ada0500da1601c7b556442de73d21cbdb6 - @graphql-mesh/transport-common@0.7.38-alpha-cd12c8ada0500da1601c7b556442de73d21cbdb6 ## 1.10.2 ### Patch Changes - [#1358](https://github.com/graphql-hive/gateway/pull/1358) [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.1) (from `^10.9.0`, in `dependencies`) - [#1361](https://github.com/graphql-hive/gateway/pull/1361) [`38e5173`](https://github.com/graphql-hive/gateway/commit/38e51731e31e9e8bcdbeb370ae7cac5657a6f6d3) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.11` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.11) (from `^0.10.10`, in `dependencies`) - [#1366](https://github.com/graphql-hive/gateway/pull/1366) [`6cedc05`](https://github.com/graphql-hive/gateway/commit/6cedc056ef4070bc1719fbe222d60c0d48af5a71) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Use the merge resolver for delegated subgraph schemas - Updated dependencies [[`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1)]: - @graphql-mesh/fusion-runtime@0.11.19 - @graphql-mesh/hmac-upstream-signature@1.2.30 - @graphql-mesh/transport-common@0.7.37 - @graphql-tools/batch-delegate@9.0.41 - @graphql-tools/delegate@10.2.23 - @graphql-tools/executor-common@0.0.6 - @graphql-tools/executor-http@2.1.1 - @graphql-tools/federation@3.2.8 - @graphql-tools/stitch@9.4.28 - @graphql-tools/wrap@10.1.4 ## 1.10.1 ### Patch Changes - [#1355](https://github.com/graphql-hive/gateway/pull/1355) [`352e89d`](https://github.com/graphql-hive/gateway/commit/352e89d496ecd19db02cbaa2ade58c2da77d69c6) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Run the persisted documents plugin before the usage reporting and registry plugin Making sure the queries are discovered before being reported. - Updated dependencies []: - @graphql-mesh/hmac-upstream-signature@1.2.29 ## 1.10.0 ### Minor Changes - [#1310](https://github.com/graphql-hive/gateway/pull/1310) [`2fa0c8f`](https://github.com/graphql-hive/gateway/commit/2fa0c8f1dd074c9da8e6ac4086eb3009be9fdf07) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Added new `withState` plugin utility for easy data sharing between hooks. ## New plugin utility to ease data sharing between hooks Sometimes, plugins can grow in complexity and need to share data between its hooks. A way to solve this can be to mutate the graphql context, but this context is not always available in all hooks in Yoga or Hive Gateway plugins. Moreover, mutating the context gives access to your internal data to all other plugins and graphql resolvers, without mentioning performance impact on field access on this object. The recommended approach to this problem was to use a `WeakMap` with a stable key (often the `context` or `request` object). While it works, it's not very convenient for plugin developers, and is prone to error with the choice of key. The new `withState` utility solves this DX issue by providing an easy and straightforward API for data sharing between hooks. ```ts import { withState } from '@graphql-hive/gateway'; type State = { foo: string }; const myPlugin = () => withState<Plugin, State>(() => ({ onParse({ state }) { state.forOperation.foo = 'foo'; }, onValidate({ state }) { const { foo } = state.forOperation; console.log('foo', foo); }, })); ``` The `state` payload field will be available in all relevant hooks, making it easy to access shared data. It also forces the developer to choose the scope for the data: - `forOperation` for a data scoped to GraphQL operation (Envelop, Yoga and Hive Gateway) - `forRequest` for a data scoped to HTTP request (Yoga and Hive Gateway) - `forSubgraphExecution` for a data scoped to the subgraph execution (Hive Gateway) Not all scopes are available in all hooks, the type reflects which scopes are available Under the hood, those states are kept in memory using `WeakMap`, which avoid any memory leaks. It is also possible to manually retrieve the state with the `getState` function: ```ts const myPlugin = () => withState((getState) => ({ onParse({ context }) { // You can provide a payload, which will dictate which scope you have access to. // The scope can contain `context`, `request` and `executionRequest` fields. const state = getState({ context }); // Use the state elsewhere. }, })); ``` - [#1308](https://github.com/graphql-hive/gateway/pull/1308) [`9b230f3`](https://github.com/graphql-hive/gateway/commit/9b230f35b47afbf3b253e4c21720e836c5a2a8d1) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Improved landing page visuals and new logo ### Patch Changes - [#1318](https://github.com/graphql-hive/gateway/pull/1318) [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-apollo-usage-report@^0.10.1` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-apollo-usage-report/v/0.10.1) (from `^0.8.6`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-csrf-prevention@^3.15.1` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-csrf-prevention/v/3.15.1) (from `^3.13.5`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-defer-stream@^3.15.1` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-defer-stream/v/3.15.1) (from `^3.13.5`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-persisted-operations@^3.15.1` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-persisted-operations/v/3.15.1) (from `^3.13.6`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.15.1` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.15.1) (from `^5.13.5`, in `dependencies`) - [#1321](https://github.com/graphql-hive/gateway/pull/1321) [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@envelop/core@^5.3.0` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.3.0) (from `^5.2.3`, in `dependencies`) - Updated dependency [`@graphql-hive/core@^0.13.0` ↗︎](https://www.npmjs.com/package/@graphql-hive/core/v/0.13.0) (from `^0.12.0`, in `dependencies`) - Updated dependency [`@graphql-hive/yoga@^0.42.2` ↗︎](https://www.npmjs.com/package/@graphql-hive/yoga/v/0.42.2) (from `^0.42.1`, in `dependencies`) - [#1328](https://github.com/graphql-hive/gateway/pull/1328) [`f12f2b7`](https://github.com/graphql-hive/gateway/commit/f12f2b78163fbef797a42b5999a0b5a8ef6b2c98) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@envelop/disable-introspection@^8.0.0` ↗︎](https://www.npmjs.com/package/@envelop/disable-introspection/v/8.0.0) (from `^7.0.0`, in `dependencies`) - [#1329](https://github.com/graphql-hive/gateway/pull/1329) [`ce99e43`](https://github.com/graphql-hive/gateway/commit/ce99e43b9fec43c665836bd3a282ce6d4302481d) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`graphql-ws@^6.0.6` ↗︎](https://www.npmjs.com/package/graphql-ws/v/6.0.6) (from `^6.0.4`, in `dependencies`) - [#1344](https://github.com/graphql-hive/gateway/pull/1344) [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.9.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.0) (from `^10.8.1`, in `dependencies`) - [#1333](https://github.com/graphql-hive/gateway/pull/1333) [`ffa3753`](https://github.com/graphql-hive/gateway/commit/ffa3753ccb9045c5b2d62af05edc7f1d78336cb3) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Isomorphic environment variable getter with truthy value parsing - [#1350](https://github.com/graphql-hive/gateway/pull/1350) [`1fe005f`](https://github.com/graphql-hive/gateway/commit/1fe005f270c9fd0f8fcd2d0c3ffc27d722638f57) Thanks [@enisdenjo](https://github.com/enisdenjo)! - `allowArbitraryDocuments` option for persisted documents coming from Hive (`persistedDocuments: { type: 'hive' }`) can be a factory function - Updated dependencies [[`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`7287ffa`](https://github.com/graphql-hive/gateway/commit/7287ffa2ac0f08801c3058e96a7c4eba7102c1d0), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`7287ffa`](https://github.com/graphql-hive/gateway/commit/7287ffa2ac0f08801c3058e96a7c4eba7102c1d0), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`ffa3753`](https://github.com/graphql-hive/gateway/commit/ffa3753ccb9045c5b2d62af05edc7f1d78336cb3), [`b59a266`](https://github.com/graphql-hive/gateway/commit/b59a26628c368272b50380bab57553070e2edf6e)]: - @graphql-mesh/fusion-runtime@0.11.18 - @graphql-mesh/hmac-upstream-signature@1.2.29 - @graphql-mesh/transport-common@0.7.36 - @graphql-tools/batch-delegate@9.0.40 - @graphql-tools/delegate@10.2.22 - @graphql-tools/executor-common@0.0.5 - @graphql-tools/executor-http@2.1.0 - @graphql-tools/federation@3.2.7 - @graphql-tools/stitch@9.4.27 - @graphql-tools/wrap@10.1.3 - @graphql-hive/logger-json@0.0.6 ## 1.9.4 ### Patch Changes - Updated dependencies [[`b69c80b`](https://github.com/graphql-hive/gateway/commit/b69c80b259bd0565eb9826f7ee9bc8e6c32076d1)]: - @graphql-tools/delegate@10.2.21 - @graphql-tools/batch-delegate@9.0.39 - @graphql-tools/federation@3.2.6 - @graphql-mesh/fusion-runtime@0.11.17 - @graphql-tools/stitch@9.4.26 - @graphql-tools/wrap@10.1.2 - @graphql-mesh/hmac-upstream-signature@1.2.28 ## 1.9.3 ### Patch Changes - Updated dependencies [[`0655d1f`](https://github.com/graphql-hive/gateway/commit/0655d1fc604179b6cc0c148d73e38d6e8d839c56), [`0655d1f`](https://github.com/graphql-hive/gateway/commit/0655d1fc604179b6cc0c148d73e38d6e8d839c56), [`0655d1f`](https://github.com/graphql-hive/gateway/commit/0655d1fc604179b6cc0c148d73e38d6e8d839c56)]: - @graphql-tools/delegate@10.2.20 - @graphql-tools/batch-delegate@9.0.38 - @graphql-tools/federation@3.2.5 - @graphql-mesh/fusion-runtime@0.11.16 - @graphql-tools/stitch@9.4.25 - @graphql-tools/wrap@10.1.1 - @graphql-mesh/hmac-upstream-signature@1.2.28 ## 1.9.2 ### Patch Changes - [#1217](https://github.com/graphql-hive/gateway/pull/1217) [`931d576`](https://github.com/graphql-hive/gateway/commit/931d5763c1f8c6d7fdc299bd87a634fecdd70b15) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@types/node@^22.15.30` ↗︎](https://www.npmjs.com/package/@types/node/v/22.15.30) (from `^22.15.29`, in `dependencies`) - [#1245](https://github.com/graphql-hive/gateway/pull/1245) [`29f537f`](https://github.com/graphql-hive/gateway/commit/29f537f7dfcf17f3911efd5845d7af1e532d2e85) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/utils@^0.104.5` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.5) (from `^0.104.2`, in `dependencies`) - [#1258](https://github.com/graphql-hive/gateway/pull/1258) [`3d24beb`](https://github.com/graphql-hive/gateway/commit/3d24beb7b15fd8109f86bbb3dfd514f6b8202741) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@graphql-mesh/plugin-response-cache@^0.104.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-response-cache/v/0.104.6) (from `^0.104.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.104.5` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.5) (from `^0.104.0`, in `dependencies`) - [#1245](https://github.com/graphql-hive/gateway/pull/1245) [`29f537f`](https://github.com/graphql-hive/gateway/commit/29f537f7dfcf17f3911efd5845d7af1e532d2e85) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Propagate headers even from cache - [#1261](https://github.com/graphql-hive/gateway/pull/1261) [`1023f3d`](https://github.com/graphql-hive/gateway/commit/1023f3db8bdca8b0a9004841c7341dc3d18b1858) Thanks [@comatory](https://github.com/comatory)! - Forward only defined headers to subgraphs from clients - [#1245](https://github.com/graphql-hive/gateway/pull/1245) [`29f537f`](https://github.com/graphql-hive/gateway/commit/29f537f7dfcf17f3911efd5845d7af1e532d2e85) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Propagate headers even from cache - [#1261](https://github.com/graphql-hive/gateway/pull/1261) [`1023f3d`](https://github.com/graphql-hive/gateway/commit/1023f3db8bdca8b0a9004841c7341dc3d18b1858) Thanks [@comatory](https://github.com/comatory)! - Correct header propagation return types allowing nullish values - Updated dependencies [[`29f537f`](https://github.com/graphql-hive/gateway/commit/29f537f7dfcf17f3911efd5845d7af1e532d2e85), [`3d24beb`](https://github.com/graphql-hive/gateway/commit/3d24beb7b15fd8109f86bbb3dfd514f6b8202741), [`29f537f`](https://github.com/graphql-hive/gateway/commit/29f537f7dfcf17f3911efd5845d7af1e532d2e85), [`3d24beb`](https://github.com/graphql-hive/gateway/commit/3d24beb7b15fd8109f86bbb3dfd514f6b8202741), [`29f537f`](https://github.com/graphql-hive/gateway/commit/29f537f7dfcf17f3911efd5845d7af1e532d2e85), [`3d24beb`](https://github.com/graphql-hive/gateway/commit/3d24beb7b15fd8109f86bbb3dfd514f6b8202741), [`3d24beb`](https://github.com/graphql-hive/gateway/commit/3d24beb7b15fd8109f86bbb3dfd514f6b8202741), [`ed323fa`](https://github.com/graphql-hive/gateway/commit/ed323fa06d196c1df128a493006238078bf69fc6)]: - @graphql-hive/logger-json@0.0.5 - @graphql-mesh/fusion-runtime@0.11.15 - @graphql-mesh/hmac-upstream-signature@1.2.28 - @graphql-mesh/transport-common@0.7.35 - @graphql-tools/executor-http@2.0.3 - @graphql-tools/federation@3.2.4 ## 1.9.1 ### Patch Changes - [#1195](https://github.com/graphql-hive/gateway/pull/1195) [`cdc959c`](https://github.com/graphql-hive/gateway/commit/cdc959c57dd770fd5f0bcd05a5de7e3102dacfe2) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@types/node@^22.15.29` ↗︎](https://www.npmjs.com/package/@types/node/v/22.15.29) (from `^22.15.27`, in `dependencies`) - Updated dependencies []: - @graphql-mesh/hmac-upstream-signature@1.2.27 ## 1.9.0 ### Minor Changes - [#1148](https://github.com/graphql-hive/gateway/pull/1148) [`b4ba778`](https://github.com/graphql-hive/gateway/commit/b4ba778776140b66b8368daf0299105fd8035e46) Thanks [@maon-fp](https://github.com/maon-fp)! - Introducing `renderGraphiQL` feature to provide GraphiQL without a CDN involved - [#1139](https://github.com/graphql-hive/gateway/pull/1139) [`11cff4f`](https://github.com/graphql-hive/gateway/commit/11cff4f8ff28ca7d709b5b962029e17d5843110e) Thanks [@ardatan](https://github.com/ardatan)! - Add `cookies` property to the configuration for cookies processing which is already documented in [here](https://the-guild.dev/graphql/hive/docs/gateway/authorization-authentication#token-lookup) ### Patch Changes - [#1139](https://github.com/graphql-hive/gateway/pull/1139) [`11cff4f`](https://github.com/graphql-hive/gateway/commit/11cff4f8ff28ca7d709b5b962029e17d5843110e) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@whatwg-node/server-plugin-cookies@^1.0.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/server-plugin-cookies/v/1.0.5) (to `dependencies`) - [#1144](https://github.com/graphql-hive/gateway/pull/1144) [`54beb7a`](https://github.com/graphql-hive/gateway/commit/54beb7acde7558eee81ec0e20c123717865b8e18) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.9` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.9) (from `^0.10.8`, in `dependencies`) - [#1156](https://github.com/graphql-hive/gateway/pull/1156) [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@graphql-hive/core@^0.12.0` ↗︎](https://www.npmjs.com/package/@graphql-hive/core/v/0.12.0) (from `^0.11.0`, in `dependencies`) - Updated dependency [`@graphql-hive/yoga@^0.42.1` ↗︎](https://www.npmjs.com/package/@graphql-hive/yoga/v/0.42.1) (from `^0.42.0`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-apollo-usage-report@^0.8.6` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-apollo-usage-report/v/0.8.6) (from `^0.8.0`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-csrf-prevention@^3.13.5` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-csrf-prevention/v/3.13.5) (from `^3.12.0`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-defer-stream@^3.13.5` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-defer-stream/v/3.13.5) (from `^3.12.0`, in `dependencies`) - Updated dependency [`@graphql-yoga/plugin-persisted-operations@^3.13.6` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-persisted-operations/v/3.13.6) (from `^3.12.0`, in `dependencies`) - Updated dependency [`@types/node@^22.15.21` ↗︎](https://www.npmjs.com/package/@types/node/v/22.15.21) (from `^22.7.5`, in `dependencies`) - Updated dependency [`@whatwg-node/server@^0.10.10` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.10) (from `^0.10.9`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.13.5` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.13.5) (from `^5.13.4`, in `dependencies`) - [#1182](https://github.com/graphql-hive/gateway/pull/1182) [`f3615ca`](https://github.com/graphql-hive/gateway/commit/f3615cab4e8b596e5ba21b03fddb66e9a3090e31) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@types/node@^22.15.23` ↗︎](https://www.npmjs.com/package/@types/node/v/22.15.23) (from `^22.15.21`, in `dependencies`) - [#1188](https://github.com/graphql-hive/gateway/pull/1188) [`d459f37`](https://github.com/graphql-hive/gateway/commit/d459f3702c500c321164abec826700120649c180) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@types/node@^22.15.27` ↗︎](https://www.npmjs.com/package/@types/node/v/22.15.27) (from `^22.15.23`, in `dependencies`) - Updated dependencies [[`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451), [`54beb7a`](https://github.com/graphql-hive/gateway/commit/54beb7acde7558eee81ec0e20c123717865b8e18), [`54beb7a`](https://github.com/graphql-hive/gateway/commit/54beb7acde7558eee81ec0e20c123717865b8e18), [`4a80de1`](https://github.com/graphql-hive/gateway/commit/4a80de1a2884dc42a5f09202b6215c3e6780efc4), [`f634b53`](https://github.com/graphql-hive/gateway/commit/f634b53478199c2b783a608e22fbe51401942039), [`85d7c95`](https://github.com/graphql-hive/gateway/commit/85d7c95cfe90773daf7680f2308ff4f52f0f7fa9), [`511ba36`](https://github.com/graphql-hive/gateway/commit/511ba36d9c8b81f83cf4cb37c03c9fbb9c5c9c9d), [`dca6529`](https://github.com/graphql-hive/gateway/commit/dca6529b234f1e178ad87a8992c5a7de12831128)]: - @graphql-mesh/fusion-runtime@0.11.14 - @graphql-tools/executor-http@2.0.2 - @graphql-tools/federation@3.2.3 - @graphql-tools/wrap@10.1.0 - @graphql-tools/batch-delegate@9.0.37 - @graphql-mesh/hmac-upstream-signature@1.2.27 - @graphql-tools/stitch@9.4.24 - @graphql-tools/delegate@10.2.19 ## 1.8.3 ### Patch Changes - [#1115](https://github.com/graphql-hive/gateway/pull/1115) [`162693e`](https://github.com/graphql-hive/gateway/commit/162693ebceca9dba0eb748d36549e4af0cbfd91b) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-hive/core@^0.11.0` ↗︎](https://www.npmjs.com/package/@graphql-hive/core/v/0.11.0) (from `^0.10.0`, in `dependencies`) - Updated dependency [`@graphql-hive/yoga@^0.42.0` ↗︎](https://www.npmjs.com/package/@graphql-hive/yoga/v/0.42.0) (from `^0.41.0`, in `dependencies`) - [#1128](https://github.com/graphql-hive/gateway/pull/1128) [`4acd5ca`](https://github.com/graphql-hive/gateway/commit/4acd5ca8d591c442eed151d2dcf2fffee55f57e8) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.8` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.8) (from `^0.10.5`, in `dependencies`) - [#1113](https://github.com/graphql-hive/gateway/pull/1113) [`88c9369`](https://github.com/graphql-hive/gateway/commit/88c9369abfdcb8e5ed8331c12a42a90e3b6b211b) Thanks [@ardatan](https://github.com/ardatan)! - Handle serving subgraphs when; - No entity is found - Query root type has a different name than `Query` - Federation transform by adding `@key` directive to a type but without a resolver - [#1027](https://github.com/graphql-hive/gateway/pull/1027) [`faffc17`](https://github.com/graphql-hive/gateway/commit/faffc17e72f8893e7e717d5a425205a6364e4d44) Thanks [@ardatan](https://github.com/ardatan)! - If metadata is included the result with `includeExtensionMetadata`, `cost.estimated` should always be added to the result extensions even if no cost is calculated. - Updated dependencies [[`88c9369`](https://github.com/graphql-hive/gateway/commit/88c9369abfdcb8e5ed8331c12a42a90e3b6b211b), [`b7627d3`](https://github.com/graphql-hive/gateway/commit/b7627d3cc29e54a048085a79a07a7906f2994173), [`ef0e24c`](https://github.com/graphql-hive/gateway/commit/ef0e24c55ed26320d139a83b1de5b75d5c1bfe4e), [`0512be3`](https://github.com/graphql-hive/gateway/commit/0512be32399268eb7926db48675ddb5763fd8578), [`b7627d3`](https://github.com/graphql-hive/gateway/commit/b7627d3cc29e54a048085a79a07a7906f2994173)]: - @graphql-mesh/fusion-runtime@0.11.13 - @graphql-tools/executor-http@2.0.1 - @graphql-tools/delegate@10.2.18 - @graphql-tools/federation@3.2.2 - @graphql-tools/stitch@9.4.23 - @graphql-mesh/hmac-upstream-signature@1.2.27 - @graphql-tools/batch-delegate@9.0.36 - @graphql-tools/wrap@10.0.36 ## 1.8.2 ### Patch Changes - [#1095](https://github.com/graphql-hive/gateway/pull/1095) [`2dc5fd8`](https://github.com/graphql-hive/gateway/commit/2dc5fd89a292811e7ea845d14e0ddacecfa83e9f) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Provide non-GraphQL upstream service responses to the retry mechanism configuration - [#1088](https://github.com/graphql-hive/gateway/pull/1088) [`305dbc4`](https://github.com/graphql-hive/gateway/commit/305dbc4ce08f53508f400e8e2610cb32e68002bc) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Core plugins take priority over user plugins - Updated dependencies [[`2dc5fd8`](https://github.com/graphql-hive/gateway/commit/2dc5fd89a292811e7ea845d14e0ddacecfa83e9f)]: - @graphql-mesh/fusion-runtime@0.11.12 - @graphql-mesh/hmac-upstream-signature@1.2.27 ## 1.8.1 ### Patch Changes - Updated dependencies [[`e6dfbcd`](https://github.com/graphql-hive/gateway/commit/e6dfbcd4d1d2ebbdb7c5454b691b1be2b9c466b3)]: - @graphql-mesh/fusion-runtime@0.11.11 - @graphql-mesh/hmac-upstream-signature@1.2.27 ## 1.8.0 ### Minor Changes - [#997](https://github.com/graphql-hive/gateway/pull/997) [`4cf75cb`](https://github.com/graphql-hive/gateway/commit/4cf75cbf1f14169826d1917532ee73ee45c002d5) Thanks [@ardatan](https://github.com/ardatan)! - - **BREAKING**: HTTP Executor no longer takes `serviceName` as an option. - Both HTTP executor and `@graphql-mesh/transport-http-callback` no longer handle `DOWNSTREAM_SERVICE_ERROR` error code with `serviceName`. - Gateway runtime handles subgraph errors on its own with `DOWNSTREAM_SERVICE_ERROR` error code and `serviceName` as a property. This behavior can be configured with `subgraphErrors` option of the `createGatewayRuntime` function or CLI config. ```ts subgraphError: { errorCode: 'DOWNSTREAM_SERVICE_ERROR', // or `false` to remove this code completely subgraphNameProp: 'serviceName' // or `false` to remove this prop completely } ``` ### Patch Changes - [#1015](https://github.com/graphql-hive/gateway/pull/1015) [`9a120c8`](https://github.com/graphql-hive/gateway/commit/9a120c85ac67654f63e374cf420ac4b73da21228) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`graphql-yoga@^5.13.3` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.13.3) (from `^5.13.2`, in `dependencies`) - [#1045](https://github.com/graphql-hive/gateway/pull/1045) [`da47a0e`](https://github.com/graphql-hive/gateway/commit/da47a0effcc0e3c2b934bc97ab10e6e86ef8cd93) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.5) (from `^0.10.3`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.13.4` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.13.4) (from `^5.13.3`, in `dependencies`) - [#1045](https://github.com/graphql-hive/gateway/pull/1045) [`da47a0e`](https://github.com/graphql-hive/gateway/commit/da47a0effcc0e3c2b934bc97ab10e6e86ef8cd93) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Update graphql-yoga and whatwg-node packages In light of https://github.com/ardatan/whatwg-node/pull/2305. Please upgrade as soon as possible! - [#1007](https://github.com/graphql-hive/gateway/pull/1007) [`f797304`](https://github.com/graphql-hive/gateway/commit/f797304fe27fb4174cea5a50d9869a91b08b5e0d) Thanks [@ardatan](https://github.com/ardatan)! - Support aliased imports for Demand Control directives such as; ```graphql extend schema @link(url: "...", import: [{ name: "@cost", as: "@myCost" }]) ``` So in this case, `@myCost` will be available in the schema as `@myCost` instead of `@cost`. - [#960](https://github.com/graphql-hive/gateway/pull/960) [`0f70298`](https://github.com/graphql-hive/gateway/commit/0f70298d420766f56398a198d9d91c12884f033d) Thanks [@ardatan](https://github.com/ardatan)! - Fix the version property in the gateway runtime instance - Updated dependencies [[`9a120c8`](https://github.com/graphql-hive/gateway/commit/9a120c85ac67654f63e374cf420ac4b73da21228), [`da47a0e`](https://github.com/graphql-hive/gateway/commit/da47a0effcc0e3c2b934bc97ab10e6e86ef8cd93), [`da47a0e`](https://github.com/graphql-hive/gateway/commit/da47a0effcc0e3c2b934bc97ab10e6e86ef8cd93), [`da47a0e`](https://github.com/graphql-hive/gateway/commit/da47a0effcc0e3c2b934bc97ab10e6e86ef8cd93), [`da47a0e`](https://github.com/graphql-hive/gateway/commit/da47a0effcc0e3c2b934bc97ab10e6e86ef8cd93), [`9a120c8`](https://github.com/graphql-hive/gateway/commit/9a120c85ac67654f63e374cf420ac4b73da21228), [`4cf75cb`](https://github.com/graphql-hive/gateway/commit/4cf75cbf1f14169826d1917532ee73ee45c002d5)]: - @graphql-mesh/fusion-runtime@0.11.10 - @graphql-tools/executor-http@2.0.0 - @graphql-tools/federation@3.2.1 - @graphql-mesh/hmac-upstream-signature@1.2.27 ## 1.7.0 ### Minor Changes - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - Request ID configuration; By default, first Hive Gateway was checking if `x-request-id` exists in the HTTP headers, then generates and sets a new one. And this can be disabled by setting `requestId` to `false` in the `gatewayConfig`. Now you can configure the request ID generation by providing a function to the `requestId` field in the `gatewayConfig` (or inherit from the framework you use). And you can also rename the header name by setting the `headerName` field in the `gatewayConfig`. ```ts import { defineConfig } from '@graphql-hive/gateway'; export const gatewayConfig = defineConfig({ requestId: { headerName: 'x-request-id', generateRequestId({ request, context, fetchAPI }) { return fetchAPI.crypto.randomUUID(); }, }, }); ``` This is useful with Fastify because it handles the request ID generation and propagation by itself. ```ts const requestIdHeader = 'x-guild-request-id'; const app = fastify({ /** ... */ requestIdHeader, // Align with Hive Gateway's request id log label requestIdLogLabel: 'requestId', genReqId(req) { if (req.headers[requestIdHeader]) { return req.headers[requestIdHeader].toString(); } return crypto.randomUUID(); }, }); const gateway = createGateway({ /** ... */ requestId: { headerName: requestIdHeader, generateRequestId({ request, context, fetchAPI }) { return request.id; }, }, }); ``` ### Patch Changes - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/utils@^0.104.2` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.2) (from `^0.104.1`, in `dependencies`) - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - Log the information when an ongoing request is aborted and retried when a new schema is reloaded (mostly done by polling) - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - Now all the messages from GraphOS fetcher are improved, it now includes details about attempts, which uplinks are in use, what errors are thrown etc. - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - Simplify and make readable the logs printed by the readiness checks, now it uses `readiness` title and prints `passes` or `fails` with errors if present - Updated dependencies [[`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`c7ea2c5`](https://github.com/graphql-hive/gateway/commit/c7ea2c5ae71b6b338ef22edd927a3fc93803965f), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`0af3485`](https://github.com/graphql-hive/gateway/commit/0af3485abb1b3dfba4126f09d291b2096d23aa32)]: - @graphql-hive/logger-json@0.0.4 - @graphql-mesh/fusion-runtime@0.11.9 - @graphql-mesh/hmac-upstream-signature@1.2.26 - @graphql-tools/federation@3.2.0 - @graphql-tools/delegate@10.2.17 - @graphql-tools/stitch@9.4.22 - @graphql-mesh/transport-common@0.7.34 - @graphql-tools/executor-http@1.3.3 - @graphql-tools/batch-delegate@9.0.35 - @graphql-tools/wrap@10.0.35 ## 1.6.6 ### Patch Changes - [#933](https://github.com/graphql-hive/gateway/pull/933) [`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Added dependency [`@graphql-hive/pubsub@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/pubsub/v/workspace:^) (to `dependencies`) - [#933](https://github.com/graphql-hive/gateway/pull/933) [`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Dispose of PubSub on teardown if available - Updated dependencies [[`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc), [`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc)]: - @graphql-mesh/transport-common@0.7.33 - @graphql-hive/pubsub@1.0.0 - @graphql-mesh/hmac-upstream-signature@1.2.25 - @graphql-mesh/fusion-runtime@0.11.8 ## 1.6.5 ### Patch Changes - [#940](https://github.com/graphql-hive/gateway/pull/940) [`ab96392`](https://github.com/graphql-hive/gateway/commit/ab96392b3561de62cf6a57280e4c3ac0ec98d88b) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Revert accidental OpenTelemetry potential breaking changes - Updated dependencies [[`ab96392`](https://github.com/graphql-hive/gateway/commit/ab96392b3561de62cf6a57280e4c3ac0ec98d88b)]: - @graphql-mesh/hmac-upstream-signature@1.2.25 - @graphql-mesh/fusion-runtime@0.11.7 ## 1.6.4 ### Patch Changes - [#532](https://github.com/graphql-hive/gateway/pull/532) [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@whatwg-node/promise-helpers@^1.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.3.0) (from `^1.2.5`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.13.2` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.13.2) (from `^5.13.1`, in `dependencies`) - [#922](https://github.com/graphql-hive/gateway/pull/922) [`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Added dependency [`@graphql-hive/signal@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/signal/v/workspace:^) (to `dependencies`) - Updated dependencies [[`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`7b86c09`](https://github.com/graphql-hive/gateway/commit/7b86c097f5d424b82c84b87c743d5ed4ebe6aa5c), [`3003ae2`](https://github.com/graphql-hive/gateway/commit/3003ae2545148f75edf0ddca5e84c7b527176713), [`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106), [`dbfb0f7`](https://github.com/graphql-hive/gateway/commit/dbfb0f7d6906d99b07b959bb6254d10e2fe2adf0)]: - @graphql-mesh/fusion-runtime@0.11.6 - @graphql-mesh/hmac-upstream-signature@1.2.24 - @graphql-mesh/transport-common@0.7.32 - @graphql-tools/batch-delegate@9.0.34 - @graphql-tools/delegate@10.2.16 - @graphql-tools/executor-http@1.3.2 - @graphql-tools/federation@3.1.7 - @graphql-tools/stitch@9.4.21 - @graphql-tools/wrap@10.0.34 - @graphql-hive/signal@1.0.0 ## 1.6.3 ### Patch Changes - [#910](https://github.com/graphql-hive/gateway/pull/910) [`1950f44`](https://github.com/graphql-hive/gateway/commit/1950f44d9180c8cd8a73917487c087ab1d1b74fa) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.2` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.2) (from `^0.10.1`, in `dependencies`) - [#900](https://github.com/graphql-hive/gateway/pull/900) [`df1bce6`](https://github.com/graphql-hive/gateway/commit/df1bce649e3f468435aa34d9141b4c20d8d26699) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Dispose of Hive Console plugin on teardown - [#900](https://github.com/graphql-hive/gateway/pull/900) [`df1bce6`](https://github.com/graphql-hive/gateway/commit/df1bce649e3f468435aa34d9141b4c20d8d26699) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Hive reporting usage clientInfo can be an object - Updated dependencies []: - @graphql-mesh/hmac-upstream-signature@1.2.23 ## 1.6.2 ### Patch Changes - [#862](https://github.com/graphql-hive/gateway/pull/862) [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@whatwg-node/promise-helpers@^1.2.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.2.5) (from `^1.0.0`, in `dependencies`) - [#862](https://github.com/graphql-hive/gateway/pull/862) [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448) Thanks [@ardatan](https://github.com/ardatan)! - Improve webhooks handling - Updated dependencies [[`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448)]: - @graphql-mesh/fusion-runtime@0.11.5 - @graphql-mesh/hmac-upstream-signature@1.2.23 - @graphql-tools/batch-delegate@9.0.33 - @graphql-tools/delegate@10.2.15 - @graphql-tools/executor-http@1.3.1 - @graphql-tools/federation@3.1.6 - @graphql-tools/stitch@9.4.20 - @graphql-tools/wrap@10.0.33 ## 1.6.1 ### Patch Changes - [#838](https://github.com/graphql-hive/gateway/pull/838) [`b19309b`](https://github.com/graphql-hive/gateway/commit/b19309b450482c203b1c71fb5762320c7e5fa739) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Dispose of cache on teardown - [#818](https://github.com/graphql-hive/gateway/pull/818) [`115a1f1`](https://github.com/graphql-hive/gateway/commit/115a1f16791e5de39b14a41b375d061113844a1b) Thanks [@ardatan](https://github.com/ardatan)! - When the schema is reloaded during a query execution, retry the request instead of throwing a reload event error - Updated dependencies [[`115a1f1`](https://github.com/graphql-hive/gateway/commit/115a1f16791e5de39b14a41b375d061113844a1b)]: - @graphql-mesh/fusion-runtime@0.11.4 - @graphql-mesh/hmac-upstream-signature@1.2.22 ## 1.6.0 ### Minor Changes - [#809](https://github.com/graphql-hive/gateway/pull/809) [`17cfa19`](https://github.com/graphql-hive/gateway/commit/17cfa190bf7965681716e5e1ec601793a85935d8) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Introduce `target` as a new Hive reporting option [Read more on Hive's product update page.](https://the-guild.dev/graphql/hive/product-updates/2025-03-10-new-access-tokens) ### Patch Changes - [#809](https://github.com/graphql-hive/gateway/pull/809) [`17cfa19`](https://github.com/graphql-hive/gateway/commit/17cfa190bf7965681716e5e1ec601793a85935d8) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Added dependency [`@graphql-hive/yoga@^0.41.0` ↗︎](https://www.npmjs.com/package/@graphql-hive/yoga/v/0.41.0) (to `dependencies`) - Removed dependency [`@graphql-mesh/plugin-hive@^0.104.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-hive/v/0.104.0) (from `dependencies`) - Updated dependencies []: - @graphql-mesh/hmac-upstream-signature@1.2.22 ## 1.5.0 ### Minor Changes - [#745](https://github.com/graphql-hive/gateway/pull/745) [`bbc98c5`](https://github.com/graphql-hive/gateway/commit/bbc98c58277283f064ba826a3d844709f75ac451) Thanks [@ardatan](https://github.com/ardatan)! - **_New plugin/feature:_** Demand Control a.k.a. Cost Limit including the implementation of `@cost` and `@listSize` directives [See the documentation to learn more](https://the-guild.dev/graphql/hive/docs/gateway/other-features/security/demand-control) - [#795](https://github.com/graphql-hive/gateway/pull/795) [`ee00eaf`](https://github.com/graphql-hive/gateway/commit/ee00eaf8cd843dacba20b9235033b62f061195f7) Thanks [@ardatan](https://github.com/ardatan)! - Use the same logging option handling logic, and export \`handleLoggingOption\` on runtime package - [#795](https://github.com/graphql-hive/gateway/pull/795) [`ee00eaf`](https://github.com/graphql-hive/gateway/commit/ee00eaf8cd843dacba20b9235033b62f061195f7) Thanks [@ardatan](https://github.com/ardatan)! - Handle string value in `logging` like `logging: 'info'` - [#743](https://github.com/graphql-hive/gateway/pull/743) [`e0d5feb`](https://github.com/graphql-hive/gateway/commit/e0d5feb156f896be5c5235eb1ae22144cf67eff9) Thanks [@ardatan](https://github.com/ardatan)! - New Cache related hooks; `onCacheGet`: invoked when a cache get operation is performed. `onCacheMiss`: invoked when the performed get operation does not find a cache entry. `onCacheHit`: invoked when the performed get operation finds a cache entry. `onCacheGetError`: invoked when an error occurs during a cache get operation. `onCacheSet`: invoked when a cache set operation is performed. `onCacheSetDone`: invoked when the performed set operation is completed. `onCacheSetError`: invoked when an error occurs during a cache set operation. `onCacheDelete`: invoked when a cache delete operation is performed. `onCacheDeleteDone`: invoked when the performed delete operation is completed. `onCacheDeleteError`: invoked when an error occurs during a cache delete operation. ### Patch Changes - [#706](https://github.com/graphql-hive/gateway/pull/706) [`e393337`](https://github.com/graphql-hive/gateway/commit/e393337ecb40beffb79748b19b5aa8f2fd9197b7) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@envelop/core@^5.2.3` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.2.3) (from `^5.1.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.104.1` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.1) (from `^0.104.0`, in `dependencies`) - Updated dependency [`@whatwg-node/server@^0.10.1` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.1) (from `^0.10.0`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.13.1` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.13.1) (from `^5.12.0`, in `dependencies`) - [#726](https://github.com/graphql-hive/gateway/pull/726) [`6334b2e`](https://github.com/graphql-hive/gateway/commit/6334b2e5d4942693121ab7d44a96fa80408aace1) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@whatwg-node/promise-helpers@^1.0.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.0.0) (to `dependencies`) - [#727](https://github.com/graphql-hive/gateway/pull/727) [`c54a080`](https://github.com/graphql-hive/gateway/commit/c54a080b8b9c477ed55dd7c23fc8fcae9139bec8) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/disposablestack@^0.0.6` ↗︎](https://www.npmjs.com/package/@whatwg-node/disposablestack/v/0.0.6) (from `^0.0.5`, in `dependencies`) - [#770](https://github.com/graphql-hive/gateway/pull/770) [`f974f5b`](https://github.com/graphql-hive/gateway/commit/f974f5b22fb6a0f1a6d605eac69d94ad90357a9c) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.0) (from `^0.9.68`, in `dependencies`) - [#771](https://github.com/graphql-hive/gateway/pull/771) [`ff6dcaf`](https://github.com/graphql-hive/gateway/commit/ff6dcafbb226d66cc95f29e7287b4ca4eb4e9f8d) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-apollo-usage-report@^0.8.0` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-apollo-usage-report/v/0.8.0) (from `^0.7.1`, in `dependencies`) - [#775](https://github.com/graphql-hive/gateway/pull/775) [`33f7dfd`](https://github.com/graphql-hive/gateway/commit/33f7dfdb10eef2a1e7f6dffe0ce6e4bb3cc7c2c6) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-mesh/plugin-hive@^0.104.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-hive/v/0.104.0) (from `^0.103.19`, in `dependencies`) - Updated dependency [`@graphql-mesh/plugin-response-cache@^0.104.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-response-cache/v/0.104.0) (from `^0.103.21`, in `dependencies`) - Updated