@graphql-hive/gateway 2.0.0-next-dd1d6113b3cb92b88e83279e600277070dccab6f → 2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
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 +37 -15
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-BvnQIP6H.js → cli-B_Lev2Nu.js} +9 -9
- package/dist/{cli-BuM-InLk.cjs → cli-Bej_F2hi.cjs} +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
@@ -1,36 +1,58 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-next-
|
3
|
+
## 2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
7
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`2e5d9e3`](https://github.com/graphql-hive/gateway/commit/2e5d9e3c89569ace0d40e2fabd06c61808fed3b0) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
|
8
|
+
|
9
|
+
Least supported Node version is now v20.
|
10
|
+
|
11
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
|
8
12
|
|
9
13
|
- [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
|
10
14
|
- If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
|
11
15
|
|
16
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`977784f`](https://github.com/graphql-hive/gateway/commit/977784fd34087ce6db77bfd520cb3f3518b21551) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
|
17
|
+
|
18
|
+
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.
|
19
|
+
|
12
20
|
### Patch Changes
|
13
21
|
|
14
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
22
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
15
23
|
|
16
24
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
17
25
|
|
18
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
26
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`81671ba`](https://github.com/graphql-hive/gateway/commit/81671ba909e319be155d2ec2f10f5e3f6cc01cec) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
19
27
|
|
20
28
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
21
29
|
|
22
|
-
- Updated dependencies [[`
|
23
|
-
- @graphql-hive/gateway-runtime@2.0.0-next-
|
24
|
-
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-
|
25
|
-
- @graphql-mesh/plugin-prometheus@2.0.0-next-
|
26
|
-
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-
|
27
|
-
- @graphql-
|
28
|
-
- @graphql-mesh/
|
29
|
-
- @graphql-
|
30
|
-
- @graphql-
|
31
|
-
- @graphql-
|
30
|
+
- Updated dependencies [[`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9), [`81671ba`](https://github.com/graphql-hive/gateway/commit/81671ba909e319be155d2ec2f10f5e3f6cc01cec), [`2375a73`](https://github.com/graphql-hive/gateway/commit/2375a73752497960e18a2d9f58ae70125b89b64a), [`1942a82`](https://github.com/graphql-hive/gateway/commit/1942a82c039703b5682b64bda8464945722d266c), [`dd09ea9`](https://github.com/graphql-hive/gateway/commit/dd09ea939cc92d86559b3d4abe2d2a86a6f84ef4), [`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9), [`81671ba`](https://github.com/graphql-hive/gateway/commit/81671ba909e319be155d2ec2f10f5e3f6cc01cec), [`2e5d9e3`](https://github.com/graphql-hive/gateway/commit/2e5d9e3c89569ace0d40e2fabd06c61808fed3b0), [`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9), [`e08a863`](https://github.com/graphql-hive/gateway/commit/e08a863ad6ed47f3ab9c41efcb4b9434b0d61d59), [`17c1241`](https://github.com/graphql-hive/gateway/commit/17c12417e321dba453d149d08df730307bda300b), [`f008aed`](https://github.com/graphql-hive/gateway/commit/f008aed2fa901905090ef19ec43f8043b5852103), [`f0ff13d`](https://github.com/graphql-hive/gateway/commit/f0ff13d086a30eb156469cdb3452298f2ea0352e), [`dd09ea9`](https://github.com/graphql-hive/gateway/commit/dd09ea939cc92d86559b3d4abe2d2a86a6f84ef4), [`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9), [`07c2d07`](https://github.com/graphql-hive/gateway/commit/07c2d07b11cce6d3f50fadd16b3e36597cd2472f)]:
|
31
|
+
- @graphql-hive/gateway-runtime@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
32
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
33
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
34
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
35
|
+
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
36
|
+
- @graphql-mesh/transport-http-callback@1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
37
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
38
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
39
|
+
- @graphql-mesh/transport-http@1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
40
|
+
- @graphql-mesh/transport-ws@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
41
|
+
- @graphql-hive/importer@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
42
|
+
- @graphql-hive/logger@1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
43
|
+
- @graphql-hive/pubsub@2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f
|
44
|
+
|
45
|
+
## 1.15.3
|
46
|
+
|
47
|
+
### Patch Changes
|
48
|
+
|
49
|
+
- Updated dependencies []:
|
50
|
+
- @graphql-hive/gateway-runtime@1.9.3
|
51
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.14
|
32
52
|
- @graphql-hive/plugin-deduplicate-request@1.0.1
|
33
|
-
- @graphql-mesh/
|
53
|
+
- @graphql-mesh/hmac-upstream-signature@1.2.28
|
54
|
+
- @graphql-mesh/plugin-opentelemetry@1.3.61
|
55
|
+
- @graphql-mesh/plugin-prometheus@1.3.49
|
34
56
|
|
35
57
|
## 1.15.2
|
36
58
|
|
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-
|
6
|
+
var cli = require('./cli-Bej_F2hi.cjs');
|
7
7
|
require('node:cluster');
|
8
8
|
require('node:os');
|
9
9
|
require('node:path');
|
package/dist/bin.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import 'dotenv/config';
|
3
3
|
import module from 'node:module';
|
4
4
|
import { Logger } from '@graphql-hive/logger';
|
5
|
-
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-
|
5
|
+
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-B_Lev2Nu.js';
|
6
6
|
import 'node:cluster';
|
7
7
|
import 'node:os';
|
8
8
|
import 'node:path';
|
@@ -1165,9 +1165,8 @@ function getMaxConcurrency() {
|
|
1165
1165
|
function defineConfig(config) {
|
1166
1166
|
return config;
|
1167
1167
|
}
|
1168
|
-
const maxFork = getMaxConcurrency();
|
1169
1168
|
const defaultOptions = {
|
1170
|
-
fork:
|
1169
|
+
fork: 1,
|
1171
1170
|
host: platform().toLowerCase() === "win32" || // is WSL?
|
1172
1171
|
release().toLowerCase().includes("microsoft") ? "127.0.0.1" : "0.0.0.0",
|
1173
1172
|
port: 4e3,
|
@@ -1179,19 +1178,20 @@ let cli = new Command().configureHelp({
|
|
1179
1178
|
showGlobalOptions: true
|
1180
1179
|
}).addOption(
|
1181
1180
|
new Option(
|
1182
|
-
"--fork <
|
1183
|
-
`
|
1181
|
+
"--fork <number>",
|
1182
|
+
`number of workers to spawn. (default: ${defaultOptions.fork})`
|
1184
1183
|
).env("FORK").argParser((v) => {
|
1185
|
-
const
|
1186
|
-
if (isNaN(
|
1184
|
+
const number = parseInt(v);
|
1185
|
+
if (isNaN(number)) {
|
1187
1186
|
throw new InvalidArgumentError("not a number.");
|
1188
1187
|
}
|
1189
|
-
|
1188
|
+
const maxConcurrency = getMaxConcurrency();
|
1189
|
+
if (number > maxConcurrency) {
|
1190
1190
|
throw new InvalidArgumentError(
|
1191
|
-
`exceedes number of available
|
1191
|
+
`exceedes number of available concurrency "${maxConcurrency}".`
|
1192
1192
|
);
|
1193
1193
|
}
|
1194
|
-
return
|
1194
|
+
return number;
|
1195
1195
|
})
|
1196
1196
|
).addOption(
|
1197
1197
|
new Option(
|
@@ -1172,9 +1172,8 @@ function getMaxConcurrency() {
|
|
1172
1172
|
function defineConfig(config) {
|
1173
1173
|
return config;
|
1174
1174
|
}
|
1175
|
-
const maxFork = getMaxConcurrency();
|
1176
1175
|
const defaultOptions = {
|
1177
|
-
fork:
|
1176
|
+
fork: 1,
|
1178
1177
|
host: node_os.platform().toLowerCase() === "win32" || // is WSL?
|
1179
1178
|
node_os.release().toLowerCase().includes("microsoft") ? "127.0.0.1" : "0.0.0.0",
|
1180
1179
|
port: 4e3,
|
@@ -1186,19 +1185,20 @@ let cli = new extraTypings.Command().configureHelp({
|
|
1186
1185
|
showGlobalOptions: true
|
1187
1186
|
}).addOption(
|
1188
1187
|
new extraTypings.Option(
|
1189
|
-
"--fork <
|
1190
|
-
`
|
1188
|
+
"--fork <number>",
|
1189
|
+
`number of workers to spawn. (default: ${defaultOptions.fork})`
|
1191
1190
|
).env("FORK").argParser((v) => {
|
1192
|
-
const
|
1193
|
-
if (isNaN(
|
1191
|
+
const number = parseInt(v);
|
1192
|
+
if (isNaN(number)) {
|
1194
1193
|
throw new extraTypings.InvalidArgumentError("not a number.");
|
1195
1194
|
}
|
1196
|
-
|
1195
|
+
const maxConcurrency = getMaxConcurrency();
|
1196
|
+
if (number > maxConcurrency) {
|
1197
1197
|
throw new extraTypings.InvalidArgumentError(
|
1198
|
-
`exceedes number of available
|
1198
|
+
`exceedes number of available concurrency "${maxConcurrency}".`
|
1199
1199
|
);
|
1200
1200
|
}
|
1201
|
-
return
|
1201
|
+
return number;
|
1202
1202
|
})
|
1203
1203
|
).addOption(
|
1204
1204
|
new extraTypings.Option(
|
package/dist/index.cjs
CHANGED
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-
|
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-B_Lev2Nu.js';
|
2
2
|
export * from '@graphql-hive/logger';
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
4
4
|
export { PubSub } from '@graphql-hive/pubsub';
|
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-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
},
|
16
16
|
"license": "MIT",
|
17
17
|
"engines": {
|
18
|
-
"node": ">=
|
18
|
+
"node": ">=20.0.0"
|
19
19
|
},
|
20
20
|
"bin": {
|
21
21
|
"hive-gateway": "./dist/bin.js"
|
@@ -53,29 +53,29 @@
|
|
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": "
|
58
|
-
"@graphql-hive/logger": "1.0.0-next-
|
59
|
-
"@graphql-hive/plugin-aws-sigv4": "
|
60
|
-
"@graphql-hive/plugin-deduplicate-request": "
|
61
|
-
"@graphql-hive/pubsub": "
|
56
|
+
"@graphql-hive/gateway-runtime": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
57
|
+
"@graphql-hive/importer": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
58
|
+
"@graphql-hive/logger": "1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
59
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
60
|
+
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
61
|
+
"@graphql-hive/pubsub": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
62
62
|
"@graphql-mesh/cache-cfw-kv": "^0.105.5",
|
63
63
|
"@graphql-mesh/cache-localforage": "^0.105.6",
|
64
64
|
"@graphql-mesh/cache-redis": "^0.104.5",
|
65
65
|
"@graphql-mesh/cache-upstash-redis": "^0.1.5",
|
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-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
68
68
|
"@graphql-mesh/plugin-http-cache": "^0.105.6",
|
69
69
|
"@graphql-mesh/plugin-jit": "^0.2.5",
|
70
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-
|
70
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
71
71
|
"@graphql-mesh/plugin-mock": "^0.105.6",
|
72
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-
|
73
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-next-
|
72
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
73
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
74
74
|
"@graphql-mesh/plugin-rate-limit": "^0.104.5",
|
75
75
|
"@graphql-mesh/plugin-snapshot": "^0.104.5",
|
76
|
-
"@graphql-mesh/transport-http": "0.
|
77
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-next-
|
78
|
-
"@graphql-mesh/transport-ws": "2.0.0-next-
|
76
|
+
"@graphql-mesh/transport-http": "1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
77
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
78
|
+
"@graphql-mesh/transport-ws": "2.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
79
79
|
"@graphql-mesh/types": "^0.104.5",
|
80
80
|
"@graphql-mesh/utils": "^0.104.5",
|
81
81
|
"@graphql-tools/code-file-loader": "^8.1.15",
|
@@ -91,7 +91,7 @@
|
|
91
91
|
"ws": "^8.18.0"
|
92
92
|
},
|
93
93
|
"devDependencies": {
|
94
|
-
"@graphql-mesh/transport-common": "1.0.0-next-
|
94
|
+
"@graphql-mesh/transport-common": "1.0.0-next-07c2d07b11cce6d3f50fadd16b3e36597cd2472f",
|
95
95
|
"@graphql-mesh/transport-soap": "^0.10.6",
|
96
96
|
"@graphql-tools/executor": "^1.4.7",
|
97
97
|
"@rollup/plugin-commonjs": "^28.0.0",
|