@graphql-hive/gateway 2.0.0-next-38d601a82253147a4bfe657c7eee418d25c183b6 → 2.0.0
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 +30 -30
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0
|
3
|
+
## 2.0.0
|
4
4
|
### Major Changes
|
5
5
|
|
6
6
|
|
7
7
|
|
8
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
9
|
|
10
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
11
|
|
12
12
|
|
13
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
14
14
|
|
15
15
|
Least supported Node version is now v20.
|
16
16
|
|
17
17
|
|
18
|
-
- [#
|
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
19
|
|
20
20
|
To migrate, simply remove the plugin from your configuration and you're good to go!
|
21
21
|
|
@@ -58,24 +58,24 @@
|
|
58
58
|
```
|
59
59
|
|
60
60
|
|
61
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
62
62
|
|
63
63
|
- [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
|
64
64
|
|
65
65
|
- If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
|
66
66
|
|
67
67
|
|
68
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
69
69
|
|
70
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.
|
71
71
|
|
72
72
|
|
73
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
74
74
|
|
75
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.
|
76
76
|
|
77
77
|
|
78
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
79
79
|
|
80
80
|
Failing to start if the schema is not loaded for whatever reason.
|
81
81
|
|
@@ -83,19 +83,19 @@
|
|
83
83
|
|
84
84
|
|
85
85
|
|
86
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
87
87
|
|
88
88
|
|
89
89
|
### Patch Changes
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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:
|
94
94
|
|
95
95
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
96
96
|
|
97
97
|
|
98
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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:
|
99
99
|
|
100
100
|
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
101
101
|
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
@@ -108,24 +108,24 @@
|
|
108
108
|
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
109
109
|
|
110
110
|
|
111
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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:
|
112
112
|
|
113
113
|
- Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
|
114
114
|
- Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
|
115
115
|
|
116
116
|
|
117
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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:
|
118
118
|
|
119
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`)
|
120
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`)
|
121
121
|
|
122
122
|
|
123
|
-
- [#
|
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
124
|
|
125
125
|
- Removed dependency [`@graphql-hive/plugin-deduplicate-request@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-deduplicate-request/v/workspace:^) (from `dependencies`)
|
126
126
|
|
127
127
|
|
128
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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:
|
129
129
|
|
130
130
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
131
131
|
- Added dependency [`@graphql-hive/plugin-opentelemetry@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-opentelemetry/v/workspace:^) (to `dependencies`)
|
@@ -147,21 +147,21 @@
|
|
147
147
|
- Removed dependency [`@graphql-mesh/plugin-opentelemetry@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-opentelemetry/v/workspace:^) (from `dependencies`)
|
148
148
|
|
149
149
|
|
150
|
-
- [#
|
151
|
-
|
152
|
-
- Updated dependencies [[`
|
153
|
-
- @graphql-hive/gateway-runtime@2.0.0
|
154
|
-
- @graphql-hive/plugin-opentelemetry@1.0.0
|
155
|
-
- @graphql-hive/pubsub@2.0.0
|
156
|
-
- @graphql-mesh/plugin-prometheus@2.0.0
|
157
|
-
- @graphql-mesh/hmac-upstream-signature@2.0.0
|
158
|
-
- @graphql-mesh/transport-http-callback@1.0.0
|
159
|
-
- @graphql-hive/plugin-aws-sigv4@2.0.0
|
160
|
-
- @graphql-mesh/plugin-jwt-auth@2.0.0
|
161
|
-
- @graphql-mesh/transport-http@1.0.0
|
162
|
-
- @graphql-mesh/transport-ws@2.0.0
|
163
|
-
- @graphql-hive/importer@2.0.0
|
164
|
-
- @graphql-hive/logger@1.0.1
|
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
|
154
|
+
- @graphql-hive/plugin-opentelemetry@1.0.0
|
155
|
+
- @graphql-hive/pubsub@2.0.0
|
156
|
+
- @graphql-mesh/plugin-prometheus@2.0.0
|
157
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0
|
158
|
+
- @graphql-mesh/transport-http-callback@1.0.0
|
159
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0
|
160
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0
|
161
|
+
- @graphql-mesh/transport-http@1.0.0
|
162
|
+
- @graphql-mesh/transport-ws@2.0.0
|
163
|
+
- @graphql-hive/importer@2.0.0
|
164
|
+
- @graphql-hive/logger@1.0.1
|
165
165
|
|
166
166
|
## 1.16.5
|
167
167
|
### Patch Changes
|
package/dist/bin.cjs
CHANGED
@@ -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
|
31
|
+
globalThis.__VERSION__ = '2.0.0';
|
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
@@ -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
|
25
|
+
globalThis.__VERSION__ = '2.0.0';
|
26
26
|
module.register("@graphql-hive/importer/hooks", {
|
27
27
|
parentURL: (
|
28
28
|
// @ts-ignore bob will complain when bundling for cjs
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-hive/gateway",
|
3
|
-
"version": "2.0.0
|
3
|
+
"version": "2.0.0",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -83,27 +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
|
87
|
-
"@graphql-hive/importer": "2.0.0
|
88
|
-
"@graphql-hive/logger": "1.0.1
|
89
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.0
|
90
|
-
"@graphql-hive/plugin-opentelemetry": "1.0.0
|
91
|
-
"@graphql-hive/pubsub": "2.0.0
|
86
|
+
"@graphql-hive/gateway-runtime": "^2.0.0",
|
87
|
+
"@graphql-hive/importer": "^2.0.0",
|
88
|
+
"@graphql-hive/logger": "^1.0.1",
|
89
|
+
"@graphql-hive/plugin-aws-sigv4": "^2.0.0",
|
90
|
+
"@graphql-hive/plugin-opentelemetry": "^1.0.0",
|
91
|
+
"@graphql-hive/pubsub": "^2.0.0",
|
92
92
|
"@graphql-mesh/cache-cfw-kv": "^0.105.8",
|
93
93
|
"@graphql-mesh/cache-localforage": "^0.105.9",
|
94
94
|
"@graphql-mesh/cache-redis": "^0.104.8",
|
95
95
|
"@graphql-mesh/cache-upstash-redis": "^0.1.8",
|
96
96
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
97
|
-
"@graphql-mesh/hmac-upstream-signature": "2.0.0
|
97
|
+
"@graphql-mesh/hmac-upstream-signature": "^2.0.0",
|
98
98
|
"@graphql-mesh/plugin-http-cache": "^0.105.8",
|
99
99
|
"@graphql-mesh/plugin-jit": "^0.2.7",
|
100
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0
|
101
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0
|
100
|
+
"@graphql-mesh/plugin-jwt-auth": "^2.0.0",
|
101
|
+
"@graphql-mesh/plugin-prometheus": "^2.0.0",
|
102
102
|
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
103
103
|
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
104
|
-
"@graphql-mesh/transport-http": "1.0.0
|
105
|
-
"@graphql-mesh/transport-http-callback": "1.0.0
|
106
|
-
"@graphql-mesh/transport-ws": "2.0.0
|
104
|
+
"@graphql-mesh/transport-http": "^1.0.0",
|
105
|
+
"@graphql-mesh/transport-http-callback": "^1.0.0",
|
106
|
+
"@graphql-mesh/transport-ws": "^2.0.0",
|
107
107
|
"@graphql-mesh/types": "^0.104.8",
|
108
108
|
"@graphql-mesh/utils": "^0.104.11",
|
109
109
|
"@graphql-tools/code-file-loader": "^8.1.22",
|
@@ -132,7 +132,7 @@
|
|
132
132
|
"ws": "^8.18.3"
|
133
133
|
},
|
134
134
|
"devDependencies": {
|
135
|
-
"@graphql-mesh/transport-common": "1.0.0
|
135
|
+
"@graphql-mesh/transport-common": "^1.0.0",
|
136
136
|
"@graphql-mesh/transport-soap": "^0.10.8",
|
137
137
|
"@graphql-tools/executor": "^1.4.9",
|
138
138
|
"@rollup/plugin-commonjs": "^28.0.0",
|