@graphql-hive/gateway 2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94 → 2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,35 +1,54 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
4
-
3
+ ## 2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
5
4
  ### Major Changes
6
5
 
7
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
8
6
 
7
+
8
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`2cb44ee`](https://github.com/graphql-hive/gateway/commit/2cb44ee21ec00210a9e292b40f0e1964e03ec09f) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
9
+
9
10
  Least supported Node version is now v20.
10
11
 
11
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
12
+
13
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
14
+
12
15
  - [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
16
+
13
17
  - If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
14
18
 
15
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`8a1d62e`](https://github.com/graphql-hive/gateway/commit/8a1d62e7e0a096de44367b4c16767fe6fd8fd088) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
16
19
 
20
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`cfcd8cd`](https://github.com/graphql-hive/gateway/commit/cfcd8cdcc8048012701ecc03556baf47eb3b0d73) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
21
+
17
22
  Forking workers for concurrent processing is a delicate process and if not done carefully can lead to performance degradations. It should be configured with careful consideration by advanced users.
18
23
 
19
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4f77516`](https://github.com/graphql-hive/gateway/commit/4f77516fedd6e83bad76d1facb7db0b67475d05b) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
20
24
 
25
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`147c589`](https://github.com/graphql-hive/gateway/commit/147c58926da7700118794f03bfb7a39ada4b23bb) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
26
+
21
27
  There is no need to provide the `useMock` plugin alongside Hive Gateway built-ins. Not only is the mock plugin 2MB in size (minified), but installing and using it is very simple.
22
28
 
23
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`27a282b`](https://github.com/graphql-hive/gateway/commit/27a282b8b9e6823be9b452eff36b77173ff3ac0b) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
24
29
 
30
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`b4a4a58`](https://github.com/graphql-hive/gateway/commit/b4a4a586e8d8ddcfc54323931e7eea4fc028b7b2) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
31
+
25
32
  Failing to start if the schema is not loaded for whatever reason.
26
33
 
34
+ ### Minor Changes
35
+
36
+
37
+
38
+ - [#1420](https://github.com/graphql-hive/gateway/pull/1420) [`2733085`](https://github.com/graphql-hive/gateway/commit/273308544bae28500933c629b80f4e43d2fbee9b) Thanks [@enisdenjo](https://github.com/enisdenjo)! - The `defineConfig` accepts a TContext generic
39
+
40
+
27
41
  ### Patch Changes
28
42
 
29
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
43
+
44
+
45
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
46
+
30
47
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
31
48
 
32
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4e73586`](https://github.com/graphql-hive/gateway/commit/4e73586b870ce64a1024f1a1bd45a86c161d8e00) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
49
+
50
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`cfa763a`](https://github.com/graphql-hive/gateway/commit/cfa763ac9d75310b916064168f8a2c14fc9853ef) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
51
+
33
52
  - Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
34
53
  - Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
35
54
  - Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
@@ -40,23 +59,31 @@
40
59
  - Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.202.0) (to `dependencies`)
41
60
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
42
61
 
43
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`f02dc3f`](https://github.com/graphql-hive/gateway/commit/f02dc3f05751bc9c8c2d743cf32c29f2e44ad37d) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
62
+
63
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`0a2d8ab`](https://github.com/graphql-hive/gateway/commit/0a2d8abfa4d8e9dacba156055b1230de8d389551) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
64
+
44
65
  - Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
45
66
  - Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
46
67
 
47
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`134630c`](https://github.com/graphql-hive/gateway/commit/134630c6e5665dd6e8f52e23d365df30a42d3737) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
68
+
69
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4c667df`](https://github.com/graphql-hive/gateway/commit/4c667dfc22371fd0b78f56d7f022c26e386facc9) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
70
+
48
71
  - Added dependency [`@opentelemetry/context-async-hooks@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-async-hooks/v/2.0.1) (to `dependencies`)
49
72
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
50
73
 
