@graphql-hive/gateway 2.0.0-next-bc53d9c6078b9eed8c375b1fc0ac30d68239068f → 2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
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 +22 -15
- package/dist/index.d.cts +9 -10
- package/dist/index.d.ts +9 -10
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-next-
|
3
|
+
## 2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
4
4
|
### Major Changes
|
5
5
|
|
6
6
|
|
@@ -31,6 +31,13 @@
|
|
31
31
|
|
32
32
|
Failing to start if the schema is not loaded for whatever reason.
|
33
33
|
|
34
|
+
### Minor Changes
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
- [#1420](https://github.com/graphql-hive/gateway/pull/1420) [`a7b277d`](https://github.com/graphql-hive/gateway/commit/a7b277d0f4784f7e9be125b3ec7de202ba86caad) Thanks [@enisdenjo](https://github.com/enisdenjo)! - The `defineConfig` accepts a TContext generic
|
39
|
+
|
40
|
+
|
34
41
|
### Patch Changes
|
35
42
|
|
36
43
|
|
@@ -92,20 +99,20 @@
|
|
92
99
|
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
93
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`)
|
94
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`)
|
95
|
-
- 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), [`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)]:
|
96
|
-
- @graphql-hive/gateway-runtime@2.0.0-next-
|
97
|
-
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-
|
98
|
-
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-
|
99
|
-
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-
|
100
|
-
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-
|
101
|
-
- @graphql-mesh/plugin-prometheus@2.0.0-next-
|
102
|
-
- @graphql-mesh/transport-http@1.0.0-next-
|
103
|
-
- @graphql-mesh/transport-http-callback@1.0.0-next-
|
104
|
-
- @graphql-mesh/transport-ws@2.0.0-next-
|
105
|
-
- @graphql-hive/plugin-aws-sigv4@2.0.0-next-
|
106
|
-
- @graphql-hive/importer@2.0.0-next-
|
107
|
-
- @graphql-hive/pubsub@2.0.0-next-
|
108
|
-
- @graphql-hive/logger@1.0.1-next-
|
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), [`a7b277d`](https://github.com/graphql-hive/gateway/commit/a7b277d0f4784f7e9be125b3ec7de202ba86caad), [`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-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
104
|
+
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
105
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
106
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
107
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
108
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
109
|
+
- @graphql-mesh/transport-http@1.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
110
|
+
- @graphql-mesh/transport-http-callback@1.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
111
|
+
- @graphql-mesh/transport-ws@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
112
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
113
|
+
- @graphql-hive/importer@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
114
|
+
- @graphql-hive/pubsub@2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
115
|
+
- @graphql-hive/logger@1.0.1-next-2eaf7086c55c30817b3d364d24469c503e43f635
|
109
116
|
|
110
117
|
## 1.16.3
|
111
118
|
|
package/dist/index.d.cts
CHANGED
@@ -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.
|
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
|
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
|
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,13 +124,13 @@ 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
|
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;
|
@@ -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() */
|
package/dist/index.d.ts
CHANGED
@@ -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.
|
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
|
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
|
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,13 +124,13 @@ 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
|
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;
|
@@ -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() */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-hive/gateway",
|
3
|
-
"version": "2.0.0-next-
|
3
|
+
"version": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -53,28 +53,28 @@
|
|
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-next-
|
57
|
-
"@graphql-hive/importer": "2.0.0-next-
|
58
|
-
"@graphql-hive/logger": "1.0.1-next-
|
59
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-
|
60
|
-
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-
|
61
|
-
"@graphql-hive/pubsub": "2.0.0-next-
|
56
|
+
"@graphql-hive/gateway-runtime": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
57
|
+
"@graphql-hive/importer": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
58
|
+
"@graphql-hive/logger": "1.0.1-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
59
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
60
|
+
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
61
|
+
"@graphql-hive/pubsub": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
62
62
|
"@graphql-mesh/cache-cfw-kv": "^0.105.8",
|
63
63
|
"@graphql-mesh/cache-localforage": "^0.105.9",
|
64
64
|
"@graphql-mesh/cache-redis": "^0.104.8",
|
65
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-next-
|
67
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
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-next-
|
71
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-
|
72
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-next-
|
70
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
71
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
72
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
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-next-
|
76
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-next-
|
77
|
-
"@graphql-mesh/transport-ws": "2.0.0-next-
|
75
|
+
"@graphql-mesh/transport-http": "1.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
76
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
77
|
+
"@graphql-mesh/transport-ws": "2.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
78
78
|
"@graphql-mesh/types": "^0.104.8",
|
79
79
|
"@graphql-mesh/utils": "^0.104.8",
|
80
80
|
"@graphql-tools/code-file-loader": "^8.1.22",
|
@@ -103,7 +103,7 @@
|
|
103
103
|
"ws": "^8.18.3"
|
104
104
|
},
|
105
105
|
"devDependencies": {
|
106
|
-
"@graphql-mesh/transport-common": "1.0.0-next-
|
106
|
+
"@graphql-mesh/transport-common": "1.0.0-next-2eaf7086c55c30817b3d364d24469c503e43f635",
|
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",
|