@graphql-hive/gateway 2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193 → 2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
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 +15 -68
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-Bej_F2hi.cjs → cli-BuM-InLk.cjs} +9 -9
- package/dist/{cli-B_Lev2Nu.js → cli-BvnQIP6H.js} +9 -9
- package/dist/index.cjs +7 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/package.json +18 -28
package/CHANGELOG.md
CHANGED
@@ -1,89 +1,36 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-
|
3
|
+
## 2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
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
|
7
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`c2de557`](https://github.com/graphql-hive/gateway/commit/c2de55739ace44858287ef0e3687213c4c362c34) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
|
12
8
|
|
13
9
|
- [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
|
14
10
|
- If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
|
15
11
|
|
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
|
-
|
20
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`a83493a`](https://github.com/graphql-hive/gateway/commit/a83493ace7f8c22b8469f0b07ec2ff7bd744eb80) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
|
21
|
-
|
22
|
-
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.
|
23
|
-
|
24
12
|
### Patch Changes
|
25
13
|
|
26
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
14
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`c2de557`](https://github.com/graphql-hive/gateway/commit/c2de55739ace44858287ef0e3687213c4c362c34) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
27
15
|
|
28
16
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
29
17
|
|
30
|
-
- [#
|
31
|
-
|
32
|
-
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
33
|
-
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
34
|
-
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
35
|
-
- Added dependency [`@opentelemetry/exporter-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-jaeger/v/2.0.1) (to `dependencies`)
|
36
|
-
- Added dependency [`@opentelemetry/exporter-zipkin@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-zipkin/v/2.0.1) (to `dependencies`)
|
37
|
-
- Added dependency [`@opentelemetry/propagator-b3@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-b3/v/2.0.1) (to `dependencies`)
|
38
|
-
- Added dependency [`@opentelemetry/propagator-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-jaeger/v/2.0.1) (to `dependencies`)
|
39
|
-
- Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.202.0) (to `dependencies`)
|
40
|
-
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
41
|
-
|
42
|
-
- [#1293](https://github.com/graphql-hive/gateway/pull/1293) [`a7aba54`](https://github.com/graphql-hive/gateway/commit/a7aba544c1e81d85d86cd251ecc1f8a8b7928e7f) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
43
|
-
|
44
|
-
- Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
|
45
|
-
- Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
|
46
|
-
|
47
|
-
- [#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:
|
18
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`daed0aa`](https://github.com/graphql-hive/gateway/commit/daed0aa2fbecb5588c7f7fdc70b1ecab08f9a7b1) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
48
19
|
|
49
20
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
50
|
-
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
51
|
-
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
52
|
-
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
53
|
-
- Added dependency [`@opentelemetry/exporter-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-jaeger/v/2.0.1) (to `dependencies`)
|
54
|
-
- Added dependency [`@opentelemetry/exporter-zipkin@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-zipkin/v/2.0.1) (to `dependencies`)
|
55
|
-
- Added dependency [`@opentelemetry/propagator-b3@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-b3/v/2.0.1) (to `dependencies`)
|
56
|
-
- Added dependency [`@opentelemetry/propagator-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-jaeger/v/2.0.1) (to `dependencies`)
|
57
|
-
- Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.202.0) (to `dependencies`)
|
58
|
-
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
59
|
-
- Removed dependency [`@graphql-mesh/plugin-mock@^0.105.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.6) (from `dependencies`)
|
60
|
-
|
61
|
-
- Updated dependencies [[`6c9083c`](https://github.com/graphql-hive/gateway/commit/6c9083c08c9f61ee224451a370353c18ad08e6d9), [`81671ba`](https://github.com/graphql-hive/gateway/commit/81671ba909e319be155d2ec2f10f5e3f6cc01cec), [`0d1f7fc`](https://github.com/graphql-hive/gateway/commit/0d1f7fcb435f1026b92f6a1db0448f36ecb336b6), [`a7aba54`](https://github.com/graphql-hive/gateway/commit/a7aba544c1e81d85d86cd251ecc1f8a8b7928e7f), [`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)]:
|
62
|
-
- @graphql-hive/gateway-runtime@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
63
|
-
- @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
64
|
-
- @graphql-mesh/plugin-prometheus@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
65
|
-
- @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
66
|
-
- @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
67
|
-
- @graphql-mesh/transport-http-callback@1.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
68
|
-
- @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
69
|
-
- @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
70
|
-
- @graphql-mesh/transport-http@1.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
71
|
-
- @graphql-mesh/transport-ws@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
72
|
-
- @graphql-hive/importer@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
73
|
-
- @graphql-hive/logger@1.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
74
|
-
- @graphql-hive/pubsub@2.0.0-alpha-53cd0a74b026dea5d975614fa049bc698a178193
|
75
|
-
|
76
|
-
## 1.15.3
|
77
21
|
|
78
|
-
|
79
|
-
|
80
|
-
-
|
81
|
-
- @graphql-
|
82
|
-
- @graphql-
|
22
|
+
- Updated dependencies [[`c2de557`](https://github.com/graphql-hive/gateway/commit/c2de55739ace44858287ef0e3687213c4c362c34), [`daed0aa`](https://github.com/graphql-hive/gateway/commit/daed0aa2fbecb5588c7f7fdc70b1ecab08f9a7b1), [`c355ebe`](https://github.com/graphql-hive/gateway/commit/c355ebe6df55b201b6c970442a67fa7c0bb6e87e), [`beba61b`](https://github.com/graphql-hive/gateway/commit/beba61be65b8c3b0418b94637c7da9aa676ec58e), [`d1ba180`](https://github.com/graphql-hive/gateway/commit/d1ba18059b33c844225fa55d972dbfc90faa3729), [`c2de557`](https://github.com/graphql-hive/gateway/commit/c2de55739ace44858287ef0e3687213c4c362c34), [`daed0aa`](https://github.com/graphql-hive/gateway/commit/daed0aa2fbecb5588c7f7fdc70b1ecab08f9a7b1), [`c2de557`](https://github.com/graphql-hive/gateway/commit/c2de55739ace44858287ef0e3687213c4c362c34), [`10c4f8e`](https://github.com/graphql-hive/gateway/commit/10c4f8ebd3f94ce7a4027ad3bff1436805058ca3), [`a7365b1`](https://github.com/graphql-hive/gateway/commit/a7365b1b44281b11586b110a0395409889daf82e), [`2b452d5`](https://github.com/graphql-hive/gateway/commit/2b452d54131237a713aaa49a8d9e606a526e6a5c), [`da779b3`](https://github.com/graphql-hive/gateway/commit/da779b31208ad472cdcbc32bd1376b19271203ac), [`d1ba180`](https://github.com/graphql-hive/gateway/commit/d1ba18059b33c844225fa55d972dbfc90faa3729), [`c2de557`](https://github.com/graphql-hive/gateway/commit/c2de55739ace44858287ef0e3687213c4c362c34)]:
|
23
|
+
- @graphql-hive/gateway-runtime@2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
24
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
25
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
26
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
27
|
+
- @graphql-mesh/transport-http-callback@1.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
28
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
29
|
+
- @graphql-mesh/transport-ws@2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
30
|
+
- @graphql-hive/logger@1.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
31
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.14-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
83
32
|
- @graphql-hive/plugin-deduplicate-request@1.0.1
|
84
|
-
- @graphql-mesh/
|
85
|
-
- @graphql-mesh/plugin-opentelemetry@1.3.61
|
86
|
-
- @graphql-mesh/plugin-prometheus@1.3.49
|
33
|
+
- @graphql-mesh/transport-http@0.6.44-next-5c6622964126ccc836d84e311bdbe27618743dfc
|
87
34
|
|
88
35
|
## 1.15.2
|
89
36
|
|
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-BuM-InLk.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-BvnQIP6H.js';
|
6
6
|
import 'node:cluster';
|
7
7
|
import 'node:os';
|
8
8
|
import 'node:path';
|
@@ -1172,8 +1172,9 @@ function getMaxConcurrency() {
|
|
1172
1172
|
function defineConfig(config) {
|
1173
1173
|
return config;
|
1174
1174
|
}
|
1175
|
+
const maxFork = getMaxConcurrency();
|
1175
1176
|
const defaultOptions = {
|
1176
|
-
fork: 1,
|
1177
|
+
fork: process.env["NODE_ENV"] === "production" ? maxFork : 1,
|
1177
1178
|
host: node_os.platform().toLowerCase() === "win32" || // is WSL?
|
1178
1179
|
node_os.release().toLowerCase().includes("microsoft") ? "127.0.0.1" : "0.0.0.0",
|
1179
1180
|
port: 4e3,
|
@@ -1185,20 +1186,19 @@ let cli = new extraTypings.Command().configureHelp({
|
|
1185
1186
|
showGlobalOptions: true
|
1186
1187
|
}).addOption(
|
1187
1188
|
new extraTypings.Option(
|
1188
|
-
"--fork <
|
1189
|
-
`
|
1189
|
+
"--fork <count>",
|
1190
|
+
`count of workers to spawn. uses "${maxFork}" (available parallelism) workers when NODE_ENV is "production", otherwise "1" (the main) worker (default: ${defaultOptions.fork})`
|
1190
1191
|
).env("FORK").argParser((v) => {
|
1191
|
-
const
|
1192
|
-
if (isNaN(
|
1192
|
+
const count = parseInt(v);
|
1193
|
+
if (isNaN(count)) {
|
1193
1194
|
throw new extraTypings.InvalidArgumentError("not a number.");
|
1194
1195
|
}
|
1195
|
-
|
1196
|
-
if (number > maxConcurrency) {
|
1196
|
+
if (count > maxFork) {
|
1197
1197
|
throw new extraTypings.InvalidArgumentError(
|
1198
|
-
`exceedes number of available
|
1198
|
+
`exceedes number of available parallelism "${maxFork}".`
|
1199
1199
|
);
|
1200
1200
|
}
|
1201
|
-
return
|
1201
|
+
return count;
|
1202
1202
|
})
|
1203
1203
|
).addOption(
|
1204
1204
|
new extraTypings.Option(
|
@@ -1165,8 +1165,9 @@ function getMaxConcurrency() {
|
|
1165
1165
|
function defineConfig(config) {
|
1166
1166
|
return config;
|
1167
1167
|
}
|
1168
|
+
const maxFork = getMaxConcurrency();
|
1168
1169
|
const defaultOptions = {
|
1169
|
-
fork: 1,
|
1170
|
+
fork: process.env["NODE_ENV"] === "production" ? maxFork : 1,
|
1170
1171
|
host: platform().toLowerCase() === "win32" || // is WSL?
|
1171
1172
|
release().toLowerCase().includes("microsoft") ? "127.0.0.1" : "0.0.0.0",
|
1172
1173
|
port: 4e3,
|
@@ -1178,20 +1179,19 @@ let cli = new Command().configureHelp({
|
|
1178
1179
|
showGlobalOptions: true
|
1179
1180
|
}).addOption(
|
1180
1181
|
new Option(
|
1181
|
-
"--fork <
|
1182
|
-
`
|
1182
|
+
"--fork <count>",
|
1183
|
+
`count of workers to spawn. uses "${maxFork}" (available parallelism) workers when NODE_ENV is "production", otherwise "1" (the main) worker (default: ${defaultOptions.fork})`
|
1183
1184
|
).env("FORK").argParser((v) => {
|
1184
|
-
const
|
1185
|
-
if (isNaN(
|
1185
|
+
const count = parseInt(v);
|
1186
|
+
if (isNaN(count)) {
|
1186
1187
|
throw new InvalidArgumentError("not a number.");
|
1187
1188
|
}
|
1188
|
-
|
1189
|
-
if (number > maxConcurrency) {
|
1189
|
+
if (count > maxFork) {
|
1190
1190
|
throw new InvalidArgumentError(
|
1191
|
-
`exceedes number of available
|
1191
|
+
`exceedes number of available parallelism "${maxFork}".`
|
1192
1192
|
);
|
1193
1193
|
}
|
1194
|
-
return
|
1194
|
+
return count;
|
1195
1195
|
})
|
1196
1196
|
).addOption(
|
1197
1197
|
new Option(
|
package/dist/index.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var cli = require('./cli-
|
3
|
+
var cli = require('./cli-BuM-InLk.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');
|
@@ -10,6 +10,7 @@ var pluginPrometheus = require('@graphql-mesh/plugin-prometheus');
|
|
10
10
|
var pluginRateLimit = require('@graphql-mesh/plugin-rate-limit');
|
11
11
|
var pluginHttpCache = require('@graphql-mesh/plugin-http-cache');
|
12
12
|
var pluginDeduplicateRequest = require('@graphql-hive/plugin-deduplicate-request');
|
13
|
+
var pluginMock = require('@graphql-mesh/plugin-mock');
|
13
14
|
var pluginSnapshot = require('@graphql-mesh/plugin-snapshot');
|
14
15
|
var cacheCfwKv = require('@graphql-mesh/cache-cfw-kv');
|
15
16
|
var cacheRedis = require('@graphql-mesh/cache-redis');
|
@@ -40,6 +41,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
40
41
|
var pluginPrometheus__default = /*#__PURE__*/_interopDefault(pluginPrometheus);
|
41
42
|
var pluginRateLimit__default = /*#__PURE__*/_interopDefault(pluginRateLimit);
|
42
43
|
var pluginHttpCache__default = /*#__PURE__*/_interopDefault(pluginHttpCache);
|
44
|
+
var pluginMock__default = /*#__PURE__*/_interopDefault(pluginMock);
|
43
45
|
var pluginSnapshot__default = /*#__PURE__*/_interopDefault(pluginSnapshot);
|
44
46
|
var cacheCfwKv__default = /*#__PURE__*/_interopDefault(cacheCfwKv);
|
45
47
|
var cacheRedis__default = /*#__PURE__*/_interopDefault(cacheRedis);
|
@@ -78,6 +80,10 @@ Object.defineProperty(exports, "useDeduplicateRequest", {
|
|
78
80
|
enumerable: true,
|
79
81
|
get: function () { return pluginDeduplicateRequest.useDeduplicateRequest; }
|
80
82
|
});
|
83
|
+
Object.defineProperty(exports, "useMock", {
|
84
|
+
enumerable: true,
|
85
|
+
get: function () { return pluginMock__default.default; }
|
86
|
+
});
|
81
87
|
Object.defineProperty(exports, "useSnapshot", {
|
82
88
|
enumerable: true,
|
83
89
|
get: function () { return pluginSnapshot__default.default; }
|
package/dist/index.d.cts
CHANGED
@@ -11,7 +11,7 @@ import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
|
|
11
11
|
export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
|
12
12
|
import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
|
13
13
|
export * from '@graphql-mesh/plugin-jwt-auth';
|
14
|
-
import {
|
14
|
+
import { OpenTelemetryMeshPluginOptions } from '@graphql-mesh/plugin-opentelemetry';
|
15
15
|
export * from '@graphql-mesh/plugin-opentelemetry';
|
16
16
|
import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
|
17
17
|
export * from '@graphql-mesh/plugin-prometheus';
|
@@ -20,6 +20,7 @@ import { YamlConfig, KeyValueCache } from '@graphql-mesh/types';
|
|
20
20
|
export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
|
21
21
|
export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
|
22
22
|
export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
|
23
|
+
export { default as useMock } from '@graphql-mesh/plugin-mock';
|
23
24
|
export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
|
24
25
|
export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
|
25
26
|
export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
|
@@ -156,7 +157,7 @@ interface GatewayCLIBuiltinPluginConfig {
|
|
156
157
|
*
|
157
158
|
* @see https://graphql-hive.com/docs/gateway/monitoring-tracing
|
158
159
|
*/
|
159
|
-
openTelemetry?: Exclude<
|
160
|
+
openTelemetry?: Exclude<OpenTelemetryMeshPluginOptions, GatewayConfigContext>;
|
160
161
|
/**
|
161
162
|
* Configure Rate Limiting
|
162
163
|
*
|
package/dist/index.d.ts
CHANGED
@@ -11,7 +11,7 @@ import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
|
|
11
11
|
export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
|
12
12
|
import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
|
13
13
|
export * from '@graphql-mesh/plugin-jwt-auth';
|
14
|
-
import {
|
14
|
+
import { OpenTelemetryMeshPluginOptions } from '@graphql-mesh/plugin-opentelemetry';
|
15
15
|
export * from '@graphql-mesh/plugin-opentelemetry';
|
16
16
|
import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
|
17
17
|
export * from '@graphql-mesh/plugin-prometheus';
|
@@ -20,6 +20,7 @@ import { YamlConfig, KeyValueCache } from '@graphql-mesh/types';
|
|
20
20
|
export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
|
21
21
|
export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
|
22
22
|
export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
|
23
|
+
export { default as useMock } from '@graphql-mesh/plugin-mock';
|
23
24
|
export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
|
24
25
|
export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
|
25
26
|
export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
|
@@ -156,7 +157,7 @@ interface GatewayCLIBuiltinPluginConfig {
|
|
156
157
|
*
|
157
158
|
* @see https://graphql-hive.com/docs/gateway/monitoring-tracing
|
158
159
|
*/
|
159
|
-
openTelemetry?: Exclude<
|
160
|
+
openTelemetry?: Exclude<OpenTelemetryMeshPluginOptions, GatewayConfigContext>;
|
160
161
|
/**
|
161
162
|
* Configure Rate Limiting
|
162
163
|
*
|
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-BvnQIP6H.js';
|
2
2
|
export * from '@graphql-hive/logger';
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
4
4
|
export { PubSub } from '@graphql-hive/pubsub';
|
@@ -9,6 +9,7 @@ export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
|
|
9
9
|
export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
|
10
10
|
export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
|
11
11
|
export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
|
12
|
+
export { default as useMock } from '@graphql-mesh/plugin-mock';
|
12
13
|
export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
|
13
14
|
export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
|
14
15
|
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-
|
3
|
+
"version": "2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
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": ">=18.0.0"
|
19
19
|
},
|
20
20
|
"bin": {
|
21
21
|
"hive-gateway": "./dist/bin.js"
|
@@ -53,28 +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-
|
57
|
-
"@graphql-hive/importer": "
|
58
|
-
"@graphql-hive/logger": "1.0.0-
|
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-5c6622964126ccc836d84e311bdbe27618743dfc",
|
57
|
+
"@graphql-hive/importer": "^1.1.0",
|
58
|
+
"@graphql-hive/logger": "1.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
59
|
+
"@graphql-hive/plugin-aws-sigv4": "1.0.14-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
60
|
+
"@graphql-hive/plugin-deduplicate-request": "^1.0.1",
|
61
|
+
"@graphql-hive/pubsub": "^1.0.0",
|
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-
|
67
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
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-
|
71
|
-
"@graphql-mesh/plugin-
|
72
|
-
"@graphql-mesh/plugin-
|
70
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
71
|
+
"@graphql-mesh/plugin-mock": "^0.105.6",
|
72
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
73
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
73
74
|
"@graphql-mesh/plugin-rate-limit": "^0.104.5",
|
74
75
|
"@graphql-mesh/plugin-snapshot": "^0.104.5",
|
75
|
-
"@graphql-mesh/transport-http": "
|
76
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-
|
77
|
-
"@graphql-mesh/transport-ws": "2.0.0-
|
76
|
+
"@graphql-mesh/transport-http": "0.6.44-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
77
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
78
|
+
"@graphql-mesh/transport-ws": "2.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
78
79
|
"@graphql-mesh/types": "^0.104.5",
|
79
80
|
"@graphql-mesh/utils": "^0.104.5",
|
80
81
|
"@graphql-tools/code-file-loader": "^8.1.15",
|
@@ -82,17 +83,6 @@
|
|
82
83
|
"@graphql-tools/load": "^8.0.14",
|
83
84
|
"@graphql-tools/utils": "^10.8.1",
|
84
85
|
"@graphql-yoga/render-graphiql": "^5.13.5",
|
85
|
-
"@opentelemetry/api": "^1.9.0",
|
86
|
-
"@opentelemetry/api-logs": "^0.202.0",
|
87
|
-
"@opentelemetry/context-zone": "^2.0.1",
|
88
|
-
"@opentelemetry/core": "^2.0.1",
|
89
|
-
"@opentelemetry/exporter-jaeger": "^2.0.1",
|
90
|
-
"@opentelemetry/exporter-zipkin": "^2.0.1",
|
91
|
-
"@opentelemetry/propagator-b3": "^2.0.1",
|
92
|
-
"@opentelemetry/propagator-jaeger": "^2.0.1",
|
93
|
-
"@opentelemetry/sampler-jaeger-remote": "^0.202.0",
|
94
|
-
"@opentelemetry/sdk-logs": "^0.202.0",
|
95
|
-
"@opentelemetry/sdk-metrics": "^2.0.1",
|
96
86
|
"commander": "^13.1.0",
|
97
87
|
"dotenv": "^16.4.7",
|
98
88
|
"graphql-ws": "^6.0.4",
|
@@ -101,12 +91,12 @@
|
|
101
91
|
"ws": "^8.18.0"
|
102
92
|
},
|
103
93
|
"devDependencies": {
|
104
|
-
"@graphql-mesh/transport-common": "1.0.0-
|
94
|
+
"@graphql-mesh/transport-common": "1.0.0-next-5c6622964126ccc836d84e311bdbe27618743dfc",
|
105
95
|
"@graphql-mesh/transport-soap": "^0.10.6",
|
106
96
|
"@graphql-tools/executor": "^1.4.7",
|
107
97
|
"@rollup/plugin-commonjs": "^28.0.0",
|
108
98
|
"@rollup/plugin-json": "^6.1.0",
|
109
|
-
"@rollup/plugin-node-resolve": "
|
99
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
110
100
|
"@rollup/plugin-sucrase": "^5.0.2",
|
111
101
|
"@tsconfig/node18": "^18.2.4",
|
112
102
|
"@types/adm-zip": "^0.5.5",
|