@graphql-hive/gateway 2.0.0-alpha-7c4daa14687333c83ca23d8c74c7779e1bc5ac03 → 2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
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 +53 -14
- package/dist/bin.cjs +2 -1
- package/dist/bin.js +2 -1
- package/dist/{cli-_WmSliwb.cjs → cli-BuM-InLk.cjs} +46 -30
- package/dist/{cli-BBlJHQNF.js → cli-BvnQIP6H.js} +46 -30
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/package.json +18 -17
package/CHANGELOG.md
CHANGED
@@ -1,34 +1,73 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-alpha-
|
3
|
+
## 2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [#1030](https://github.com/graphql-hive/gateway/pull/1030) [`
|
7
|
+
- [#1030](https://github.com/graphql-hive/gateway/pull/1030) [`4e0a76f`](https://github.com/graphql-hive/gateway/commit/4e0a76f970b95bf318707a57c7d301f9025f14b3) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Introduce and use the new Hive Logger
|
8
8
|
|
9
9
|
- [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
|
10
10
|
- If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
|
11
11
|
|
12
12
|
### Patch Changes
|
13
13
|
|
14
|
-
- [#1030](https://github.com/graphql-hive/gateway/pull/1030) [`
|
14
|
+
- [#1030](https://github.com/graphql-hive/gateway/pull/1030) [`ae4c7dd`](https://github.com/graphql-hive/gateway/commit/ae4c7ddc671d363b6b3791a9664e85e266f369de) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
|
15
15
|
|
16
16
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
17
17
|
|
18
|
+
- Updated dependencies [[`ae4c7dd`](https://github.com/graphql-hive/gateway/commit/ae4c7ddc671d363b6b3791a9664e85e266f369de), [`cdc959c`](https://github.com/graphql-hive/gateway/commit/cdc959c57dd770fd5f0bcd05a5de7e3102dacfe2), [`cdc959c`](https://github.com/graphql-hive/gateway/commit/cdc959c57dd770fd5f0bcd05a5de7e3102dacfe2), [`4bab6a3`](https://github.com/graphql-hive/gateway/commit/4bab6a3048cd6a9b20b221d625ed94a1e2cf8689), [`4fd18a1`](https://github.com/graphql-hive/gateway/commit/4fd18a1a7d95654d8bffd14026ee3c8861b5b4f6), [`2bd7a17`](https://github.com/graphql-hive/gateway/commit/2bd7a1708b7e1984a9bf7ca3eb763bf8ad3313c0), [`c190214`](https://github.com/graphql-hive/gateway/commit/c19021425af92ddb12195eb0b11b51cd6ac1d22f), [`ae4c7dd`](https://github.com/graphql-hive/gateway/commit/ae4c7ddc671d363b6b3791a9664e85e266f369de), [`4e0a76f`](https://github.com/graphql-hive/gateway/commit/4e0a76f970b95bf318707a57c7d301f9025f14b3), [`680a646`](https://github.com/graphql-hive/gateway/commit/680a6467be70b53d3bb6089114072fb25c172283), [`7decf1d`](https://github.com/graphql-hive/gateway/commit/7decf1d355e1cda9e688f2736abea86106afd3a0), [`e2f1c30`](https://github.com/graphql-hive/gateway/commit/e2f1c30d24e94e2cf388b2f1fe4e4f71c591bece), [`d1cdc67`](https://github.com/graphql-hive/gateway/commit/d1cdc6724bc67f17abd36d9cabbd26b7ef0e3adb), [`c190214`](https://github.com/graphql-hive/gateway/commit/c19021425af92ddb12195eb0b11b51cd6ac1d22f), [`5c34afe`](https://github.com/graphql-hive/gateway/commit/5c34afed1ead2f7ec2b4d988479a28118d2323ac)]:
|
19
|
+
- @graphql-hive/gateway-runtime@2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
20
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.12-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
21
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
22
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
23
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
24
|
+
- @graphql-mesh/transport-http-callback@1.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
25
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
26
|
+
- @graphql-mesh/transport-ws@2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
27
|
+
- @graphql-hive/logger@1.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
28
|
+
- @graphql-hive/plugin-deduplicate-request@1.0.0
|
29
|
+
- @graphql-mesh/transport-http@0.6.43-alpha-7184bde516d9890379b9bed7d06426fad8c16546
|
30
|
+
|
31
|
+
## 1.15.0
|
32
|
+
|
33
|
+
### Minor Changes
|
34
|
+
|
35
|
+
- [#1172](https://github.com/graphql-hive/gateway/pull/1172) [`dacad53`](https://github.com/graphql-hive/gateway/commit/dacad5390e4ab54a74bb7ee0d86ebc5a014c55a8) Thanks [@ardatan](https://github.com/ardatan)! - Serve GraphiQL offline by default instead of fetching it from CDN
|
36
|
+
|
37
|
+
### Patch Changes
|
38
|
+
|
39
|
+
- [#1156](https://github.com/graphql-hive/gateway/pull/1156) [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
40
|
+
|
41
|
+
- Updated dependency [`graphql-yoga@^5.13.5` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.13.5) (from `^5.13.4`, in `dependencies`)
|
42
|
+
|
43
|
+
- [#1158](https://github.com/graphql-hive/gateway/pull/1158) [`a5d18da`](https://github.com/graphql-hive/gateway/commit/a5d18da95716c8e5ed231244c7dcae4f11843c08) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
44
|
+
|
45
|
+
- Updated dependency [`@commander-js/extra-typings@^14.0.0` ↗︎](https://www.npmjs.com/package/@commander-js/extra-typings/v/14.0.0) (from `^13.1.0`, in `dependencies`)
|
46
|
+
|
47
|
+
- [#1161](https://github.com/graphql-hive/gateway/pull/1161) [`3be8206`](https://github.com/graphql-hive/gateway/commit/3be82065790f1cb24cbe0655d7e8b90207fff52e) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
48
|
+
|
49
|
+
- Updated dependency [`@commander-js/extra-typings@^13.1.0` ↗︎](https://www.npmjs.com/package/@commander-js/extra-typings/v/13.1.0) (from `^14.0.0`, in `dependencies`)
|
50
|
+
|
51
|
+
- [#1172](https://github.com/graphql-hive/gateway/pull/1172) [`dacad53`](https://github.com/graphql-hive/gateway/commit/dacad5390e4ab54a74bb7ee0d86ebc5a014c55a8) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
52
|
+
|
53
|
+
- Added dependency [`@graphql-yoga/render-graphiql@^5.13.5` ↗︎](https://www.npmjs.com/package/@graphql-yoga/render-graphiql/v/5.13.5) (to `dependencies`)
|
54
|
+
|
55
|
+
- [#1182](https://github.com/graphql-hive/gateway/pull/1182) [`f3615ca`](https://github.com/graphql-hive/gateway/commit/f3615cab4e8b596e5ba21b03fddb66e9a3090e31) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
56
|
+
|
57
|
+
- Updated dependency [`@graphql-tools/graphql-file-loader@^8.0.20` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.0.20) (from `^8.0.14`, in `dependencies`)
|
58
|
+
|
18
59
|
- [#1141](https://github.com/graphql-hive/gateway/pull/1141) [`d8892f2`](https://github.com/graphql-hive/gateway/commit/d8892f2713388fcea37dfa74a8ae42294f07d362) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - **Security Update:** The Docker image have been updated to fix a CVE affecting `passwd` command. This CVE was not directly affecting Hive Gateway software, since it's not using impacted components.
|
19
60
|
|
20
|
-
- Updated dependencies [[`
|
21
|
-
- @graphql-hive/gateway-runtime@
|
22
|
-
- @graphql-
|
23
|
-
- @graphql-mesh/plugin-
|
24
|
-
- @graphql-mesh/
|
25
|
-
- @graphql-mesh/
|
26
|
-
- @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-7c4daa14687333c83ca23d8c74c7779e1bc5ac03
|
27
|
-
- @graphql-mesh/transport-ws@2.0.0-alpha-7c4daa14687333c83ca23d8c74c7779e1bc5ac03
|
28
|
-
- @graphql-hive/logger@1.0.0-alpha-7c4daa14687333c83ca23d8c74c7779e1bc5ac03
|
29
|
-
- @graphql-hive/plugin-aws-sigv4@1.0.11-alpha-7c4daa14687333c83ca23d8c74c7779e1bc5ac03
|
61
|
+
- Updated dependencies [[`11cff4f`](https://github.com/graphql-hive/gateway/commit/11cff4f8ff28ca7d709b5b962029e17d5843110e), [`54beb7a`](https://github.com/graphql-hive/gateway/commit/54beb7acde7558eee81ec0e20c123717865b8e18), [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451), [`f3615ca`](https://github.com/graphql-hive/gateway/commit/f3615cab4e8b596e5ba21b03fddb66e9a3090e31), [`d459f37`](https://github.com/graphql-hive/gateway/commit/d459f3702c500c321164abec826700120649c180), [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451), [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451), [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451), [`54beb7a`](https://github.com/graphql-hive/gateway/commit/54beb7acde7558eee81ec0e20c123717865b8e18), [`b4ba778`](https://github.com/graphql-hive/gateway/commit/b4ba778776140b66b8368daf0299105fd8035e46), [`11cff4f`](https://github.com/graphql-hive/gateway/commit/11cff4f8ff28ca7d709b5b962029e17d5843110e)]:
|
62
|
+
- @graphql-hive/gateway-runtime@1.9.0
|
63
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.11
|
64
|
+
- @graphql-mesh/plugin-jwt-auth@1.5.5
|
65
|
+
- @graphql-mesh/plugin-prometheus@1.3.46
|
66
|
+
- @graphql-mesh/transport-http-callback@0.6.1
|
30
67
|
- @graphql-hive/plugin-deduplicate-request@1.0.0
|
31
|
-
- @graphql-mesh/
|
68
|
+
- @graphql-mesh/hmac-upstream-signature@1.2.27
|
69
|
+
- @graphql-mesh/plugin-opentelemetry@1.3.58
|
70
|
+
- @graphql-mesh/transport-http@0.6.42
|
32
71
|
|
33
72
|
## 1.14.2
|
34
73
|
|
package/dist/bin.cjs
CHANGED
@@ -3,11 +3,12 @@
|
|
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');
|
10
10
|
require('@commander-js/extra-typings');
|
11
|
+
require('@graphql-yoga/render-graphiql');
|
11
12
|
require('@graphql-hive/gateway-runtime');
|
12
13
|
require('@graphql-hive/pubsub');
|
13
14
|
require('@graphql-mesh/utils');
|
package/dist/bin.js
CHANGED
@@ -2,11 +2,12 @@
|
|
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';
|
9
9
|
import '@commander-js/extra-typings';
|
10
|
+
import '@graphql-yoga/render-graphiql';
|
10
11
|
import '@graphql-hive/gateway-runtime';
|
11
12
|
import '@graphql-hive/pubsub';
|
12
13
|
import '@graphql-mesh/utils';
|
@@ -6,6 +6,7 @@ var node_os = require('node:os');
|
|
6
6
|
var node_path = require('node:path');
|
7
7
|
var extraTypings = require('@commander-js/extra-typings');
|
8
8
|
var logger = require('@graphql-hive/logger');
|
9
|
+
var renderGraphiql = require('@graphql-yoga/render-graphiql');
|
9
10
|
var gatewayRuntime = require('@graphql-hive/gateway-runtime');
|
10
11
|
var pubsub = require('@graphql-hive/pubsub');
|
11
12
|
var utils = require('@graphql-mesh/utils');
|
@@ -298,7 +299,7 @@ async function startBunServer(gwRuntime, opts) {
|
|
298
299
|
};
|
299
300
|
}
|
300
301
|
const server = Bun.serve(serverOptions);
|
301
|
-
opts.log.info(
|
302
|
+
opts.log.info(`Listening on ${server.url}`);
|
302
303
|
gwRuntime.disposableStack.use(server);
|
303
304
|
}
|
304
305
|
|
@@ -365,7 +366,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
365
366
|
);
|
366
367
|
}
|
367
368
|
const url = `${protocol}://${host}:${port}`.replace("0.0.0.0", "localhost");
|
368
|
-
log.debug(
|
369
|
+
log.debug(`Starting server on ${url}`);
|
369
370
|
if (!disableWebsockets) {
|
370
371
|
log.debug("Setting up WebSocket server");
|
371
372
|
const { WebSocketServer } = await import('ws');
|
@@ -397,7 +398,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
397
398
|
return new Promise((resolve, reject) => {
|
398
399
|
server.once("error", reject);
|
399
400
|
server.listen(port, host, () => {
|
400
|
-
log.info(
|
401
|
+
log.info(`Listening on ${url}`);
|
401
402
|
gwRuntime.disposableStack.defer(
|
402
403
|
() => new Promise((resolve2) => {
|
403
404
|
process.stderr.write("\n");
|
@@ -445,7 +446,7 @@ function handleFork(log, config) {
|
|
445
446
|
if (cluster__default.default.isPrimary && config.fork && config.fork > 1) {
|
446
447
|
const workers = /* @__PURE__ */ new Set();
|
447
448
|
let expectedToExit = false;
|
448
|
-
log.debug(
|
449
|
+
log.debug(`Forking ${config.fork} workers`);
|
449
450
|
for (let i = 0; i < config.fork; i++) {
|
450
451
|
const worker = cluster__default.default.fork();
|
451
452
|
const workerLogger = log.child({ worker: worker.id });
|
@@ -473,7 +474,7 @@ function handleFork(log, config) {
|
|
473
474
|
workers.add(worker);
|
474
475
|
}
|
475
476
|
utils.registerTerminateHandler((signal) => {
|
476
|
-
log.info(
|
477
|
+
log.info(`Killing workers on ${signal}`);
|
477
478
|
expectedToExit = true;
|
478
479
|
workers.forEach((w) => {
|
479
480
|
w.kill(signal);
|
@@ -577,6 +578,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
|
|
577
578
|
hivePersistedDocumentsToken,
|
578
579
|
...opts
|
579
580
|
} = this.optsWithGlobals();
|
581
|
+
ctx.log.info(`Starting ${ctx.productName} ${ctx.version} in proxy mode`);
|
580
582
|
const loadedConfig = await loadConfig({
|
581
583
|
log: ctx.log,
|
582
584
|
configPath: opts.configPath,
|
@@ -733,6 +735,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
|
|
733
735
|
hivePersistedDocumentsToken,
|
734
736
|
...opts
|
735
737
|
} = this.optsWithGlobals();
|
738
|
+
ctx.log.info(`Starting ${ctx.productName} ${ctx.version} as subgraph`);
|
736
739
|
const loadedConfig = await loadConfig({
|
737
740
|
log: ctx.log,
|
738
741
|
configPath: opts.configPath,
|
@@ -876,21 +879,23 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
876
879
|
...opts
|
877
880
|
} = this.optsWithGlobals();
|
878
881
|
const { apolloUplink } = this.opts();
|
882
|
+
ctx.log.info(
|
883
|
+
`Starting ${ctx.productName} ${ctx.version} with supergraph`
|
884
|
+
);
|
879
885
|
const loadedConfig = await loadConfig({
|
880
886
|
log: ctx.log,
|
881
887
|
configPath: opts.configPath,
|
882
888
|
quiet: !cluster__default.default.isPrimary,
|
883
889
|
configFileName: ctx.configFileName
|
884
890
|
});
|
885
|
-
let supergraph2 = "supergraph.graphql";
|
891
|
+
let supergraph2 = "./supergraph.graphql";
|
886
892
|
if (schemaPathOrUrl) {
|
887
|
-
ctx.log.info(
|
893
|
+
ctx.log.info(`Supergraph will be loaded from ${schemaPathOrUrl}`);
|
888
894
|
if (hiveCdnKey) {
|
889
895
|
ctx.log.info("Using Hive CDN key");
|
890
896
|
if (!utils.isUrl(schemaPathOrUrl)) {
|
891
897
|
ctx.log.error(
|
892
|
-
|
893
|
-
schemaPathOrUrl
|
898
|
+
`Hive CDN endpoint must be a URL when providing --hive-cdn-key but got ${schemaPathOrUrl}`
|
894
899
|
);
|
895
900
|
process.exit(1);
|
896
901
|
}
|
@@ -903,8 +908,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
903
908
|
ctx.log.info("Using GraphOS API key");
|
904
909
|
if (!schemaPathOrUrl.includes("@")) {
|
905
910
|
ctx.log.error(
|
906
|
-
`Apollo GraphOS requires a graph ref in the format <graph-id>@<graph-variant> when providing --apollo-key. Please provide a valid graph ref not
|
907
|
-
schemaPathOrUrl
|
911
|
+
`Apollo GraphOS requires a graph ref in the format <graph-id>@<graph-variant> when providing --apollo-key. Please provide a valid graph ref not ${schemaPathOrUrl}.`
|
908
912
|
);
|
909
913
|
process.exit(1);
|
910
914
|
}
|
@@ -930,7 +934,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
930
934
|
);
|
931
935
|
process.exit(1);
|
932
936
|
}
|
933
|
-
ctx.log.info(
|
937
|
+
ctx.log.info(`Using Hive CDN endpoint ${hiveCdnEndpoint}`);
|
934
938
|
supergraph2 = {
|
935
939
|
type: "hive",
|
936
940
|
endpoint: hiveCdnEndpoint,
|
@@ -939,8 +943,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
939
943
|
} else if (apolloGraphRef) {
|
940
944
|
if (!apolloGraphRef.includes("@")) {
|
941
945
|
ctx.log.error(
|
942
|
-
|
943
|
-
apolloGraphRef
|
946
|
+
`Apollo GraphOS requires a graph ref in the format <graph-id>@<graph-variant>. Please provide a valid graph ref not ${apolloGraphRef}.`
|
944
947
|
);
|
945
948
|
process.exit(1);
|
946
949
|
}
|
@@ -950,7 +953,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
950
953
|
);
|
951
954
|
process.exit(1);
|
952
955
|
}
|
953
|
-
ctx.log.info(
|
956
|
+
ctx.log.info(`Using Apollo Graph Ref ${apolloGraphRef}`);
|
954
957
|
supergraph2 = {
|
955
958
|
type: "graphos",
|
956
959
|
apiKey: apolloKey,
|
@@ -960,7 +963,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
960
963
|
} else if ("supergraph" in loadedConfig) {
|
961
964
|
supergraph2 = loadedConfig.supergraph;
|
962
965
|
} else {
|
963
|
-
ctx.log.info(
|
966
|
+
ctx.log.info(`Using default supergraph location "${supergraph2}"`);
|
964
967
|
}
|
965
968
|
const registryConfig = {};
|
966
969
|
const reporting = handleReportingConfig(ctx, loadedConfig, {
|
@@ -1044,13 +1047,13 @@ async function runSupergraph({ log }, config) {
|
|
1044
1047
|
if (typeof config.supergraph === "string" && utils$1.isValidPath(config.supergraph) && !utils.isUrl(config.supergraph)) {
|
1045
1048
|
const supergraphPath = config.supergraph;
|
1046
1049
|
absSchemaPath = node_path.isAbsolute(supergraphPath) ? String(supergraphPath) : node_path.resolve(process.cwd(), supergraphPath);
|
1047
|
-
log.info("Reading supergraph
|
1050
|
+
log.info({ path: absSchemaPath }, "Reading supergraph");
|
1048
1051
|
try {
|
1049
1052
|
await promises.lstat(absSchemaPath);
|
1050
|
-
} catch {
|
1053
|
+
} catch (err) {
|
1051
1054
|
log.error(
|
1052
|
-
|
1053
|
-
|
1055
|
+
{ path: absSchemaPath, err },
|
1056
|
+
"Could not read supergraph. Make sure the file exists."
|
1054
1057
|
);
|
1055
1058
|
process.exit(1);
|
1056
1059
|
}
|
@@ -1058,10 +1061,13 @@ async function runSupergraph({ log }, config) {
|
|
1058
1061
|
if (absSchemaPath) {
|
1059
1062
|
delete config.pollingInterval;
|
1060
1063
|
if (cluster__default.default.isPrimary) {
|
1061
|
-
log.info("Watching
|
1064
|
+
log.info({ path: absSchemaPath }, "Watching supergraph for changes");
|
1062
1065
|
const ctrl = new AbortController();
|
1063
1066
|
utils.registerTerminateHandler((signal) => {
|
1064
|
-
log.info(
|
1067
|
+
log.info(
|
1068
|
+
{ path: absSchemaPath },
|
1069
|
+
`Closing watcher for supergraph on ${signal}`
|
1070
|
+
);
|
1065
1071
|
return ctrl.abort(`Process terminated on ${signal}`);
|
1066
1072
|
});
|
1067
1073
|
(async function watcher() {
|
@@ -1071,7 +1077,10 @@ async function runSupergraph({ log }, config) {
|
|
1071
1077
|
if (f.eventType === "rename") {
|
1072
1078
|
throw new Error(`Supergraph file was renamed to "${f.filename}"`);
|
1073
1079
|
}
|
1074
|
-
log.info(
|
1080
|
+
log.info(
|
1081
|
+
{ path: absSchemaPath },
|
1082
|
+
"Supergraph changed. Invalidating..."
|
1083
|
+
);
|
1075
1084
|
if (config.fork && config.fork > 1) {
|
1076
1085
|
for (const workerId in cluster__default.default.workers) {
|
1077
1086
|
cluster__default.default.workers[workerId].send("invalidateUnifiedGraph");
|
@@ -1082,9 +1091,15 @@ async function runSupergraph({ log }, config) {
|
|
1082
1091
|
}
|
1083
1092
|
})().catch((e) => {
|
1084
1093
|
if (e.name === "AbortError") return;
|
1085
|
-
log.error(
|
1094
|
+
log.error(
|
1095
|
+
{ path: absSchemaPath, err: e },
|
1096
|
+
"Supergraph watcher closed with an error"
|
1097
|
+
);
|
1086
1098
|
}).then(() => {
|
1087
|
-
log.info(
|
1099
|
+
log.info(
|
1100
|
+
{ path: absSchemaPath },
|
1101
|
+
"Supergraph watcher successfuly closed"
|
1102
|
+
);
|
1088
1103
|
});
|
1089
1104
|
}
|
1090
1105
|
}
|
@@ -1114,13 +1129,13 @@ async function runSupergraph({ log }, config) {
|
|
1114
1129
|
}
|
1115
1130
|
const runtime = gatewayRuntime.createGatewayRuntime(config);
|
1116
1131
|
if (absSchemaPath) {
|
1117
|
-
log.info("Serving local supergraph
|
1132
|
+
log.info({ path: absSchemaPath }, "Serving local supergraph");
|
1118
1133
|
} else if (utils.isUrl(String(config.supergraph))) {
|
1119
|
-
log.info(
|
1134
|
+
log.info({ url: config.supergraph }, "Serving remote supergraph");
|
1120
1135
|
} else if (typeof config.supergraph === "object" && "type" in config.supergraph && config.supergraph.type === "hive") {
|
1121
1136
|
log.info(
|
1122
|
-
|
1123
|
-
|
1137
|
+
{ endpoint: config.supergraph.endpoint },
|
1138
|
+
"Serving supergraph from Hive CDN"
|
1124
1139
|
);
|
1125
1140
|
} else {
|
1126
1141
|
log.info("Serving supergraph from config");
|
@@ -1163,7 +1178,8 @@ const defaultOptions = {
|
|
1163
1178
|
host: node_os.platform().toLowerCase() === "win32" || // is WSL?
|
1164
1179
|
node_os.release().toLowerCase().includes("microsoft") ? "127.0.0.1" : "0.0.0.0",
|
1165
1180
|
port: 4e3,
|
1166
|
-
pollingInterval: 1e4
|
1181
|
+
pollingInterval: 1e4,
|
1182
|
+
renderGraphiQL: renderGraphiql.renderGraphiQL
|
1167
1183
|
};
|
1168
1184
|
let cli = new extraTypings.Command().configureHelp({
|
1169
1185
|
// will print help of global options for each command
|
@@ -4,6 +4,7 @@ import { availableParallelism, freemem, platform, release } from 'node:os';
|
|
4
4
|
import { join, isAbsolute, resolve } from 'node:path';
|
5
5
|
import { Option, Command, InvalidArgumentError } from '@commander-js/extra-typings';
|
6
6
|
import { LegacyLogger, Logger } from '@graphql-hive/logger';
|
7
|
+
import { renderGraphiQL } from '@graphql-yoga/render-graphiql';
|
7
8
|
import { getGraphQLWSOptions, createLoggerFromLogging, createGatewayRuntime } from '@graphql-hive/gateway-runtime';
|
8
9
|
import { PubSub } from '@graphql-hive/pubsub';
|
9
10
|
import { registerTerminateHandler, isUrl } from '@graphql-mesh/utils';
|
@@ -291,7 +292,7 @@ async function startBunServer(gwRuntime, opts) {
|
|
291
292
|
};
|
292
293
|
}
|
293
294
|
const server = Bun.serve(serverOptions);
|
294
|
-
opts.log.info(
|
295
|
+
opts.log.info(`Listening on ${server.url}`);
|
295
296
|
gwRuntime.disposableStack.use(server);
|
296
297
|
}
|
297
298
|
|
@@ -358,7 +359,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
358
359
|
);
|
359
360
|
}
|
360
361
|
const url = `${protocol}://${host}:${port}`.replace("0.0.0.0", "localhost");
|
361
|
-
log.debug(
|
362
|
+
log.debug(`Starting server on ${url}`);
|
362
363
|
if (!disableWebsockets) {
|
363
364
|
log.debug("Setting up WebSocket server");
|
364
365
|
const { WebSocketServer } = await import('ws');
|
@@ -390,7 +391,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
390
391
|
return new Promise((resolve, reject) => {
|
391
392
|
server.once("error", reject);
|
392
393
|
server.listen(port, host, () => {
|
393
|
-
log.info(
|
394
|
+
log.info(`Listening on ${url}`);
|
394
395
|
gwRuntime.disposableStack.defer(
|
395
396
|
() => new Promise((resolve2) => {
|
396
397
|
process.stderr.write("\n");
|
@@ -438,7 +439,7 @@ function handleFork(log, config) {
|
|
438
439
|
if (cluster.isPrimary && config.fork && config.fork > 1) {
|
439
440
|
const workers = /* @__PURE__ */ new Set();
|
440
441
|
let expectedToExit = false;
|
441
|
-
log.debug(
|
442
|
+
log.debug(`Forking ${config.fork} workers`);
|
442
443
|
for (let i = 0; i < config.fork; i++) {
|
443
444
|
const worker = cluster.fork();
|
444
445
|
const workerLogger = log.child({ worker: worker.id });
|
@@ -466,7 +467,7 @@ function handleFork(log, config) {
|
|
466
467
|
workers.add(worker);
|
467
468
|
}
|
468
469
|
registerTerminateHandler((signal) => {
|
469
|
-
log.info(
|
470
|
+
log.info(`Killing workers on ${signal}`);
|
470
471
|
expectedToExit = true;
|
471
472
|
workers.forEach((w) => {
|
472
473
|
w.kill(signal);
|
@@ -570,6 +571,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
|
|
570
571
|
hivePersistedDocumentsToken,
|
571
572
|
...opts
|
572
573
|
} = this.optsWithGlobals();
|
574
|
+
ctx.log.info(`Starting ${ctx.productName} ${ctx.version} in proxy mode`);
|
573
575
|
const loadedConfig = await loadConfig({
|
574
576
|
log: ctx.log,
|
575
577
|
configPath: opts.configPath,
|
@@ -726,6 +728,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
|
|
726
728
|
hivePersistedDocumentsToken,
|
727
729
|
...opts
|
728
730
|
} = this.optsWithGlobals();
|
731
|
+
ctx.log.info(`Starting ${ctx.productName} ${ctx.version} as subgraph`);
|
729
732
|
const loadedConfig = await loadConfig({
|
730
733
|
log: ctx.log,
|
731
734
|
configPath: opts.configPath,
|
@@ -869,21 +872,23 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
869
872
|
...opts
|
870
873
|
} = this.optsWithGlobals();
|
871
874
|
const { apolloUplink } = this.opts();
|
875
|
+
ctx.log.info(
|
876
|
+
`Starting ${ctx.productName} ${ctx.version} with supergraph`
|
877
|
+
);
|
872
878
|
const loadedConfig = await loadConfig({
|
873
879
|
log: ctx.log,
|
874
880
|
configPath: opts.configPath,
|
875
881
|
quiet: !cluster.isPrimary,
|
876
882
|
configFileName: ctx.configFileName
|
877
883
|
});
|
878
|
-
let supergraph2 = "supergraph.graphql";
|
884
|
+
let supergraph2 = "./supergraph.graphql";
|
879
885
|
if (schemaPathOrUrl) {
|
880
|
-
ctx.log.info(
|
886
|
+
ctx.log.info(`Supergraph will be loaded from ${schemaPathOrUrl}`);
|
881
887
|
if (hiveCdnKey) {
|
882
888
|
ctx.log.info("Using Hive CDN key");
|
883
889
|
if (!isUrl(schemaPathOrUrl)) {
|
884
890
|
ctx.log.error(
|
885
|
-
|
886
|
-
schemaPathOrUrl
|
891
|
+
`Hive CDN endpoint must be a URL when providing --hive-cdn-key but got ${schemaPathOrUrl}`
|
887
892
|
);
|
888
893
|
process.exit(1);
|
889
894
|
}
|
@@ -896,8 +901,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
896
901
|
ctx.log.info("Using GraphOS API key");
|
897
902
|
if (!schemaPathOrUrl.includes("@")) {
|
898
903
|
ctx.log.error(
|
899
|
-
`Apollo GraphOS requires a graph ref in the format <graph-id>@<graph-variant> when providing --apollo-key. Please provide a valid graph ref not
|
900
|
-
schemaPathOrUrl
|
904
|
+
`Apollo GraphOS requires a graph ref in the format <graph-id>@<graph-variant> when providing --apollo-key. Please provide a valid graph ref not ${schemaPathOrUrl}.`
|
901
905
|
);
|
902
906
|
process.exit(1);
|
903
907
|
}
|
@@ -923,7 +927,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
923
927
|
);
|
924
928
|
process.exit(1);
|
925
929
|
}
|
926
|
-
ctx.log.info(
|
930
|
+
ctx.log.info(`Using Hive CDN endpoint ${hiveCdnEndpoint}`);
|
927
931
|
supergraph2 = {
|
928
932
|
type: "hive",
|
929
933
|
endpoint: hiveCdnEndpoint,
|
@@ -932,8 +936,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
932
936
|
} else if (apolloGraphRef) {
|
933
937
|
if (!apolloGraphRef.includes("@")) {
|
934
938
|
ctx.log.error(
|
935
|
-
|
936
|
-
apolloGraphRef
|
939
|
+
`Apollo GraphOS requires a graph ref in the format <graph-id>@<graph-variant>. Please provide a valid graph ref not ${apolloGraphRef}.`
|
937
940
|
);
|
938
941
|
process.exit(1);
|
939
942
|
}
|
@@ -943,7 +946,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
943
946
|
);
|
944
947
|
process.exit(1);
|
945
948
|
}
|
946
|
-
ctx.log.info(
|
949
|
+
ctx.log.info(`Using Apollo Graph Ref ${apolloGraphRef}`);
|
947
950
|
supergraph2 = {
|
948
951
|
type: "graphos",
|
949
952
|
apiKey: apolloKey,
|
@@ -953,7 +956,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
953
956
|
} else if ("supergraph" in loadedConfig) {
|
954
957
|
supergraph2 = loadedConfig.supergraph;
|
955
958
|
} else {
|
956
|
-
ctx.log.info(
|
959
|
+
ctx.log.info(`Using default supergraph location "${supergraph2}"`);
|
957
960
|
}
|
958
961
|
const registryConfig = {};
|
959
962
|
const reporting = handleReportingConfig(ctx, loadedConfig, {
|
@@ -1037,13 +1040,13 @@ async function runSupergraph({ log }, config) {
|
|
1037
1040
|
if (typeof config.supergraph === "string" && isValidPath(config.supergraph) && !isUrl(config.supergraph)) {
|
1038
1041
|
const supergraphPath = config.supergraph;
|
1039
1042
|
absSchemaPath = isAbsolute(supergraphPath) ? String(supergraphPath) : resolve(process.cwd(), supergraphPath);
|
1040
|
-
log.info("Reading supergraph
|
1043
|
+
log.info({ path: absSchemaPath }, "Reading supergraph");
|
1041
1044
|
try {
|
1042
1045
|
await lstat(absSchemaPath);
|
1043
|
-
} catch {
|
1046
|
+
} catch (err) {
|
1044
1047
|
log.error(
|
1045
|
-
|
1046
|
-
|
1048
|
+
{ path: absSchemaPath, err },
|
1049
|
+
"Could not read supergraph. Make sure the file exists."
|
1047
1050
|
);
|
1048
1051
|
process.exit(1);
|
1049
1052
|
}
|
@@ -1051,10 +1054,13 @@ async function runSupergraph({ log }, config) {
|
|
1051
1054
|
if (absSchemaPath) {
|
1052
1055
|
delete config.pollingInterval;
|
1053
1056
|
if (cluster.isPrimary) {
|
1054
|
-
log.info("Watching
|
1057
|
+
log.info({ path: absSchemaPath }, "Watching supergraph for changes");
|
1055
1058
|
const ctrl = new AbortController();
|
1056
1059
|
registerTerminateHandler((signal) => {
|
1057
|
-
log.info(
|
1060
|
+
log.info(
|
1061
|
+
{ path: absSchemaPath },
|
1062
|
+
`Closing watcher for supergraph on ${signal}`
|
1063
|
+
);
|
1058
1064
|
return ctrl.abort(`Process terminated on ${signal}`);
|
1059
1065
|
});
|
1060
1066
|
(async function watcher() {
|
@@ -1064,7 +1070,10 @@ async function runSupergraph({ log }, config) {
|
|
1064
1070
|
if (f.eventType === "rename") {
|
1065
1071
|
throw new Error(`Supergraph file was renamed to "${f.filename}"`);
|
1066
1072
|
}
|
1067
|
-
log.info(
|
1073
|
+
log.info(
|
1074
|
+
{ path: absSchemaPath },
|
1075
|
+
"Supergraph changed. Invalidating..."
|
1076
|
+
);
|
1068
1077
|
if (config.fork && config.fork > 1) {
|
1069
1078
|
for (const workerId in cluster.workers) {
|
1070
1079
|
cluster.workers[workerId].send("invalidateUnifiedGraph");
|
@@ -1075,9 +1084,15 @@ async function runSupergraph({ log }, config) {
|
|
1075
1084
|
}
|
1076
1085
|
})().catch((e) => {
|
1077
1086
|
if (e.name === "AbortError") return;
|
1078
|
-
log.error(
|
1087
|
+
log.error(
|
1088
|
+
{ path: absSchemaPath, err: e },
|
1089
|
+
"Supergraph watcher closed with an error"
|
1090
|
+
);
|
1079
1091
|
}).then(() => {
|
1080
|
-
log.info(
|
1092
|
+
log.info(
|
1093
|
+
{ path: absSchemaPath },
|
1094
|
+
"Supergraph watcher successfuly closed"
|
1095
|
+
);
|
1081
1096
|
});
|
1082
1097
|
}
|
1083
1098
|
}
|
@@ -1107,13 +1122,13 @@ async function runSupergraph({ log }, config) {
|
|
1107
1122
|
}
|
1108
1123
|
const runtime = createGatewayRuntime(config);
|
1109
1124
|
if (absSchemaPath) {
|
1110
|
-
log.info("Serving local supergraph
|
1125
|
+
log.info({ path: absSchemaPath }, "Serving local supergraph");
|
1111
1126
|
} else if (isUrl(String(config.supergraph))) {
|
1112
|
-
log.info(
|
1127
|
+
log.info({ url: config.supergraph }, "Serving remote supergraph");
|
1113
1128
|
} else if (typeof config.supergraph === "object" && "type" in config.supergraph && config.supergraph.type === "hive") {
|
1114
1129
|
log.info(
|
1115
|
-
|
1116
|
-
|
1130
|
+
{ endpoint: config.supergraph.endpoint },
|
1131
|
+
"Serving supergraph from Hive CDN"
|
1117
1132
|
);
|
1118
1133
|
} else {
|
1119
1134
|
log.info("Serving supergraph from config");
|
@@ -1156,7 +1171,8 @@ const defaultOptions = {
|
|
1156
1171
|
host: platform().toLowerCase() === "win32" || // is WSL?
|
1157
1172
|
release().toLowerCase().includes("microsoft") ? "127.0.0.1" : "0.0.0.0",
|
1158
1173
|
port: 4e3,
|
1159
|
-
pollingInterval: 1e4
|
1174
|
+
pollingInterval: 1e4,
|
1175
|
+
renderGraphiQL
|
1160
1176
|
};
|
1161
1177
|
let cli = new Command().configureHelp({
|
1162
1178
|
// will print help of global options for each command
|
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');
|
@@ -24,6 +24,7 @@ require('node:module');
|
|
24
24
|
require('node:os');
|
25
25
|
require('node:path');
|
26
26
|
require('@commander-js/extra-typings');
|
27
|
+
require('@graphql-yoga/render-graphiql');
|
27
28
|
require('@graphql-mesh/utils');
|
28
29
|
require('node:fs/promises');
|
29
30
|
require('node:url');
|
package/dist/index.d.cts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as graphql_yoga from 'graphql-yoga';
|
1
2
|
import { Command } from '@commander-js/extra-typings';
|
2
3
|
import { GatewayConfigContext, GatewayConfigSupergraph, GatewayHiveReportingOptions, GatewayGraphOSReportingOptions, GatewayConfigSubgraph, GatewayConfigProxy, GatewayPlugin } from '@graphql-hive/gateway-runtime';
|
3
4
|
export * from '@graphql-hive/gateway-runtime';
|
@@ -258,6 +259,7 @@ declare const defaultOptions: {
|
|
258
259
|
host: string;
|
259
260
|
port: number;
|
260
261
|
pollingInterval: number;
|
262
|
+
renderGraphiQL: (opts?: graphql_yoga.GraphiQLOptions) => string;
|
261
263
|
};
|
262
264
|
/** Root cli for the gateway. */
|
263
265
|
declare let cli: Command<[], {
|
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as graphql_yoga from 'graphql-yoga';
|
1
2
|
import { Command } from '@commander-js/extra-typings';
|
2
3
|
import { GatewayConfigContext, GatewayConfigSupergraph, GatewayHiveReportingOptions, GatewayGraphOSReportingOptions, GatewayConfigSubgraph, GatewayConfigProxy, GatewayPlugin } from '@graphql-hive/gateway-runtime';
|
3
4
|
export * from '@graphql-hive/gateway-runtime';
|
@@ -258,6 +259,7 @@ declare const defaultOptions: {
|
|
258
259
|
host: string;
|
259
260
|
port: number;
|
260
261
|
pollingInterval: number;
|
262
|
+
renderGraphiQL: (opts?: graphql_yoga.GraphiQLOptions) => string;
|
261
263
|
};
|
262
264
|
/** Root cli for the gateway. */
|
263
265
|
declare let cli: Command<[], {
|
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';
|
@@ -23,6 +23,7 @@ import 'node:module';
|
|
23
23
|
import 'node:os';
|
24
24
|
import 'node:path';
|
25
25
|
import '@commander-js/extra-typings';
|
26
|
+
import '@graphql-yoga/render-graphiql';
|
26
27
|
import '@graphql-mesh/utils';
|
27
28
|
import 'node:fs/promises';
|
28
29
|
import 'node:url';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-hive/gateway",
|
3
|
-
"version": "2.0.0-alpha-
|
3
|
+
"version": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -53,10 +53,10 @@
|
|
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-alpha-
|
56
|
+
"@graphql-hive/gateway-runtime": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
57
57
|
"@graphql-hive/importer": "^1.1.0",
|
58
|
-
"@graphql-hive/logger": "1.0.0-alpha-
|
59
|
-
"@graphql-hive/plugin-aws-sigv4": "1.0.
|
58
|
+
"@graphql-hive/logger": "1.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
59
|
+
"@graphql-hive/plugin-aws-sigv4": "1.0.12-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
60
60
|
"@graphql-hive/plugin-deduplicate-request": "^1.0.0",
|
61
61
|
"@graphql-hive/pubsub": "^1.0.0",
|
62
62
|
"@graphql-mesh/cache-cfw-kv": "^0.105.0",
|
@@ -64,33 +64,34 @@
|
|
64
64
|
"@graphql-mesh/cache-redis": "^0.104.0",
|
65
65
|
"@graphql-mesh/cache-upstash-redis": "^0.1.0",
|
66
66
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
67
|
-
"@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-
|
67
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
68
68
|
"@graphql-mesh/plugin-http-cache": "^0.105.2",
|
69
69
|
"@graphql-mesh/plugin-jit": "^0.2.0",
|
70
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-
|
70
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
71
71
|
"@graphql-mesh/plugin-mock": "^0.105.0",
|
72
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-
|
73
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-alpha-
|
72
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
73
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
74
74
|
"@graphql-mesh/plugin-rate-limit": "^0.104.0",
|
75
75
|
"@graphql-mesh/plugin-snapshot": "^0.104.0",
|
76
|
-
"@graphql-mesh/transport-http": "0.6.
|
77
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-alpha-
|
78
|
-
"@graphql-mesh/transport-ws": "2.0.0-alpha-
|
76
|
+
"@graphql-mesh/transport-http": "0.6.43-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
77
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
78
|
+
"@graphql-mesh/transport-ws": "2.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
79
79
|
"@graphql-mesh/types": "^0.104.0",
|
80
80
|
"@graphql-mesh/utils": "^0.104.2",
|
81
81
|
"@graphql-tools/code-file-loader": "^8.1.15",
|
82
|
-
"@graphql-tools/graphql-file-loader": "^8.0.
|
82
|
+
"@graphql-tools/graphql-file-loader": "^8.0.20",
|
83
83
|
"@graphql-tools/load": "^8.0.14",
|
84
84
|
"@graphql-tools/utils": "^10.8.1",
|
85
|
+
"@graphql-yoga/render-graphiql": "^5.13.5",
|
85
86
|
"commander": "^13.1.0",
|
86
87
|
"dotenv": "^16.4.7",
|
87
88
|
"graphql-ws": "^6.0.4",
|
88
|
-
"graphql-yoga": "^5.13.
|
89
|
+
"graphql-yoga": "^5.13.5",
|
89
90
|
"tslib": "^2.8.1",
|
90
91
|
"ws": "^8.18.0"
|
91
92
|
},
|
92
93
|
"devDependencies": {
|
93
|
-
"@graphql-mesh/transport-common": "1.0.0-alpha-
|
94
|
+
"@graphql-mesh/transport-common": "1.0.0-alpha-7184bde516d9890379b9bed7d06426fad8c16546",
|
94
95
|
"@graphql-mesh/transport-soap": "^0.10.0",
|
95
96
|
"@graphql-tools/executor": "^1.4.7",
|
96
97
|
"@rollup/plugin-commonjs": "^28.0.0",
|
@@ -99,17 +100,17 @@
|
|
99
100
|
"@rollup/plugin-sucrase": "^5.0.2",
|
100
101
|
"@tsconfig/node18": "^18.2.4",
|
101
102
|
"@types/adm-zip": "^0.5.5",
|
102
|
-
"@types/bun": "1.2.
|
103
|
+
"@types/bun": "1.2.15",
|
103
104
|
"@types/ws": "^8.5.12",
|
104
105
|
"@whatwg-node/fetch": "^0.10.8",
|
105
106
|
"adm-zip": "^0.5.15",
|
106
|
-
"bun": "^1.
|
107
|
+
"bun": "^1.2.15",
|
107
108
|
"graphql": "^16.9.0",
|
108
109
|
"parse-duration": "^2.0.0",
|
109
110
|
"pkgroll": "2.12.2",
|
110
111
|
"postject": "^1.0.0-alpha.6",
|
111
112
|
"rimraf": "^6.0.1",
|
112
|
-
"rollup": "
|
113
|
+
"rollup": "4.40.2",
|
113
114
|
"rollup-plugin-tsconfig-paths": "^1.5.2",
|
114
115
|
"tsx": "4.19.4"
|
115
116
|
},
|