UNPKG

@graphql-hive/gateway-runtime

Version:
644 lines (429 loc) 138 kB
# @graphql-hive/gateway-runtime ## 2.1.0 ### Minor Changes - [#1458](https://github.com/graphql-hive/gateway/pull/1458) [`6495780`](https://github.com/graphql-hive/gateway/commit/6495780516c11e6668ab827113b7edfb6379b5f2) Thanks [@ardatan](https://github.com/ardatan)! - New directive `@pubsubPublish` to publish the payload to the pubsub engine directly ```graphql extend schema @link( url: "https://specs.apollo.dev/federation/v2.6" import: ["@key", "@composeDirective"] ) @link( url: "https://the-guild.dev/mesh/v1.0" import: ["@pubsubOperation", "@pubsubPublish"] ) @composeDirective(name: "@pubsubOperation") @composeDirective(name: "@pubsubPublish") directive @pubsubOperation( pubsubTopic: String! filterBy: String result: String ) on FIELD_DEFINITION directive @pubsubPublish(pubsubTopic: String!) on FIELD_DEFINITION type Query { hello: String! } type Product @key(fields: "id") { id: ID! name: String! price: Float! } type Mutation { createProduct(name: String!, price: Float!): Product! @pubsubPublish(pubsubTopic: "new_product") } type Subscription { newProductSubgraph: Product! @pubsubOperation(pubsubTopic: "new_product") } ``` ### Patch Changes - [#1463](https://github.com/graphql-hive/gateway/pull/1463) [`bcb9407`](https://github.com/graphql-hive/gateway/commit/bcb94071daccb1698439d364ccc37146aa4c5032) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`graphql-yoga@^5.15.2` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.15.2) (from `^5.15.1`, in `dependencies`) - [#1464](https://github.com/graphql-hive/gateway/pull/1464) [`e758071`](https://github.com/graphql-hive/gateway/commit/e758071ed64ec26baf8c2d1d71bc27275291b018) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Load debug plugins but noop if log level is not debug - Updated dependencies [[`bcb9407`](https://github.com/graphql-hive/gateway/commit/bcb94071daccb1698439d364ccc37146aa4c5032), [`6495780`](https://github.com/graphql-hive/gateway/commit/6495780516c11e6668ab827113b7edfb6379b5f2)]: - @graphql-mesh/fusion-runtime@1.2.0 - @graphql-mesh/hmac-upstream-signature@2.0.1 ## 2.0.3 ### Patch Changes - [#1450](https://github.com/graphql-hive/gateway/pull/1450) [`ab05e3f`](https://github.com/graphql-hive/gateway/commit/ab05e3f899b017067e0eb42301516d4fdf3b816d) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@graphql-mesh/plugin-response-cache@^0.104.12` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-response-cache/v/0.104.12) (from `^0.104.8`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.104.11` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.11) (from `^0.104.8`, in `dependencies`) - [#1452](https://github.com/graphql-hive/gateway/pull/1452) [`b0e5568`](https://github.com/graphql-hive/gateway/commit/b0e55688d4fc22d0bfbf664de52e78e9642d7014) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@envelop/core@^5.3.1` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.3.1) (from `^5.3.0`, in `dependencies`) - [#1455](https://github.com/graphql-hive/gateway/pull/1455) [`b6f985b`](https://github.com/graphql-hive/gateway/commit/b6f985b0456ba7556cc299368892ffc5f7d4817e) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/types@^0.104.12` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.12) (from `^0.104.11`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.104.12` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.12) (from `^0.104.11`, in `dependencies`) - [#1455](https://github.com/graphql-hive/gateway/pull/1455) [`b6f985b`](https://github.com/graphql-hive/gateway/commit/b6f985b0456ba7556cc299368892ffc5f7d4817e) Thanks [@ardatan](https://github.com/ardatan)! - Support client side pubsub operation definition with `@pubsubOperation` Instead of `@resolveTo` on the gateway-side configuration with `additionalTypeDefs`, now you can define those operations on the subgraphs directly. Since this is a additional directive provided by Mesh, you need to use `@composeDirective` ```graphql extend schema @link( url: "https://specs.apollo.dev/federation/v2.6" import: ["@key", "@composeDirective"] ) @link( url: "https://the-guild.dev/mesh/v1.0" import: ["@pubsubOperation"] ) @composeDirective(name: "@pubsubOperation") directive @pubsubOperation( pubsubTopic: String! filterBy: String result: String ) on FIELD_DEFINITION type Query { hello: String! } type Product @key(fields: "id") { id: ID! name: String! price: Float! } type Subscription { newProductSubgraph: Product! @pubsubOperation(pubsubTopic: "new_product") } ``` - [#1448](https://github.com/graphql-hive/gateway/pull/1448) [`105c10d`](https://github.com/graphql-hive/gateway/commit/105c10dbe2ef269b83a524927c4ba9e63631b055) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Define user/plugin extended context generics as partial - [#1448](https://github.com/graphql-hive/gateway/pull/1448) [`105c10d`](https://github.com/graphql-hive/gateway/commit/105c10dbe2ef269b83a524927c4ba9e63631b055) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Propagate headers options payloads contain the execution context - Updated dependencies [[`b0e5568`](https://github.com/graphql-hive/gateway/commit/b0e55688d4fc22d0bfbf664de52e78e9642d7014), [`ab05e3f`](https://github.com/graphql-hive/gateway/commit/ab05e3f899b017067e0eb42301516d4fdf3b816d), [`b0e5568`](https://github.com/graphql-hive/gateway/commit/b0e55688d4fc22d0bfbf664de52e78e9642d7014), [`b6f985b`](https://github.com/graphql-hive/gateway/commit/b6f985b0456ba7556cc299368892ffc5f7d4817e), [`ab05e3f`](https://github.com/graphql-hive/gateway/commit/ab05e3f899b017067e0eb42301516d4fdf3b816d), [`b6f985b`](https://github.com/graphql-hive/gateway/commit/b6f985b0456ba7556cc299368892ffc5f7d4817e), [`ab05e3f`](https://github.com/graphql-hive/gateway/commit/ab05e3f899b017067e0eb42301516d4fdf3b816d), [`b0e5568`](https://github.com/graphql-hive/gateway/commit/b0e55688d4fc22d0bfbf664de52e78e9642d7014), [`b6f985b`](https://github.com/graphql-hive/gateway/commit/b6f985b0456ba7556cc299368892ffc5f7d4817e), [`b0e5568`](https://github.com/graphql-hive/gateway/commit/b0e55688d4fc22d0bfbf664de52e78e9642d7014), [`b6f985b`](https://github.com/graphql-hive/gateway/commit/b6f985b0456ba7556cc299368892ffc5f7d4817e), [`b0e5568`](https://github.com/graphql-hive/gateway/commit/b0e55688d4fc22d0bfbf664de52e78e9642d7014)]: - @graphql-hive/logger@1.0.2 - @graphql-mesh/fusion-runtime@1.1.0 - @graphql-mesh/hmac-upstream-signature@2.0.1 - @graphql-mesh/transport-common@1.0.2 - @graphql-tools/executor-common@1.0.1 - @graphql-tools/executor-http@3.0.1 - @graphql-tools/federation@4.0.1 ## 2.0.2 ### Patch Changes - [#1443](https://github.com/graphql-hive/gateway/pull/1443) [`20f4880`](https://github.com/graphql-hive/gateway/commit/20f48801dbab0aaccc7aa68f0447f7f5504cb0f7) Thanks [@ardatan](https://github.com/ardatan)! - Handle response caching after all other plugins - Updated dependencies []: - @graphql-mesh/hmac-upstream-signature@2.0.0 ## 2.0.1 ### Patch Changes - [#1439](https://github.com/graphql-hive/gateway/pull/1439) [`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Generic authentication options inherit the supplied context generic - Updated dependencies [[`2b3946f`](https://github.com/graphql-hive/gateway/commit/2b3946f418b0fb018ca792ff6a2c14fef7abb01d)]: - @graphql-hive/pubsub@2.1.0 - @graphql-mesh/transport-common@1.0.1 - @graphql-mesh/hmac-upstream-signature@2.0.0 - @graphql-mesh/fusion-runtime@1.0.1 ## 2.0.0 ### Major Changes - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support Least supported Node version is now v20. - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger - [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger) - If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2) - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - GraphQL multipart request support is disabled by default The only objective of [GraphQL multipart request spec](https://github.com/jaydenseric/graphql-multipart-request-spec) is to support file uploads; however, file uploads are not native to GraphQL and are generally considered an anti-pattern. ### Minor Changes - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Added `subgraphName` to `ExecutionRequest` for easier plugin developpment. - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - No details landing page and improvements around it ### Patch Changes - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Added dependency [`@envelop/instrumentation@^1.0.0` ↗︎](https://www.npmjs.com/package/@envelop/instrumentation/v/1.0.0) (to `dependencies`) - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`) - Removed dependency [`@graphql-hive/logger-json@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger-json/v/workspace:^) (from `dependencies`) - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`) - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Removed dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (from `dependencies`) - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Added dependency [`@envelop/instrumentation@^1.0.0` ↗︎](https://www.npmjs.com/package/@envelop/instrumentation/v/1.0.0) (to `dependencies`) - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`) - Removed dependency [`@graphql-hive/logger-json@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger-json/v/workspace:^) (from `dependencies`) - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Fixed subgraph name being lost when execution requests get batched together. - Updated dependencies [[`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a)]: - @graphql-hive/pubsub@2.0.0 - @graphql-mesh/fusion-runtime@1.0.0 - @graphql-mesh/transport-common@1.0.0 - @graphql-mesh/hmac-upstream-signature@2.0.0 - @graphql-tools/executor-common@1.0.0 - @graphql-tools/batch-delegate@10.0.0 - @graphql-tools/executor-http@3.0.0 - @graphql-tools/federation@4.0.0 - @graphql-tools/delegate@11.0.0 - @graphql-hive/signal@2.0.0 - @graphql-tools/stitch@10.0.0 - @graphql-tools/wrap@11.0.0 - @graphql-hive/logger@1.0.1 ## 1.11.1 ### Patch Changes - [#1428](https://github.com/graphql-hive/gateway/pull/1428) [`5660dab`](https://github.com/graphql-hive/gateway/commit/5660dab0398deed34809ef71e9a0292cfd4ddefb) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Resolve to latest @envelop/core that includes instrumentation changes - Updated dependencies [[`29f0409`](https://github.com/graphql-hive/gateway/commit/29f0409fe851b45d717ab5d0f5651dde3012e913)]: - @graphql-tools/stitch@9.4.29 - @graphql-mesh/hmac-upstream-signature@1.2.32 ## 1.11.0 ### Minor Changes - [#1403](https://github.com/graphql-hive/gateway/pull/1403) [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Allow configuring some of the batch delegation options Like the `maxBatchSize` which is used to limit the number of items requested in a single delegated batch. ### Patch Changes - [#1408](https://github.com/graphql-hive/gateway/pull/1408) [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/types@^0.104.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.8) (from `^0.104.7`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.104.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.8) (from `^0.104.7`, in `dependencies`) - [#1411](https://github.com/graphql-hive/gateway/pull/1411) [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`@whatwg-node/server@^0.10.12` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.12) (from `^0.10.11`, in `dependencies`) - [#1424](https://github.com/graphql-hive/gateway/pull/1424) [`fe9b42f`](https://github.com/graphql-hive/gateway/commit/fe9b42f02ca6e3fbe6defd83e21e283dedf7481a) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/utils@^0.104.11` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.11) (from `^0.104.8`, in `dependencies`) - [#1403](https://github.com/graphql-hive/gateway/pull/1403) [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Rename `__experimental__batchDelegation` to `__experimental__batchExecution` Because it enables/disabled batch execution, and not delegation. - Updated dependencies [[`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`fe9b42f`](https://github.com/graphql-hive/gateway/commit/fe9b42f02ca6e3fbe6defd83e21e283dedf7481a), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`fe9b42f`](https://github.com/graphql-hive/gateway/commit/fe9b42f02ca6e3fbe6defd83e21e283dedf7481a), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`fe9b42f`](https://github.com/graphql-hive/gateway/commit/fe9b42f02ca6e3fbe6defd83e21e283dedf7481a), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5)]: - @graphql-hive/logger-json@0.0.8 - @graphql-mesh/fusion-runtime@0.12.0 - @graphql-mesh/hmac-upstream-signature@1.2.32 - @graphql-mesh/transport-common@0.7.39 - @graphql-tools/executor-http@2.1.2 - @graphql-tools/federation@3.2.9 ## 1.10.3 ### 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 - @graphql-mesh/fusion-runtime@0.11.20 - @graphql-mesh/hmac-upstream-signature@1.2.31 - @graphql-mesh/transport-common@0.7.38 ## 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-too