@graphql-hive/gateway 2.2.0-alpha-5d67ab884ec6dd01c6bb1deedb7da1f9c1201405 → 2.2.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980
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 +5 -16
- package/dist/bin.cjs +2 -3
- package/dist/bin.js +2 -3
- package/dist/{cli-DhpSD4Os.cjs → cli-B-xjzGm6.cjs} +11 -13
- package/dist/{cli-Q4Ki2Qs_.js → cli-iuPgpffC.js} +3 -5
- package/dist/index.cjs +1 -2
- package/dist/index.js +1 -2
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @graphql-hive/gateway
|
|
2
2
|
|
|
3
|
-
## 2.2.0-
|
|
3
|
+
## 2.2.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980
|
|
4
4
|
### Minor Changes
|
|
5
5
|
|
|
6
6
|
|
|
@@ -20,23 +20,12 @@
|
|
|
20
20
|
|
|
21
21
|
### Patch Changes
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
- Added dependency [`@whatwg-node/server@^0.10.17` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.17) (to `dependencies`)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- [#1804](https://github.com/graphql-hive/gateway/pull/1804) [`c913e6c`](https://github.com/graphql-hive/gateway/commit/c913e6cfec407d4d2da5b264d38047a9df8e09f0) Thanks [@ardatan](https://github.com/ardatan)! - Fixes for better support of the plugin system in WebSockets;
|
|
31
|
-
|
|
32
|
-
- Ensure `params: GraphQLParams` and `request: Request` exist in the context
|
|
33
|
-
- Invoke `onParams` and `onExecutionResult` hooks from plugins properly
|
|
34
|
-
- Updated dependencies [[`15b9e50`](https://github.com/graphql-hive/gateway/commit/15b9e5037fa74f8c1a8e662e196268a88642c27d), [`abd350b`](https://github.com/graphql-hive/gateway/commit/abd350b913c8938cf173a4a5e25b3ba6c04016fc), [`c913e6c`](https://github.com/graphql-hive/gateway/commit/c913e6cfec407d4d2da5b264d38047a9df8e09f0), [`071b1e0`](https://github.com/graphql-hive/gateway/commit/071b1e0e5a8cc04bc2815fd8e77c5549727f7bb7), [`071b1e0`](https://github.com/graphql-hive/gateway/commit/071b1e0e5a8cc04bc2815fd8e77c5549727f7bb7), [`a50d93a`](https://github.com/graphql-hive/gateway/commit/a50d93a0bc8f3c67de7449ad9102d3f3b60ea96a), [`071b1e0`](https://github.com/graphql-hive/gateway/commit/071b1e0e5a8cc04bc2815fd8e77c5549727f7bb7)]:
|
|
35
|
-
- @graphql-hive/gateway-runtime@2.5.0-alpha-5d67ab884ec6dd01c6bb1deedb7da1f9c1201405
|
|
36
|
-
- @graphql-hive/plugin-opentelemetry@1.3.0-alpha-5d67ab884ec6dd01c6bb1deedb7da1f9c1201405
|
|
23
|
+
- Updated dependencies [[`15b9e50`](https://github.com/graphql-hive/gateway/commit/15b9e5037fa74f8c1a8e662e196268a88642c27d), [`abd350b`](https://github.com/graphql-hive/gateway/commit/abd350b913c8938cf173a4a5e25b3ba6c04016fc), [`071b1e0`](https://github.com/graphql-hive/gateway/commit/071b1e0e5a8cc04bc2815fd8e77c5549727f7bb7), [`071b1e0`](https://github.com/graphql-hive/gateway/commit/071b1e0e5a8cc04bc2815fd8e77c5549727f7bb7), [`a50d93a`](https://github.com/graphql-hive/gateway/commit/a50d93a0bc8f3c67de7449ad9102d3f3b60ea96a), [`071b1e0`](https://github.com/graphql-hive/gateway/commit/071b1e0e5a8cc04bc2815fd8e77c5549727f7bb7)]:
|
|
24
|
+
- @graphql-hive/gateway-runtime@2.5.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980
|
|
25
|
+
- @graphql-hive/plugin-opentelemetry@1.3.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980
|
|
37
26
|
- @graphql-hive/plugin-aws-sigv4@2.0.20
|
|
38
27
|
- @graphql-mesh/hmac-upstream-signature@2.0.8
|
|
39
|
-
- @graphql-mesh/plugin-prometheus@2.1.10-
|
|
28
|
+
- @graphql-mesh/plugin-prometheus@2.1.10-rc-ebf83bc98540be878888a5491dcf0bf2b198f980
|
|
40
29
|
|
|
41
30
|
## 2.1.23
|
|
42
31
|
### Patch Changes
|
package/dist/bin.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require('dotenv/config');
|
|
4
4
|
var module$1 = require('node:module');
|
|
5
5
|
var logger = require('@graphql-hive/logger');
|
|
6
|
-
var cli = require('./cli-
|
|
6
|
+
var cli = require('./cli-B-xjzGm6.cjs');
|
|
7
7
|
require('node:cluster');
|
|
8
8
|
require('node:os');
|
|
9
9
|
require('node:path');
|
|
@@ -17,7 +17,6 @@ require('node:url');
|
|
|
17
17
|
require('node:fs');
|
|
18
18
|
require('node:http');
|
|
19
19
|
require('node:https');
|
|
20
|
-
require('@whatwg-node/server');
|
|
21
20
|
require('@opentelemetry/sdk-trace-base');
|
|
22
21
|
require('@graphql-tools/utils');
|
|
23
22
|
require('@graphql-tools/code-file-loader');
|
|
@@ -29,7 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
29
28
|
|
|
30
29
|
var module__default = /*#__PURE__*/_interopDefault(module$1);
|
|
31
30
|
|
|
32
|
-
globalThis.__VERSION__ = '2.2.0-
|
|
31
|
+
globalThis.__VERSION__ = '2.2.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980';
|
|
33
32
|
module__default.default.register("@graphql-hive/importer/hooks", {
|
|
34
33
|
parentURL: (
|
|
35
34
|
// @ts-ignore bob will complain when bundling for cjs
|
package/dist/bin.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import 'dotenv/config';
|
|
3
3
|
import module$1 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-iuPgpffC.js';
|
|
6
6
|
import 'node:cluster';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:path';
|
|
@@ -16,14 +16,13 @@ import 'node:url';
|
|
|
16
16
|
import 'node:fs';
|
|
17
17
|
import 'node:http';
|
|
18
18
|
import 'node:https';
|
|
19
|
-
import '@whatwg-node/server';
|
|
20
19
|
import '@opentelemetry/sdk-trace-base';
|
|
21
20
|
import '@graphql-tools/utils';
|
|
22
21
|
import '@graphql-tools/code-file-loader';
|
|
23
22
|
import '@graphql-tools/graphql-file-loader';
|
|
24
23
|
import '@graphql-tools/load';
|
|
25
24
|
|
|
26
|
-
globalThis.__VERSION__ = '2.2.0-
|
|
25
|
+
globalThis.__VERSION__ = '2.2.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980';
|
|
27
26
|
module$1.register("@graphql-hive/importer/hooks", {
|
|
28
27
|
parentURL: (
|
|
29
28
|
// @ts-ignore bob will complain when bundling for cjs
|
|
@@ -15,7 +15,6 @@ var node_url = require('node:url');
|
|
|
15
15
|
var node_fs = require('node:fs');
|
|
16
16
|
var node_http = require('node:http');
|
|
17
17
|
var node_https = require('node:https');
|
|
18
|
-
var server = require('@whatwg-node/server');
|
|
19
18
|
var sdkTraceBase = require('@opentelemetry/sdk-trace-base');
|
|
20
19
|
var utils$1 = require('@graphql-tools/utils');
|
|
21
20
|
var codeFileLoader = require('@graphql-tools/code-file-loader');
|
|
@@ -319,7 +318,7 @@ async function startBunServer(gwRuntime, opts) {
|
|
|
319
318
|
serverOptions.websocket = makeHandler(
|
|
320
319
|
gatewayRuntime.getGraphQLWSOptions(gwRuntime, (ctx) => ({
|
|
321
320
|
socket: ctx.extra.socket,
|
|
322
|
-
...ctx.extra.socket.data
|
|
321
|
+
...ctx.extra.socket.data || {}
|
|
323
322
|
}))
|
|
324
323
|
);
|
|
325
324
|
serverOptions.fetch = function(request, server2) {
|
|
@@ -348,7 +347,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
|
348
347
|
disableWebsockets,
|
|
349
348
|
requestTimeout
|
|
350
349
|
} = opts;
|
|
351
|
-
let server
|
|
350
|
+
let server;
|
|
352
351
|
let protocol;
|
|
353
352
|
if (sslCredentials) {
|
|
354
353
|
protocol = "https";
|
|
@@ -382,7 +381,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
|
382
381
|
if (sslCredentials.ssl_prefer_low_memory_usage) {
|
|
383
382
|
sslOptionsForNodeHttp.honorCipherOrder = true;
|
|
384
383
|
}
|
|
385
|
-
server
|
|
384
|
+
server = node_https.createServer(
|
|
386
385
|
{
|
|
387
386
|
...sslOptionsForNodeHttp,
|
|
388
387
|
maxHeaderSize,
|
|
@@ -392,7 +391,7 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
|
392
391
|
);
|
|
393
392
|
} else {
|
|
394
393
|
protocol = "http";
|
|
395
|
-
server
|
|
394
|
+
server = node_http.createServer(
|
|
396
395
|
{
|
|
397
396
|
maxHeaderSize,
|
|
398
397
|
requestTimeout
|
|
@@ -407,14 +406,13 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
|
407
406
|
const { WebSocketServer } = await import('ws');
|
|
408
407
|
const wsServer = new WebSocketServer({
|
|
409
408
|
path: gwRuntime.graphqlEndpoint,
|
|
410
|
-
server
|
|
409
|
+
server
|
|
411
410
|
});
|
|
412
411
|
const { useServer } = await import('graphql-ws/use/ws');
|
|
413
412
|
useServer(
|
|
414
413
|
gatewayRuntime.getGraphQLWSOptions(gwRuntime, (ctx) => ({
|
|
415
|
-
req: ctx.extra
|
|
416
|
-
socket: ctx.extra
|
|
417
|
-
request: server.normalizeNodeRequest(ctx.extra.request, gwRuntime.fetchAPI)
|
|
414
|
+
req: ctx.extra?.request,
|
|
415
|
+
socket: ctx.extra?.socket
|
|
418
416
|
})),
|
|
419
417
|
wsServer
|
|
420
418
|
);
|
|
@@ -432,15 +430,15 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
|
432
430
|
);
|
|
433
431
|
}
|
|
434
432
|
return new Promise((resolve, reject) => {
|
|
435
|
-
server
|
|
436
|
-
server
|
|
433
|
+
server.once("error", reject);
|
|
434
|
+
server.listen(port, host, () => {
|
|
437
435
|
log.info(`Listening on ${url}`);
|
|
438
436
|
gwRuntime.disposableStack.defer(
|
|
439
437
|
() => new Promise((resolve2) => {
|
|
440
438
|
process.stderr.write("\n");
|
|
441
439
|
log.info("Stopping the server");
|
|
442
|
-
server
|
|
443
|
-
server
|
|
440
|
+
server.closeAllConnections();
|
|
441
|
+
server.close(() => {
|
|
444
442
|
log.info("Stopped the server successfully");
|
|
445
443
|
return resolve2();
|
|
446
444
|
});
|
|
@@ -13,7 +13,6 @@ import { pathToFileURL } from 'node:url';
|
|
|
13
13
|
import { promises } from 'node:fs';
|
|
14
14
|
import { createServer as createServer$1 } from 'node:http';
|
|
15
15
|
import { createServer } from 'node:https';
|
|
16
|
-
import { normalizeNodeRequest } from '@whatwg-node/server';
|
|
17
16
|
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
|
|
18
17
|
import { isValidPath, asArray } from '@graphql-tools/utils';
|
|
19
18
|
import { CodeFileLoader } from '@graphql-tools/code-file-loader';
|
|
@@ -312,7 +311,7 @@ async function startBunServer(gwRuntime, opts) {
|
|
|
312
311
|
serverOptions.websocket = makeHandler(
|
|
313
312
|
getGraphQLWSOptions(gwRuntime, (ctx) => ({
|
|
314
313
|
socket: ctx.extra.socket,
|
|
315
|
-
...ctx.extra.socket.data
|
|
314
|
+
...ctx.extra.socket.data || {}
|
|
316
315
|
}))
|
|
317
316
|
);
|
|
318
317
|
serverOptions.fetch = function(request, server2) {
|
|
@@ -405,9 +404,8 @@ async function startNodeHttpServer(gwRuntime, opts) {
|
|
|
405
404
|
const { useServer } = await import('graphql-ws/use/ws');
|
|
406
405
|
useServer(
|
|
407
406
|
getGraphQLWSOptions(gwRuntime, (ctx) => ({
|
|
408
|
-
req: ctx.extra
|
|
409
|
-
socket: ctx.extra
|
|
410
|
-
request: normalizeNodeRequest(ctx.extra.request, gwRuntime.fetchAPI)
|
|
407
|
+
req: ctx.extra?.request,
|
|
408
|
+
socket: ctx.extra?.socket
|
|
411
409
|
})),
|
|
412
410
|
wsServer
|
|
413
411
|
);
|
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-B-xjzGm6.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');
|
|
@@ -30,7 +30,6 @@ require('node:url');
|
|
|
30
30
|
require('node:fs');
|
|
31
31
|
require('node:http');
|
|
32
32
|
require('node:https');
|
|
33
|
-
require('@whatwg-node/server');
|
|
34
33
|
require('@opentelemetry/sdk-trace-base');
|
|
35
34
|
require('@graphql-tools/utils');
|
|
36
35
|
require('@graphql-tools/code-file-loader');
|
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-iuPgpffC.js';
|
|
2
2
|
export * from '@graphql-hive/logger';
|
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
|
4
4
|
export * from '@graphql-hive/pubsub';
|
|
@@ -29,7 +29,6 @@ import 'node:url';
|
|
|
29
29
|
import 'node:fs';
|
|
30
30
|
import 'node:http';
|
|
31
31
|
import 'node:https';
|
|
32
|
-
import '@whatwg-node/server';
|
|
33
32
|
import '@opentelemetry/sdk-trace-base';
|
|
34
33
|
import '@graphql-tools/utils';
|
|
35
34
|
import '@graphql-tools/code-file-loader';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/gateway",
|
|
3
|
-
"version": "2.2.0-
|
|
3
|
+
"version": "2.2.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
|
|
95
95
|
"@escape.tech/graphql-armor-max-depth": "^2.4.2",
|
|
96
96
|
"@escape.tech/graphql-armor-max-tokens": "^2.5.0",
|
|
97
|
-
"@graphql-hive/gateway-runtime": "2.5.0-
|
|
97
|
+
"@graphql-hive/gateway-runtime": "2.5.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980",
|
|
98
98
|
"@graphql-hive/importer": "^2.0.0",
|
|
99
99
|
"@graphql-hive/logger": "^1.0.9",
|
|
100
100
|
"@graphql-hive/plugin-aws-sigv4": "^2.0.20",
|
|
101
|
-
"@graphql-hive/plugin-opentelemetry": "1.3.0-
|
|
101
|
+
"@graphql-hive/plugin-opentelemetry": "1.3.0-rc-ebf83bc98540be878888a5491dcf0bf2b198f980",
|
|
102
102
|
"@graphql-hive/pubsub": "^2.1.1",
|
|
103
103
|
"@graphql-mesh/cache-cfw-kv": "^0.105.16",
|
|
104
104
|
"@graphql-mesh/cache-localforage": "^0.105.17",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@graphql-mesh/plugin-http-cache": "^0.105.17",
|
|
110
110
|
"@graphql-mesh/plugin-jit": "^0.2.16",
|
|
111
111
|
"@graphql-mesh/plugin-jwt-auth": "^2.0.9",
|
|
112
|
-
"@graphql-mesh/plugin-prometheus": "2.1.10-
|
|
112
|
+
"@graphql-mesh/plugin-prometheus": "2.1.10-rc-ebf83bc98540be878888a5491dcf0bf2b198f980",
|
|
113
113
|
"@graphql-mesh/plugin-rate-limit": "^0.105.5",
|
|
114
114
|
"@graphql-mesh/plugin-snapshot": "^0.104.16",
|
|
115
115
|
"@graphql-mesh/transport-http": "^1.0.12",
|
|
@@ -135,7 +135,6 @@
|
|
|
135
135
|
"@opentelemetry/sdk-logs": "^0.208.0",
|
|
136
136
|
"@opentelemetry/sdk-metrics": "^2.2.0",
|
|
137
137
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
138
|
-
"@whatwg-node/server": "^0.10.17",
|
|
139
138
|
"commander": "^14.0.2",
|
|
140
139
|
"dotenv": "^17.2.3",
|
|
141
140
|
"graphql-ws": "^6.0.6",
|