@graphql-hive/gateway 2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354 → 2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b

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,33 +1,81 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
3
+ ## 2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
4
4
  ### Major Changes
5
5
 
6
6
 
7
7
 
8
- - [#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
8
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) 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
+
13
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
9
14
 
10
15
  Least supported Node version is now v20.
11
16
 
12
17
 
13
- - [#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
18
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - `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
+
61
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
14
62
 
15
63
  - [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
16
64
 
17
65
  - If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
18
66
 
19
67
 
20
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`216cf81`](https://github.com/graphql-hive/gateway/commit/216cf81e435c298687409fc9d0de5255b6b08e57) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
68
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
21
69
 
22
70
  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.
23
71
 
24
72
 
25
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`9adc4dd`](https://github.com/graphql-hive/gateway/commit/9adc4dd8a34ef5cc7202287113000a62b6b98a30) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
73
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
26
74
 
27
75
  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.
28
76
 
29
77
 
30
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`a8256d4`](https://github.com/graphql-hive/gateway/commit/a8256d4e66466bf934abab86b16aad293fa45e76) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
78
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
31
79
 
32
80
  Failing to start if the schema is not loaded for whatever reason.
33
81
 
@@ -35,19 +83,19 @@
35
83
 
36
84
 
37
85
 
38
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`dafd3a1`](https://github.com/graphql-hive/gateway/commit/dafd3a17f02cb85963d6004665017e4733f14fb8) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - The `defineConfig` accepts a TContext generic
86
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - The `defineConfig` accepts a TContext generic
39
87
 
40
88
 
41
89
  ### Patch Changes
42
90
 
43
91
 
44
92
 
45
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
93
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
46
94
 
47
95
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
48
96
 
49
97
 
50
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`8317c68`](https://github.com/graphql-hive/gateway/commit/8317c685a415541d051c341be3694c2aa6416249) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
98
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
51
99
 
52
100
  - Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
53
101
  - Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
@@ -60,19 +108,24 @@
60
108
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
61
109
 
62
110
 
63
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4a01290`](https://github.com/graphql-hive/gateway/commit/4a01290df3efe523ca5626fe88e4b0590d8e899f) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
111
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
64
112
 
65
113
  - Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
66
114
  - Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
67
115
 
68
116
 
69
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`1116b33`](https://github.com/graphql-hive/gateway/commit/1116b3321b695dfddd7a8c2ae8de939bbe434eb9) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
117
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
70
118
 
71
119
  - Added dependency [`@opentelemetry/context-async-hooks@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-async-hooks/v/2.0.1) (to `dependencies`)
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
 
75
- - [#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:
123
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
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
+
128
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
76
129
 
77
130
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
78
131
  - Added dependency [`@graphql-hive/plugin-opentelemetry@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-opentelemetry/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`)
94
- - 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-alpha-76351f2da081b54e435b369758cb5102edf99354
96
- - @graphql-hive/plugin-opentelemetry@1.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
97
- - @graphql-hive/pubsub@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
98
- - @graphql-mesh/plugin-prometheus@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
99
- - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
100
- - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
101
- - @graphql-mesh/transport-http-callback@1.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
102
- - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
103
- - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
104
- - @graphql-mesh/transport-http@1.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
105
- - @graphql-mesh/transport-ws@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
106
- - @graphql-hive/importer@2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354
107
- - @graphql-hive/logger@1.0.1-alpha-76351f2da081b54e435b369758cb5102edf99354
148
+
149
+
150
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Inflight request deduplication
151
+
152
+ - Updated dependencies [[`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a), [`46d2661`](https://github.com/graphql-hive/gateway/commit/46d26615c2c3c5f936c1d1bca1d03b025c1ce86a)]:
153
+ - @graphql-hive/gateway-runtime@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
154
+ - @graphql-hive/plugin-opentelemetry@1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
155
+ - @graphql-hive/pubsub@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
156
+ - @graphql-mesh/plugin-prometheus@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
157
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
158
+ - @graphql-mesh/transport-http-callback@1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
159
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
160
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
161
+ - @graphql-mesh/transport-http@1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
162
+ - @graphql-mesh/transport-ws@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
163
+ - @graphql-hive/importer@2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
164
+ - @graphql-hive/logger@1.0.1-alpha-173a41b38986b248084619e8bb1349c7bb375b9b
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-alpha-76351f2da081b54e435b369758cb5102edf99354';
31
+ globalThis.__VERSION__ = '2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b';
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-alpha-76351f2da081b54e435b369758cb5102edf99354';
25
+ globalThis.__VERSION__ = '2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b';
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-alpha-76351f2da081b54e435b369758cb5102edf99354",
3
+ "version": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
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-alpha-76351f2da081b54e435b369758cb5102edf99354",
87
- "@graphql-hive/importer": "2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
88
- "@graphql-hive/logger": "1.0.1-alpha-76351f2da081b54e435b369758cb5102edf99354",
89
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
90
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
91
- "@graphql-hive/plugin-opentelemetry": "1.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
92
- "@graphql-hive/pubsub": "2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
86
+ "@graphql-hive/gateway-runtime": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
87
+ "@graphql-hive/importer": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
88
+ "@graphql-hive/logger": "1.0.1-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
89
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
90
+ "@graphql-hive/plugin-opentelemetry": "1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
91
+ "@graphql-hive/pubsub": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
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-alpha-76351f2da081b54e435b369758cb5102edf99354",
97
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
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-alpha-76351f2da081b54e435b369758cb5102edf99354",
102
- "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
100
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
101
+ "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
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-alpha-76351f2da081b54e435b369758cb5102edf99354",
106
- "@graphql-mesh/transport-http-callback": "1.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
107
- "@graphql-mesh/transport-ws": "2.0.0-alpha-76351f2da081b54e435b369758cb5102edf99354",
104
+ "@graphql-mesh/transport-http": "1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
105
+ "@graphql-mesh/transport-http-callback": "1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
106
+ "@graphql-mesh/transport-ws": "2.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
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-alpha-76351f2da081b54e435b369758cb5102edf99354",
135
+ "@graphql-mesh/transport-common": "1.0.0-alpha-173a41b38986b248084619e8bb1349c7bb375b9b",
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",