51
- - [#1395](https://github.com/graphql-hive/gateway/pull/1395) [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
52
- - Updated dependency [`@graphql-mesh/cache-cfw-kv@0.105.8-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-cfw-kv/v/0.105.8) (from `^0.105.7`, in `dependencies`)
53
- - Updated dependency [`@graphql-mesh/cache-localforage@0.105.9-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-localforage/v/0.105.9) (from `^0.105.8`, in `dependencies`)
54
- - Updated dependency [`@graphql-mesh/cache-redis@0.104.8-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-redis/v/0.104.8) (from `^0.104.7`, in `dependencies`)
55
- - Updated dependency [`@graphql-mesh/cache-upstash-redis@0.1.8-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-upstash-redis/v/0.1.8) (from `^0.1.7`, in `dependencies`)
56
- - Updated dependency [`@graphql-mesh/types@0.104.8-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.8) (from `^0.104.7`, in `dependencies`)
57
- - Updated dependency [`@graphql-mesh/utils@0.104.8-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.8) (from `^0.104.7`, in `dependencies`)
58
74
 
59
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
75
+ - [#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:
76
+
77
+ - Updated dependency [`@graphql-mesh/cache-cfw-kv@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-cfw-kv/v/0.105.8) (from `^0.105.7`, in `dependencies`)
78
+ - Updated dependency [`@graphql-mesh/cache-localforage@^0.105.9` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-localforage/v/0.105.9) (from `^0.105.8`, in `dependencies`)
79
+ - Updated dependency [`@graphql-mesh/cache-redis@^0.104.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-redis/v/0.104.8) (from `^0.104.7`, in `dependencies`)
80
+ - Updated dependency [`@graphql-mesh/cache-upstash-redis@^0.1.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-upstash-redis/v/0.1.8) (from `^0.1.7`, in `dependencies`)
81
+ - 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`)
82
+ - 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`)
83
+
84
+
85
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
86
+
60
87
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
61
88
  - Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
62
89
  - Added dependency [`@opentelemetry/api-logs@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.203.0) (to `dependencies`)
@@ -72,21 +99,20 @@
72
99
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
73
100
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
74
101
  - Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
75
-
76
- - Updated dependencies [[`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`d44e0ca`](https://github.com/graphql-hive/gateway/commit/d44e0ca64264c6ad4ba7ec4d5f9b0df870198775), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`a801357`](https://github.com/graphql-hive/gateway/commit/a8013570af5bb6c9bc09d35fcbd8d46131c11a29), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`4e73586`](https://github.com/graphql-hive/gateway/commit/4e73586b870ce64a1024f1a1bd45a86c161d8e00), [`f02dc3f`](https://github.com/graphql-hive/gateway/commit/f02dc3f05751bc9c8c2d743cf32c29f2e44ad37d), [`134630c`](https://github.com/graphql-hive/gateway/commit/134630c6e5665dd6e8f52e23d365df30a42d3737), [`d44e0ca`](https://github.com/graphql-hive/gateway/commit/d44e0ca64264c6ad4ba7ec4d5f9b0df870198775), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`1a76bd5`](https://github.com/graphql-hive/gateway/commit/1a76bd5dd56a2d4d6f17c958687b51fa4d9e7212), [`bf679f8`](https://github.com/graphql-hive/gateway/commit/bf679f89c8b170360562a8d60502d4481333ce1f), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`a35db0e`](https://github.com/graphql-hive/gateway/commit/a35db0eb9b1ae09a7bdab704e457d4d863412a8f), [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069), [`c1f345f`](https://github.com/graphql-hive/gateway/commit/c1f345f6a9dfbdc90b3c29da9d9bb5f05ceea3c2), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`0d2700b`](https://github.com/graphql-hive/gateway/commit/0d2700bb9c2577445fa5e74cbecfa10d09fbd7c4), [`e03bae3`](https://github.com/graphql-hive/gateway/commit/e03bae3bf2727e1d402b994051e2e2f6ce021de9), [`fcedfa6`](https://github.com/graphql-hive/gateway/commit/fcedfa636ce98d4a1fbdaa501792b2e3446d9dd5), [`0511168`](https://github.com/graphql-hive/gateway/commit/0511168786cef39d26b73f447b7c0f72320ff137), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`672045c`](https://github.com/graphql-hive/gateway/commit/672045c18a1aec130d06d9b09bd29f512d0d9244), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`c1f345f`](https://github.com/graphql-hive/gateway/commit/c1f345f6a9dfbdc90b3c29da9d9bb5f05ceea3c2), [`d6de3df`](https://github.com/graphql-hive/gateway/commit/d6de3dfebe3cde499705fe89f17b1f0eeae368d0)]:
77
- - @graphql-hive/gateway-runtime@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
78
- - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
79
- - @graphql-hive/pubsub@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
80
- - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
81
- - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
82
- - @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
83
- - @graphql-mesh/plugin-prometheus@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
84
- - @graphql-mesh/transport-http@1.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
85
- - @graphql-mesh/transport-http-callback@1.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
86
- - @graphql-mesh/transport-ws@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
87
- - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
88
- - @graphql-hive/importer@2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
89
- - @graphql-hive/logger@1.0.1-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94
102
+ - Updated dependencies [[`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`a2312e1`](https://github.com/graphql-hive/gateway/commit/a2312e13ae88269457c61c2ef16d01f43207a0d2), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`aa77f55`](https://github.com/graphql-hive/gateway/commit/aa77f554a260b2bfaa5bb516d25d00ac717cb97d), [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`cfa763a`](https://github.com/graphql-hive/gateway/commit/cfa763ac9d75310b916064168f8a2c14fc9853ef), [`0a2d8ab`](https://github.com/graphql-hive/gateway/commit/0a2d8abfa4d8e9dacba156055b1230de8d389551), [`4c667df`](https://github.com/graphql-hive/gateway/commit/4c667dfc22371fd0b78f56d7f022c26e386facc9), [`a2312e1`](https://github.com/graphql-hive/gateway/commit/a2312e13ae88269457c61c2ef16d01f43207a0d2), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`42de363`](https://github.com/graphql-hive/gateway/commit/42de3635744b881032b098eb42a1b8e7103bb09f), [`b22e33c`](https://github.com/graphql-hive/gateway/commit/b22e33c09d82f27889a1d49f05c94c814d858fcc), [`33a89bd`](https://github.com/graphql-hive/gateway/commit/33a89bd92774d4b1331e726f15816b942a2d0892), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`2cb44ee`](https://github.com/graphql-hive/gateway/commit/2cb44ee21ec00210a9e292b40f0e1964e03ec09f), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`7019f12`](https://github.com/graphql-hive/gateway/commit/7019f12f0a571df4c9fd8908110c8b33436a3063), [`f25f27e`](https://github.com/graphql-hive/gateway/commit/f25f27e7c4fa9f38626c19d2f94e62d53dedc03e), [`e70fb84`](https://github.com/graphql-hive/gateway/commit/e70fb84f7acaa7756116f4c4f4dedf9a72c25b6b), [`7e79f17`](https://github.com/graphql-hive/gateway/commit/7e79f17973c5711ee1be87b80f653a5a293075a2), [`8e4e52f`](https://github.com/graphql-hive/gateway/commit/8e4e52f5204ae992704f4edc656c422271b341b7), [`7019f12`](https://github.com/graphql-hive/gateway/commit/7019f12f0a571df4c9fd8908110c8b33436a3063), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`590b930`](https://github.com/graphql-hive/gateway/commit/590b93040edc6309728e4fda72168fc2d13681a9), [`33a89bd`](https://github.com/graphql-hive/gateway/commit/33a89bd92774d4b1331e726f15816b942a2d0892), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`d031c51`](https://github.com/graphql-hive/gateway/commit/d031c51b8cdc244fbbc566fb7f32e48ad0f4283f)]:
103
+ - @graphql-hive/gateway-runtime@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
104
+ - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
105
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
106
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
107
+ - @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
108
+ - @graphql-mesh/plugin-prometheus@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
109
+ - @graphql-mesh/transport-http@1.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
110
+ - @graphql-mesh/transport-http-callback@1.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
111
+ - @graphql-mesh/transport-ws@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
112
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
113
+ - @graphql-hive/importer@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
114
+ - @graphql-hive/pubsub@2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8
115
+ - @graphql-hive/logger@1.0.1-alpha-7625c1551f14239f6a14a5dd46032344701587d8
90
116
 
91
117
  ## 1.16.3
92
118
 
package/dist/bin.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  require('dotenv/config');
4
4
  var module$1 = require('node:module');
5
5
  var logger = require('@graphql-hive/logger');
6
- var cli = require('./cli-DqXsx5Cd.cjs');
6
+ var cli = require('./cli-Cm9aDkDW.cjs');
7
7
  require('node:cluster');
8
8
  require('node:os');
9
9
  require('node:path');
package/dist/bin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import 'dotenv/config';
3
3
  import module from 'node:module';
4
4
  import { Logger } from '@graphql-hive/logger';
5
- import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-BG8XaVLT.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-BPJkk_8e.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -6,7 +6,7 @@ import { Option, Command, InvalidArgumentError } from '@commander-js/extra-typin
6
6
  import { LegacyLogger, Logger } from '@graphql-hive/logger';
7
7
  import { renderGraphiQL } from '@graphql-yoga/render-graphiql';
8
8
  import { getGraphQLWSOptions, createLoggerFromLogging, createGatewayRuntime } from '@graphql-hive/gateway-runtime';
9
- import { MemPubSub } from '@graphql-hive/pubsub';
9
+ import { PubSub } from '@graphql-hive/pubsub';
10
10
  import { registerTerminateHandler, isUrl } from '@graphql-mesh/utils';
11
11
  import { lstat, watch } from 'node:fs/promises';
12
12
  import { pathToFileURL } from 'node:url';
@@ -764,7 +764,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
764
764
  if (reporting) {
765
765
  registryConfig.reporting = reporting;
766
766
  }
767
- const pubsub = loadedConfig.pubsub || new MemPubSub();
767
+ const pubsub = loadedConfig.pubsub || new PubSub();
768
768
  const cwd = loadedConfig.cwd || process.cwd();
769
769
  if (loadedConfig.logging != null) {
770
770
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -902,7 +902,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
902
902
  if (reporting) {
903
903
  registryConfig.reporting = reporting;
904
904
  }
905
- const pubsub = loadedConfig.pubsub || new MemPubSub();
905
+ const pubsub = loadedConfig.pubsub || new PubSub();
906
906
  const cwd = loadedConfig.cwd || process.cwd();
907
907
  if (loadedConfig.logging != null) {
908
908
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -1136,7 +1136,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
1136
1136
  if (reporting) {
1137
1137
  registryConfig.reporting = reporting;
1138
1138
  }
1139
- const pubsub = loadedConfig.pubsub || new MemPubSub();
1139
+ const pubsub = loadedConfig.pubsub || new PubSub();
1140
1140
  const cwd = loadedConfig.cwd || process.cwd();
1141
1141
  if (loadedConfig.logging != null) {
1142
1142
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -771,7 +771,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
771
771
  if (reporting) {
772
772
  registryConfig.reporting = reporting;
773
773
  }
774
- const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
774
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
775
775
  const cwd = loadedConfig.cwd || process.cwd();
776
776
  if (loadedConfig.logging != null) {
777
777
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
@@ -909,7 +909,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
909
909
  if (reporting) {
910
910
  registryConfig.reporting = reporting;
911
911
  }
912
- const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
912
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
913
913
  const cwd = loadedConfig.cwd || process.cwd();
914
914
  if (loadedConfig.logging != null) {
915
915
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
@@ -1143,7 +1143,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
1143
1143
  if (reporting) {
1144
1144
  registryConfig.reporting = reporting;
1145
1145
  }
1146
- const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
1146
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
1147
1147
  const cwd = loadedConfig.cwd || process.cwd();
1148
1148
  if (loadedConfig.logging != null) {
1149
1149
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-DqXsx5Cd.cjs');
3
+ var cli = require('./cli-Cm9aDkDW.cjs');
4
4
  var logger = require('@graphql-hive/logger');
5
5
  var gatewayRuntime = require('@graphql-hive/gateway-runtime');
6
6
  var pubsub = require('@graphql-hive/pubsub');
@@ -59,6 +59,10 @@ exports.getBuiltinPluginsFromConfig = cli.getBuiltinPluginsFromConfig;
59
59
  exports.getCacheInstanceFromConfig = cli.getCacheInstanceFromConfig;
60
60
  exports.handleNodeWarnings = cli.handleNodeWarnings;
61
61
  exports.run = cli.run;
62
+ Object.defineProperty(exports, "PubSub", {
63
+ enumerable: true,
64
+ get: function () { return pubsub.PubSub; }
65
+ });
62
66
  Object.defineProperty(exports, "usePrometheus", {
63
67
  enumerable: true,
64
68
  get: function () { return pluginPrometheus__default.default; }
@@ -119,12 +123,6 @@ Object.keys(gatewayRuntime).forEach(function (k) {
119
123
  get: function () { return gatewayRuntime[k]; }
120
124
  });
121
125
  });
122
- Object.keys(pubsub).forEach(function (k) {
123
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
124
- enumerable: true,
125
- get: function () { return pubsub[k]; }
126
- });
127
- });
128
126
  Object.keys(pluginJwtAuth).forEach(function (k) {
129
127
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
130
128
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -5,8 +5,8 @@ export * from '@graphql-hive/gateway-runtime';
5
5
  import { Logger } from '@graphql-hive/logger';
6
6
  export * from '@graphql-hive/logger';
7
7
  import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
8
- import { PubSub } from '@graphql-hive/pubsub';
9
- export * from '@graphql-hive/pubsub';
8
+ import { HivePubSub } from '@graphql-hive/pubsub';
9
+ export { PubSub } from '@graphql-hive/pubsub';
10
10
  import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
11
11
  export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
12
12
  import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
@@ -76,10 +76,9 @@ interface ServerConfigSSLCredentials {
76
76
  ssl_prefer_low_memory_usage?: boolean;
77
77
  }
78
78
 
79
- type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig | GatewayCLIProxyConfig) & ServerConfig & {
79
+ type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>> = (GatewayCLISupergraphConfig<TContext> | GatewayCLISubgraphConfig<TContext> | GatewayCLIProxyConfig<TContext>) & ServerConfig & {
80
80
  /**
81
- * Count of workers to spawn. Defaults to `os.availableParallelism()` when NODE_ENV
82
- * is "production", otherwise only one (the main) worker.
81
+ * Count of workers to spawn.
83
82
  */
84
83
  fork?: number;
85
84
  /**
@@ -91,7 +90,7 @@ type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig |
91
90
  */
92
91
  pollingInterval?: number;
93
92
  } & GatewayCLIBuiltinPluginConfig;
94
- interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supergraph' | 'cache' | 'reporting'> {
93
+ interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSupergraph<TContext>, 'supergraph' | 'cache' | 'reporting'> {
95
94
  /**
96
95
  * SDL, path or an URL to the Federation Supergraph.
97
96
  *
@@ -99,7 +98,7 @@ interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supe
99
98
  *
100
99
  * @default 'supergraph.graphql'
101
100
  */
102
- supergraph?: GatewayConfigSupergraph['supergraph'];
101
+ supergraph?: GatewayConfigSupergraph<TContext>['supergraph'];
103
102
  /** Usage reporting options. */
104
103
  reporting?: GatewayCLIHiveReportingOptions | GatewayGraphOSReportingOptions;
105
104
  }
@@ -117,7 +116,7 @@ interface GatewayCLIHiveReportingOptions extends Omit<GatewayHiveReportingOption
117
116
  */
118
117
  token?: GatewayHiveReportingOptions['token'];
119
118
  }
120
- interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph' | 'cache'> {
119
+ interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSubgraph<TContext>, 'subgraph' | 'cache'> {
121
120
  /**
122
121
  * SDL, path or an URL to the Federation Supergraph.
123
122
  *
@@ -125,17 +124,17 @@ interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph
125
124
  *
126
125
  * @default 'subgraph.graphql'
127
126
  */
128
- subgraph?: GatewayConfigSubgraph['subgraph'];
127
+ subgraph?: GatewayConfigSubgraph<TContext>['subgraph'];
129
128
  }
130
- interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cache'> {
129
+ interface GatewayCLIProxyConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigProxy<TContext>, 'proxy' | 'cache'> {
131
130
  /**
132
131
  * HTTP executor to proxy all incoming requests to another HTTP endpoint.
133
132
  */
134
- proxy?: GatewayConfigProxy['proxy'];
133
+ proxy?: GatewayConfigProxy<TContext>['proxy'];
135
134
  }
136
135
  type KeyValueCacheFactoryFn = (ctx: {
137
136
  log: Logger;
138
- pubsub: PubSub;
137
+ pubsub: HivePubSub;
139
138
  cwd: string;
140
139
  }) => KeyValueCache;
141
140
  interface GatewayCLIBuiltinPluginConfig {
@@ -221,7 +220,7 @@ type GatewayCLIUpstashRedisCacheConfig = {
221
220
  /**
222
221
  * Type helper for defining the config.
223
222
  */
224
- declare function defineConfig(config: GatewayCLIConfig): GatewayCLIConfig;
223
+ declare function defineConfig<TContext extends Record<string, any> = Record<string, any>>(config: GatewayCLIConfig<TContext>): GatewayCLIConfig<TContext>;
225
224
  /** The context of the running program. */
226
225
  interface CLIContext {
227
226
  /** @default new DefaultLogger() */
@@ -321,7 +320,7 @@ declare function enableModuleCachingIfPossible(): void;
321
320
  declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
322
321
  cache: KeyValueCache;
323
322
  log: Logger;
324
- pubsub: PubSub;
323
+ pubsub: HivePubSub;
325
324
  cwd: string;
326
325
  }): Promise<GatewayPlugin[]>;
327
326
  /**
@@ -330,7 +329,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
330
329
  */
331
330
  declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
332
331
  log: Logger;
333
- pubsub: PubSub;
332
+ pubsub: HivePubSub;
334
333
  cwd: string;
335
334
  }): Promise<KeyValueCache>;
336
335
 
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export * from '@graphql-hive/gateway-runtime';
5
5
  import { Logger } from '@graphql-hive/logger';
6
6
  export * from '@graphql-hive/logger';
7
7
  import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
8
- import { PubSub } from '@graphql-hive/pubsub';
9
- export * from '@graphql-hive/pubsub';
8
+ import { HivePubSub } from '@graphql-hive/pubsub';
9
+ export { PubSub } from '@graphql-hive/pubsub';
10
10
  import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
11
11
  export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
12
12
  import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
@@ -76,10 +76,9 @@ interface ServerConfigSSLCredentials {
76
76
  ssl_prefer_low_memory_usage?: boolean;
77
77
  }
78
78
 
79
- type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig | GatewayCLIProxyConfig) & ServerConfig & {
79
+ type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>> = (GatewayCLISupergraphConfig<TContext> | GatewayCLISubgraphConfig<TContext> | GatewayCLIProxyConfig<TContext>) & ServerConfig & {
80
80
  /**
81
- * Count of workers to spawn. Defaults to `os.availableParallelism()` when NODE_ENV
82
- * is "production", otherwise only one (the main) worker.
81
+ * Count of workers to spawn.
83
82
  */
84
83
  fork?: number;
85
84
  /**
@@ -91,7 +90,7 @@ type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig |
91
90
  */
92
91
  pollingInterval?: number;
93
92
  } & GatewayCLIBuiltinPluginConfig;
94
- interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supergraph' | 'cache' | 'reporting'> {
93
+ interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSupergraph<TContext>, 'supergraph' | 'cache' | 'reporting'> {
95
94
  /**
96
95
  * SDL, path or an URL to the Federation Supergraph.
97
96
  *
@@ -99,7 +98,7 @@ interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supe
99
98
  *
100
99
  * @default 'supergraph.graphql'
101
100
  */
102
- supergraph?: GatewayConfigSupergraph['supergraph'];
101
+ supergraph?: GatewayConfigSupergraph<TContext>['supergraph'];
103
102
  /** Usage reporting options. */
104
103
  reporting?: GatewayCLIHiveReportingOptions | GatewayGraphOSReportingOptions;
105
104
  }
@@ -117,7 +116,7 @@ interface GatewayCLIHiveReportingOptions extends Omit<GatewayHiveReportingOption
117
116
  */
118
117
  token?: GatewayHiveReportingOptions['token'];
119
118
  }
120
- interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph' | 'cache'> {
119
+ interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSubgraph<TContext>, 'subgraph' | 'cache'> {
121
120
  /**
122
121
  * SDL, path or an URL to the Federation Supergraph.
123
122
  *
@@ -125,17 +124,17 @@ interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph
125
124
  *
126
125
  * @default 'subgraph.graphql'
127
126
  */
128
- subgraph?: GatewayConfigSubgraph['subgraph'];
127
+ subgraph?: GatewayConfigSubgraph<TContext>['subgraph'];
129
128
  }
130
- interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cache'> {
129
+ interface GatewayCLIProxyConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigProxy<TContext>, 'proxy' | 'cache'> {
131
130
  /**
132
131
  * HTTP executor to proxy all incoming requests to another HTTP endpoint.
133
132
  */
134
- proxy?: GatewayConfigProxy['proxy'];
133
+ proxy?: GatewayConfigProxy<TContext>['proxy'];
135
134
  }
136
135
  type KeyValueCacheFactoryFn = (ctx: {
137
136
  log: Logger;
138
- pubsub: PubSub;
137
+ pubsub: HivePubSub;
139
138
  cwd: string;
140
139
  }) => KeyValueCache;
141
140
  interface GatewayCLIBuiltinPluginConfig {
@@ -221,7 +220,7 @@ type GatewayCLIUpstashRedisCacheConfig = {
221
220
  /**
222
221
  * Type helper for defining the config.
223
222
  */
224
- declare function defineConfig(config: GatewayCLIConfig): GatewayCLIConfig;
223
+ declare function defineConfig<TContext extends Record<string, any> = Record<string, any>>(config: GatewayCLIConfig<TContext>): GatewayCLIConfig<TContext>;
225
224
  /** The context of the running program. */
226
225
  interface CLIContext {
227
226
  /** @default new DefaultLogger() */
@@ -321,7 +320,7 @@ declare function enableModuleCachingIfPossible(): void;
321
320
  declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
322
321
  cache: KeyValueCache;
323
322
  log: Logger;
324
- pubsub: PubSub;
323
+ pubsub: HivePubSub;
325
324
  cwd: string;
326
325
  }): Promise<GatewayPlugin[]>;
327
326
  /**
@@ -330,7 +329,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
330
329
  */
331
330
  declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
332
331
  log: Logger;
333
- pubsub: PubSub;
332
+ pubsub: HivePubSub;
334
333
  cwd: string;
335
334
  }): Promise<KeyValueCache>;
336
335
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-BG8XaVLT.js';
1
+ export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-BPJkk_8e.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
- export * from '@graphql-hive/pubsub';
4
+ export { PubSub } from '@graphql-hive/pubsub';
5
5
  export * from '@graphql-mesh/plugin-jwt-auth';
6
6
  export * from '@graphql-mesh/plugin-opentelemetry';
7
7
  export * from '@graphql-mesh/plugin-prometheus';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
3
+ "version": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,30 +53,30 @@
53
53
  "@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
54
54
  "@escape.tech/graphql-armor-max-depth": "^2.4.0",
55
55
  "@escape.tech/graphql-armor-max-tokens": "^2.5.0",
56
- "@graphql-hive/gateway-runtime": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
57
- "@graphql-hive/importer": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
58
- "@graphql-hive/logger": "1.0.1-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
59
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
60
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
61
- "@graphql-hive/pubsub": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
62
- "@graphql-mesh/cache-cfw-kv": "0.105.8-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb",
63
- "@graphql-mesh/cache-localforage": "0.105.9-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb",
64
- "@graphql-mesh/cache-redis": "0.104.8-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb",
65
- "@graphql-mesh/cache-upstash-redis": "0.1.8-alpha-20250820153219-b2217809810400a0a95b79558f0166ddb563f0bb",
56
+ "@graphql-hive/gateway-runtime": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
57
+ "@graphql-hive/importer": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
58
+ "@graphql-hive/logger": "1.0.1-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
59
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
60
+ "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
61
+ "@graphql-hive/pubsub": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
62
+ "@graphql-mesh/cache-cfw-kv": "^0.105.8",
63
+ "@graphql-mesh/cache-localforage": "^0.105.9",
64
+ "@graphql-mesh/cache-redis": "^0.104.8",
65
+ "@graphql-mesh/cache-upstash-redis": "^0.1.8",
66
66
  "@graphql-mesh/cross-helpers": "^0.4.10",
67
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
67
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
68
68
  "@graphql-mesh/plugin-http-cache": "^0.105.8",
69
69
  "@graphql-mesh/plugin-jit": "^0.2.7",
70
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
71
- "@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
72
- "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
70
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
71
+ "@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
72
+ "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
73
73
  "@graphql-mesh/plugin-rate-limit": "^0.104.7",
74
74
  "@graphql-mesh/plugin-snapshot": "^0.104.7",
75
- "@graphql-mesh/transport-http": "1.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
76
- "@graphql-mesh/transport-http-callback": "1.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
77
- "@graphql-mesh/transport-ws": "2.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
78
- "@graphql-mesh/types": "0.104.8-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0",
79
- "@graphql-mesh/utils": "0.104.8-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0",
75
+ "@graphql-mesh/transport-http": "1.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
76
+ "@graphql-mesh/transport-http-callback": "1.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
77
+ "@graphql-mesh/transport-ws": "2.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
78
+ "@graphql-mesh/types": "^0.104.8",
79
+ "@graphql-mesh/utils": "^0.104.8",
80
80
  "@graphql-tools/code-file-loader": "^8.1.22",
81
81
  "@graphql-tools/graphql-file-loader": "^8.0.22",
82
82
  "@graphql-tools/load": "^8.1.2",
@@ -103,7 +103,7 @@
103
103
  "ws": "^8.18.3"
104
104
  },
105
105
  "devDependencies": {
106
- "@graphql-mesh/transport-common": "1.0.0-alpha-ca401d1cefc8e4a59fc8b9f3f747ca5a83206e94",
106
+ "@graphql-mesh/transport-common": "1.0.0-alpha-7625c1551f14239f6a14a5dd46032344701587d8",
107
107
  "@graphql-mesh/transport-soap": "^0.10.8",
108
108
  "@graphql-tools/executor": "^1.4.9",
109
109
  "@rollup/plugin-commonjs": "^28.0.0",
@@ -112,11 +112,11 @@
112
112
  "@rollup/plugin-sucrase": "^5.0.2",
113
113
  "@tsconfig/node18": "^18.2.4",
114
114
  "@types/adm-zip": "^0.5.5",
115
- "@types/bun": "1.2.18",
115
+ "@types/bun": "1.2.21",
116
116
  "@types/ws": "^8.5.12",
117
- "@whatwg-node/fetch": "^0.10.9",
117
+ "@whatwg-node/fetch": "^0.10.10",
118
118
  "adm-zip": "^0.5.15",
119
- "bun": "^1.2.18",
119
+ "bun": "^1.2.21",
120
120
  "graphql": "^16.9.0",
121
121
  "parse-duration": "^2.0.0",
122
122
  "pkgroll": "2.15.0",