@graphql-hive/gateway 2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406 → 2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862

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,15 +1,63 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
3
+ ## 2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
4
4
  ### Major Changes
5
5
 
6
6
 
7
7
 
8
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4e54d48`](https://github.com/graphql-hive/gateway/commit/4e54d48d3a2858f71a1b67efad115038a026c175) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Sane security defaults, max token and depths limits enabled by default
9
+
10
+ Max token limit defaults to 1000 (can be configured via `maxTokens` option) and max depth limit defaults to 8 (can be configured via `maxDepth` option).
11
+
12
+
8
13
  - [#956](https://github.com/graphql-hive/gateway/pull/956) [`22bd3f7`](https://github.com/graphql-hive/gateway/commit/22bd3f70d2901738d4c35e02282569546b820b11) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
9
14
 
10
15
  Least supported Node version is now v20.
11
16
 
12
17
 
18
+ - [#1419](https://github.com/graphql-hive/gateway/pull/1419) [`6e8de6c`](https://github.com/graphql-hive/gateway/commit/6e8de6cfc4b0e57a55d5019c5c72ff347396d96e) Thanks [@ardatan](https://github.com/ardatan)! - `useDeduplicateRequest()` plugin has been removed in favour of the built-in inflight request deduplication
19
+
20
+ To migrate, simply remove the plugin from your configuration and you're good to go!
21
+
22
+ ```diff
23
+ import {
24
+ defineConfig,
25
+ - useDeduplicateRequest,
26
+ } from '@graphql-hive/gateway'
27
+
28
+ export const gatewayConfig = defineConfig({
29
+ - plugins: ctx => [useDeduplicateRequest(ctx)]
30
+ })
31
+ ```
32
+
33
+ If you still want to use the deprecated plugin, you need to install it separately and use it as before:
34
+
35
+ ```sh
36
+ npm i @graphql-hive/plugin-deduplicate-request
37
+ ```
38
+
39
+ ```ts
40
+ import {
41
+ defineConfig,
42
+ useDeduplicateRequest,
43
+ type HTTPTransportOptions, // only for typedefs, otherwise not necessary
44
+ } from '@graphql-hive/gateway'
45
+ import { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request'
46
+
47
+ export const gatewayConfig = defineConfig({
48
+ transportEntries: {
49
+ '*.http': {
50
+ options: {
51
+ // disable the built in deduplication
52
+ deduplicateInflightRequests: false,
53
+ } as HTTPTransportOptions,
54
+ },
55
+ },
56
+ plugins: ctx => [useDeduplicateRequest(ctx)]
57
+ })
58
+ ```
59
+
60
+
13
61
  - [#956](https://github.com/graphql-hive/gateway/pull/956) [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
14
62
 
15
63
  - [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
@@ -72,6 +120,11 @@
72
120
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
73
121
 
74
122
 
123
+ - [#1419](https://github.com/graphql-hive/gateway/pull/1419) [`6e8de6c`](https://github.com/graphql-hive/gateway/commit/6e8de6cfc4b0e57a55d5019c5c72ff347396d96e) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
124
+
125
+ - Removed dependency [`@graphql-hive/plugin-deduplicate-request@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-deduplicate-request/v/workspace:^) (from `dependencies`)
126
+
127
+
75
128
  - [#956](https://github.com/graphql-hive/gateway/pull/956) [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
76
129
 
77
130
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
@@ -89,22 +142,26 @@
89
142
  - Added dependency [`@opentelemetry/sdk-logs@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.203.0) (to `dependencies`)
90
143
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
91
144
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
145
+ - Removed dependency [`@graphql-hive/plugin-deduplicate-request@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-deduplicate-request/v/workspace:^) (from `dependencies`)
92
146
  - Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
93
147
  - Removed dependency [`@graphql-mesh/plugin-opentelemetry@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-opentelemetry/v/workspace:^) (from `dependencies`)
148
+
149
+
150
+ - [#1419](https://github.com/graphql-hive/gateway/pull/1419) [`6e8de6c`](https://github.com/graphql-hive/gateway/commit/6e8de6cfc4b0e57a55d5019c5c72ff347396d96e) Thanks [@ardatan](https://github.com/ardatan)! - Inflight request deduplication
151
+
94
152
  - Updated dependencies [[`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`f09c4a7`](https://github.com/graphql-hive/gateway/commit/f09c4a74e37c29d4a44cc5612078754e38e54c4a), [`dafd3a1`](https://github.com/graphql-hive/gateway/commit/dafd3a17f02cb85963d6004665017e4733f14fb8), [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a), [`475ef5c`](https://github.com/graphql-hive/gateway/commit/475ef5cad6c7b7328a18e4d6b851bbcafb09d1a1), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`b4ac110`](https://github.com/graphql-hive/gateway/commit/b4ac11056eface0747eb5a94217e773787b87834), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a), [`22bd3f7`](https://github.com/graphql-hive/gateway/commit/22bd3f70d2901738d4c35e02282569546b820b11), [`5cbfc38`](https://github.com/graphql-hive/gateway/commit/5cbfc389021dcf616402788080ffb56b69ff6019), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`f238e21`](https://github.com/graphql-hive/gateway/commit/f238e215ef5ac9b8c93458d4889bf80f85a574ed), [`5dee497`](https://github.com/graphql-hive/gateway/commit/5dee497a3a2908bd2c18b8f50c1c9226023abe1f), [`44530c2`](https://github.com/graphql-hive/gateway/commit/44530c2713a1039e420a793c76fc4dc2231b936e), [`c84b36e`](https://github.com/graphql-hive/gateway/commit/c84b36e1125a8ab3bd8e988be285b96c8545073d), [`00047fd`](https://github.com/graphql-hive/gateway/commit/00047fd581f257d8be5499a25ee80425fb01fc85), [`f238e21`](https://github.com/graphql-hive/gateway/commit/f238e215ef5ac9b8c93458d4889bf80f85a574ed), [`76073af`](https://github.com/graphql-hive/gateway/commit/76073af61b408de42c85f21696cf20a0d97e4027), [`b4f5042`](https://github.com/graphql-hive/gateway/commit/b4f5042c2f152252918a8814d060e39cb9551cdd), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`61f45a1`](https://github.com/graphql-hive/gateway/commit/61f45a13e1175bfb30fbd397604c92ee1fd19a1a)]:
95
- - @graphql-hive/gateway-runtime@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
96
- - @graphql-hive/plugin-opentelemetry@1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
97
- - @graphql-hive/pubsub@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
98
- - @graphql-mesh/plugin-prometheus@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
99
- - @graphql-mesh/hmac-upstream-signature@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
100
- - @graphql-hive/plugin-deduplicate-request@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
101
- - @graphql-mesh/transport-http-callback@1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
102
- - @graphql-hive/plugin-aws-sigv4@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
103
- - @graphql-mesh/plugin-jwt-auth@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
104
- - @graphql-mesh/transport-http@1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
105
- - @graphql-mesh/transport-ws@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
106
- - @graphql-hive/importer@2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406
107
- - @graphql-hive/logger@1.0.1-next-8c427cf82ca0b277e7a0a1769787715c29128406
153
+ - @graphql-hive/gateway-runtime@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
154
+ - @graphql-hive/plugin-opentelemetry@1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
155
+ - @graphql-hive/pubsub@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
156
+ - @graphql-mesh/plugin-prometheus@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
157
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
158
+ - @graphql-mesh/transport-http-callback@1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
159
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
160
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
161
+ - @graphql-mesh/transport-http@1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
162
+ - @graphql-mesh/transport-ws@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
163
+ - @graphql-hive/importer@2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862
164
+ - @graphql-hive/logger@1.0.1-next-2a0b8663a89225a53c189fba077d83ed174fc862
108
165
 
109
166
  ## 1.16.5
110
167
  ### Patch Changes
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-oA6gRjRg.cjs');
6
+ var cli = require('./cli-I11XGX7K.cjs');
7
7
  require('node:cluster');
8
8
  require('node:os');
9
9
  require('node:path');
@@ -28,7 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
28
 
29
29
  var module__default = /*#__PURE__*/_interopDefault(module$1);
30
30
 
31
- globalThis.__VERSION__ = '2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406';
31
+ globalThis.__VERSION__ = '2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862';
32
32
  module__default.default.register("@graphql-hive/importer/hooks", {
33
33
  parentURL: (
34
34
  // @ts-ignore bob will complain when bundling for cjs
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-CY4TASP9.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-DgZZk0HC.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -22,7 +22,7 @@ import '@graphql-tools/code-file-loader';
22
22
  import '@graphql-tools/graphql-file-loader';
23
23
  import '@graphql-tools/load';
24
24
 
25
- globalThis.__VERSION__ = '2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406';
25
+ globalThis.__VERSION__ = '2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862';
26
26
  module.register("@graphql-hive/importer/hooks", {
27
27
  parentURL: (
28
28
  // @ts-ignore bob will complain when bundling for cjs
@@ -196,20 +196,20 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
196
196
  const { useAWSSigv4 } = await import('@graphql-hive/plugin-aws-sigv4');
197
197
  plugins.push(useAWSSigv4(config.awsSigv4));
198
198
  }
199
- if (config.maxTokens) {
199
+ if (config.maxTokens || config.maxTokens === void 0) {
200
200
  const { maxTokensPlugin: useMaxTokens } = await import('@escape.tech/graphql-armor-max-tokens');
201
201
  const maxTokensPlugin = useMaxTokens({
202
- n: config.maxTokens === true ? 1e3 : config.maxTokens
202
+ n: typeof config.maxTokens === "number" ? config.maxTokens : 1e3
203
203
  });
204
204
  plugins.push(
205
205
  // @ts-expect-error the armor plugin does not inherit the context
206
206
  maxTokensPlugin
207
207
  );
208
208
  }
209
- if (config.maxDepth) {
209
+ if (config.maxDepth || config.maxDepth === void 0) {
210
210
  const { maxDepthPlugin: useMaxDepth } = await import('@escape.tech/graphql-armor-max-depth');
211
211
  const maxDepthPlugin = useMaxDepth({
212
- n: config.maxDepth === true ? 6 : config.maxDepth
212
+ n: typeof config.maxDepth === "number" ? config.maxDepth : 7
213
213
  });
214
214
  plugins.push(
215
215
  // @ts-expect-error the armor plugin does not inherit the context
@@ -203,20 +203,20 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
203
203
  const { useAWSSigv4 } = await import('@graphql-hive/plugin-aws-sigv4');
204
204
  plugins.push(useAWSSigv4(config.awsSigv4));
205
205
  }
206
- if (config.maxTokens) {
206
+ if (config.maxTokens || config.maxTokens === void 0) {
207
207
  const { maxTokensPlugin: useMaxTokens } = await import('@escape.tech/graphql-armor-max-tokens');
208
208
  const maxTokensPlugin = useMaxTokens({
209
- n: config.maxTokens === true ? 1e3 : config.maxTokens
209
+ n: typeof config.maxTokens === "number" ? config.maxTokens : 1e3
210
210
  });
211
211
  plugins.push(
212
212
  // @ts-expect-error the armor plugin does not inherit the context
213
213
  maxTokensPlugin
214
214
  );
215
215
  }
216
- if (config.maxDepth) {
216
+ if (config.maxDepth || config.maxDepth === void 0) {
217
217
  const { maxDepthPlugin: useMaxDepth } = await import('@escape.tech/graphql-armor-max-depth');
218
218
  const maxDepthPlugin = useMaxDepth({
219
- n: config.maxDepth === true ? 6 : config.maxDepth
219
+ n: typeof config.maxDepth === "number" ? config.maxDepth : 7
220
220
  });
221
221
  plugins.push(
222
222
  // @ts-expect-error the armor plugin does not inherit the context
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-oA6gRjRg.cjs');
3
+ var cli = require('./cli-I11XGX7K.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');
@@ -8,7 +8,6 @@ var pluginJwtAuth = require('@graphql-mesh/plugin-jwt-auth');
8
8
  var pluginPrometheus = require('@graphql-mesh/plugin-prometheus');
9
9
  var pluginRateLimit = require('@graphql-mesh/plugin-rate-limit');
10
10
  var pluginHttpCache = require('@graphql-mesh/plugin-http-cache');
11
- var pluginDeduplicateRequest = require('@graphql-hive/plugin-deduplicate-request');
12
11
  var pluginSnapshot = require('@graphql-mesh/plugin-snapshot');
13
12
  var cacheCfwKv = require('@graphql-mesh/cache-cfw-kv');
14
13
  var cacheRedis = require('@graphql-mesh/cache-redis');
@@ -70,10 +69,6 @@ Object.defineProperty(exports, "useHttpCache", {
70
69
  enumerable: true,
71
70
  get: function () { return pluginHttpCache__default.default; }
72
71
  });
73
- Object.defineProperty(exports, "useDeduplicateRequest", {
74
- enumerable: true,
75
- get: function () { return pluginDeduplicateRequest.useDeduplicateRequest; }
76
- });
77
72
  Object.defineProperty(exports, "useSnapshot", {
78
73
  enumerable: true,
79
74
  get: function () { return pluginSnapshot__default.default; }
package/dist/index.d.cts CHANGED
@@ -18,7 +18,6 @@ export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
18
18
  import { YamlConfig, KeyValueCache } from '@graphql-mesh/types';
19
19
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
20
20
  export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
21
- export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
22
21
  export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
23
22
  export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
24
23
  export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
@@ -180,18 +179,18 @@ interface GatewayCLIBuiltinPluginConfig {
180
179
  * If you would like more configuration options, please disable this feature and
181
180
  * use the [`@escape.tech/graphql-armor-max-tokens` plugin](https://escape.tech/graphql-armor/docs/plugins/max-tokens/#with-envelopcore-from-the-guild-org) instead.
182
181
  *
183
- * @default false
182
+ * @default true
184
183
  */
185
184
  maxTokens?: boolean | number;
186
185
  /**
187
186
  * Limit the depth of a GraphQL document.
188
187
  *
189
- * Passing `true` will enable the feature with the default limit of `6` levels.
188
+ * Passing `true` will enable the feature with the default limit of `7` levels.
190
189
  *
191
190
  * If you would like more configuration options, please disable this feature and
192
191
  * use the [`@escape.tech/graphql-armor-max-depth` plugin](https://escape.tech/graphql-armor/docs/plugins/max-depth/#with-envelopcore-from-the-guild-org) instead
193
192
  *
194
- * @default false
193
+ * @default true
195
194
  */
196
195
  maxDepth?: boolean | number;
197
196
  /**
package/dist/index.d.ts CHANGED
@@ -18,7 +18,6 @@ export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
18
18
  import { YamlConfig, KeyValueCache } from '@graphql-mesh/types';
19
19
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
20
20
  export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
21
- export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
22
21
  export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
23
22
  export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
24
23
  export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
@@ -180,18 +179,18 @@ interface GatewayCLIBuiltinPluginConfig {
180
179
  * If you would like more configuration options, please disable this feature and
181
180
  * use the [`@escape.tech/graphql-armor-max-tokens` plugin](https://escape.tech/graphql-armor/docs/plugins/max-tokens/#with-envelopcore-from-the-guild-org) instead.
182
181
  *
183
- * @default false
182
+ * @default true
184
183
  */
185
184
  maxTokens?: boolean | number;
186
185
  /**
187
186
  * Limit the depth of a GraphQL document.
188
187
  *
189
- * Passing `true` will enable the feature with the default limit of `6` levels.
188
+ * Passing `true` will enable the feature with the default limit of `7` levels.
190
189
  *
191
190
  * If you would like more configuration options, please disable this feature and
192
191
  * use the [`@escape.tech/graphql-armor-max-depth` plugin](https://escape.tech/graphql-armor/docs/plugins/max-depth/#with-envelopcore-from-the-guild-org) instead
193
192
  *
194
- * @default false
193
+ * @default true
195
194
  */
196
195
  maxDepth?: boolean | number;
197
196
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
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-CY4TASP9.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-DgZZk0HC.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
4
  export * from '@graphql-hive/pubsub';
@@ -7,7 +7,6 @@ export * from '@graphql-mesh/plugin-prometheus';
7
7
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
8
8
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
9
9
  export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
10
- export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
11
10
  export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
12
11
  export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
13
12
  export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
3
+ "version": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,28 +83,27 @@
83
83
  "@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
84
84
  "@escape.tech/graphql-armor-max-depth": "^2.4.0",
85
85
  "@escape.tech/graphql-armor-max-tokens": "^2.5.0",
86
- "@graphql-hive/gateway-runtime": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
87
- "@graphql-hive/importer": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
88
- "@graphql-hive/logger": "1.0.1-next-8c427cf82ca0b277e7a0a1769787715c29128406",
89
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
90
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
91
- "@graphql-hive/plugin-opentelemetry": "1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
92
- "@graphql-hive/pubsub": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
86
+ "@graphql-hive/gateway-runtime": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
87
+ "@graphql-hive/importer": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
88
+ "@graphql-hive/logger": "1.0.1-next-2a0b8663a89225a53c189fba077d83ed174fc862",
89
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
90
+ "@graphql-hive/plugin-opentelemetry": "1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
91
+ "@graphql-hive/pubsub": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
93
92
  "@graphql-mesh/cache-cfw-kv": "^0.105.8",
94
93
  "@graphql-mesh/cache-localforage": "^0.105.9",
95
94
  "@graphql-mesh/cache-redis": "^0.104.8",
96
95
  "@graphql-mesh/cache-upstash-redis": "^0.1.8",
97
96
  "@graphql-mesh/cross-helpers": "^0.4.10",
98
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
97
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
99
98
  "@graphql-mesh/plugin-http-cache": "^0.105.8",
100
99
  "@graphql-mesh/plugin-jit": "^0.2.7",
101
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
102
- "@graphql-mesh/plugin-prometheus": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
100
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
101
+ "@graphql-mesh/plugin-prometheus": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
103
102
  "@graphql-mesh/plugin-rate-limit": "^0.104.7",
104
103
  "@graphql-mesh/plugin-snapshot": "^0.104.7",
105
- "@graphql-mesh/transport-http": "1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
106
- "@graphql-mesh/transport-http-callback": "1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
107
- "@graphql-mesh/transport-ws": "2.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
104
+ "@graphql-mesh/transport-http": "1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
105
+ "@graphql-mesh/transport-http-callback": "1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
106
+ "@graphql-mesh/transport-ws": "2.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
108
107
  "@graphql-mesh/types": "^0.104.8",
109
108
  "@graphql-mesh/utils": "^0.104.11",
110
109
  "@graphql-tools/code-file-loader": "^8.1.22",
@@ -133,7 +132,7 @@
133
132
  "ws": "^8.18.3"
134
133
  },
135
134
  "devDependencies": {
136
- "@graphql-mesh/transport-common": "1.0.0-next-8c427cf82ca0b277e7a0a1769787715c29128406",
135
+ "@graphql-mesh/transport-common": "1.0.0-next-2a0b8663a89225a53c189fba077d83ed174fc862",
137
136
  "@graphql-mesh/transport-soap": "^0.10.8",
138
137
  "@graphql-tools/executor": "^1.4.9",
139
138
  "@rollup/plugin-commonjs": "^28.0.0",