@graphql-hive/gateway 2.0.0-next-1374f636c439d91725ef6761f936f8160986a48b → 2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
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 +25 -25
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-BG8XaVLT.js → cli-BPJkk_8e.js} +4 -4
- package/dist/{cli-DqXsx5Cd.cjs → cli-Cm9aDkDW.cjs} +3 -3
- package/dist/index.cjs +5 -7
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-next-
|
3
|
+
## 2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
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) [`f3498f0`](https://github.com/graphql-hive/gateway/commit/f3498f0cb5619cbd58f4b9f9a4a19a8ee29942c3) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
|
8
8
|
|
9
9
|
Least supported Node version is now v20.
|
10
10
|
|
11
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
11
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`4feb479`](https://github.com/graphql-hive/gateway/commit/4feb479abde20015205c4903ec185d9adaa8796f) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
|
12
12
|
- [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
|
13
13
|
- If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
|
14
14
|
|
15
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
15
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`06d9cbf`](https://github.com/graphql-hive/gateway/commit/06d9cbfb059caa70b548e2fe7e0c9d3263fca877) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
|
16
16
|
|
17
17
|
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.
|
18
18
|
|
19
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
19
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`4aee873`](https://github.com/graphql-hive/gateway/commit/4aee87330a6589e27bbf5c42a915552f4230132d) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
|
20
20
|
|
21
21
|
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.
|
22
22
|
|
23
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
23
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`b32708b`](https://github.com/graphql-hive/gateway/commit/b32708bf8cc376a4135cf3b63e7763cbeb77cf10) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
|
24
24
|
|
25
25
|
Failing to start if the schema is not loaded for whatever reason.
|
26
26
|
|
27
27
|
### Patch Changes
|
28
28
|
|
29
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
29
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`4feb479`](https://github.com/graphql-hive/gateway/commit/4feb479abde20015205c4903ec185d9adaa8796f) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
30
30
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
31
31
|
|
32
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
32
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`0e4f107`](https://github.com/graphql-hive/gateway/commit/0e4f107a0fb06d9687b20f75166cf654802f32a4) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
33
33
|
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
34
34
|
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
35
35
|
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
@@ -40,11 +40,11 @@
|
|
40
40
|
- Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.202.0) (to `dependencies`)
|
41
41
|
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
42
42
|
|
43
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
43
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`5505784`](https://github.com/graphql-hive/gateway/commit/55057841b9aa3b7c13e91bb2be9d980728721926) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
44
44
|
- Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
|
45
45
|
- Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
|
46
46
|
|
47
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
47
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`ce13308`](https://github.com/graphql-hive/gateway/commit/ce133081f4f9612a04d09c9fe54bd6b1402148d4) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
48
48
|
- Added dependency [`@opentelemetry/context-async-hooks@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-async-hooks/v/2.0.1) (to `dependencies`)
|
49
49
|
- Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
|
50
50
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
- Updated dependency [`@graphql-mesh/types@^0.104.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.8) (from `^0.104.7`, in `dependencies`)
|
57
57
|
- Updated dependency [`@graphql-mesh/utils@^0.104.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.8) (from `^0.104.7`, in `dependencies`)
|
58
58
|
|
59
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
59
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`f82ff95`](https://github.com/graphql-hive/gateway/commit/f82ff950a3a0c59f33a88c9839dbfda6c45fe98b) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
60
60
|
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
61
61
|
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
62
62
|
- Added dependency [`@opentelemetry/api-logs@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.203.0) (to `dependencies`)
|
@@ -73,20 +73,20 @@
|
|
73
73
|
- Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
|
74
74
|
- Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
|
75
75
|
|
76
|
-
- Updated dependencies [[`
|
77
|
-
- @graphql-hive/gateway-runtime@2.0.0-next-
|
78
|
-
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-
|
79
|
-
- @graphql-
|
80
|
-
- @graphql-mesh/
|
81
|
-
- @graphql-mesh/plugin-
|
82
|
-
- @graphql-mesh/plugin-
|
83
|
-
- @graphql-mesh/
|
84
|
-
- @graphql-mesh/transport-http@1.0.0-next-
|
85
|
-
- @graphql-mesh/transport-
|
86
|
-
- @graphql-
|
87
|
-
- @graphql-hive/
|
88
|
-
- @graphql-hive/
|
89
|
-
- @graphql-hive/logger@1.0.1-next-
|
76
|
+
- Updated dependencies [[`4feb479`](https://github.com/graphql-hive/gateway/commit/4feb479abde20015205c4903ec185d9adaa8796f), [`3a49671`](https://github.com/graphql-hive/gateway/commit/3a49671236d3ea4deda7e7203ffc5c8693e6a676), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`f82ff95`](https://github.com/graphql-hive/gateway/commit/f82ff950a3a0c59f33a88c9839dbfda6c45fe98b), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`0e4f107`](https://github.com/graphql-hive/gateway/commit/0e4f107a0fb06d9687b20f75166cf654802f32a4), [`5505784`](https://github.com/graphql-hive/gateway/commit/55057841b9aa3b7c13e91bb2be9d980728721926), [`ce13308`](https://github.com/graphql-hive/gateway/commit/ce133081f4f9612a04d09c9fe54bd6b1402148d4), [`3a49671`](https://github.com/graphql-hive/gateway/commit/3a49671236d3ea4deda7e7203ffc5c8693e6a676), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`9222a85`](https://github.com/graphql-hive/gateway/commit/9222a859f216db895e88905c10bf85b1ca7f2a2c), [`3c9861e`](https://github.com/graphql-hive/gateway/commit/3c9861ea4931f08d82027bea5554370cdfb9ec9f), [`ab665bf`](https://github.com/graphql-hive/gateway/commit/ab665bf9e8a8774dfa37bfe8f1dd4a2d7d50a861), [`4feb479`](https://github.com/graphql-hive/gateway/commit/4feb479abde20015205c4903ec185d9adaa8796f), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`f82ff95`](https://github.com/graphql-hive/gateway/commit/f82ff950a3a0c59f33a88c9839dbfda6c45fe98b), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`f3498f0`](https://github.com/graphql-hive/gateway/commit/f3498f0cb5619cbd58f4b9f9a4a19a8ee29942c3), [`4feb479`](https://github.com/graphql-hive/gateway/commit/4feb479abde20015205c4903ec185d9adaa8796f), [`c7c044b`](https://github.com/graphql-hive/gateway/commit/c7c044bfdf41bf9eead31826acad6ff1a2c81192), [`f77fc27`](https://github.com/graphql-hive/gateway/commit/f77fc27d3f1ebf43dde1b8ef9477920558d68ee3), [`605545a`](https://github.com/graphql-hive/gateway/commit/605545a49a11d315d26e60e5ab40f8174334b7ac), [`d773ed9`](https://github.com/graphql-hive/gateway/commit/d773ed91a5988abd55b3d4a475e003e86b466cb6), [`aca9397`](https://github.com/graphql-hive/gateway/commit/aca93974416f63b0c61fd168d0c5b9822d674e64), [`c7c044b`](https://github.com/graphql-hive/gateway/commit/c7c044bfdf41bf9eead31826acad6ff1a2c81192), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`4564dd4`](https://github.com/graphql-hive/gateway/commit/4564dd4565cb27ff6a1f5c78c4d431d9f10bd12b), [`ab665bf`](https://github.com/graphql-hive/gateway/commit/ab665bf9e8a8774dfa37bfe8f1dd4a2d7d50a861), [`4feb479`](https://github.com/graphql-hive/gateway/commit/4feb479abde20015205c4903ec185d9adaa8796f), [`4930efa`](https://github.com/graphql-hive/gateway/commit/4930efad469041300afe677c29c8f6200c25c789)]:
|
77
|
+
- @graphql-hive/gateway-runtime@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
78
|
+
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
79
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
80
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
81
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
82
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
83
|
+
- @graphql-mesh/transport-http@1.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
84
|
+
- @graphql-mesh/transport-http-callback@1.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
85
|
+
- @graphql-mesh/transport-ws@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
86
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
87
|
+
- @graphql-hive/importer@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
88
|
+
- @graphql-hive/pubsub@2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
89
|
+
- @graphql-hive/logger@1.0.1-next-02748416ada7a2f44e4de7c7c2acb15371881e4b
|
90
90
|
|
91
91
|
## 1.16.3
|
92
92
|
|
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-Cm9aDkDW.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-BPJkk_8e.js';
|
6
6
|
import 'node:cluster';
|
7
7
|
import 'node:os';
|
8
8
|
import 'node:path';
|
@@ -6,7 +6,7 @@ import { Option, Command, InvalidArgumentError } from '@commander-js/extra-typin
|
|
6
6
|
import { LegacyLogger, Logger } from '@graphql-hive/logger';
|
7
7
|
import { renderGraphiQL } from '@graphql-yoga/render-graphiql';
|
8
8
|
import { getGraphQLWSOptions, createLoggerFromLogging, createGatewayRuntime } from '@graphql-hive/gateway-runtime';
|
9
|
-
import {
|
9
|
+
import { PubSub } from '@graphql-hive/pubsub';
|
10
10
|
import { registerTerminateHandler, isUrl } from '@graphql-mesh/utils';
|
11
11
|
import { lstat, watch } from 'node:fs/promises';
|
12
12
|
import { pathToFileURL } from 'node:url';
|
@@ -764,7 +764,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
|
|
764
764
|
if (reporting) {
|
765
765
|
registryConfig.reporting = reporting;
|
766
766
|
}
|
767
|
-
const pubsub = loadedConfig.pubsub || new
|
767
|
+
const pubsub = loadedConfig.pubsub || new PubSub();
|
768
768
|
const cwd = loadedConfig.cwd || process.cwd();
|
769
769
|
if (loadedConfig.logging != null) {
|
770
770
|
ctx.log = createLoggerFromLogging(loadedConfig.logging);
|
@@ -902,7 +902,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
|
|
902
902
|
if (reporting) {
|
903
903
|
registryConfig.reporting = reporting;
|
904
904
|
}
|
905
|
-
const pubsub = loadedConfig.pubsub || new
|
905
|
+
const pubsub = loadedConfig.pubsub || new PubSub();
|
906
906
|
const cwd = loadedConfig.cwd || process.cwd();
|
907
907
|
if (loadedConfig.logging != null) {
|
908
908
|
ctx.log = createLoggerFromLogging(loadedConfig.logging);
|
@@ -1136,7 +1136,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
1136
1136
|
if (reporting) {
|
1137
1137
|
registryConfig.reporting = reporting;
|
1138
1138
|
}
|
1139
|
-
const pubsub = loadedConfig.pubsub || new
|
1139
|
+
const pubsub = loadedConfig.pubsub || new PubSub();
|
1140
1140
|
const cwd = loadedConfig.cwd || process.cwd();
|
1141
1141
|
if (loadedConfig.logging != null) {
|
1142
1142
|
ctx.log = createLoggerFromLogging(loadedConfig.logging);
|
@@ -771,7 +771,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
|
|
771
771
|
if (reporting) {
|
772
772
|
registryConfig.reporting = reporting;
|
773
773
|
}
|
774
|
-
const pubsub$1 = loadedConfig.pubsub || new pubsub.
|
774
|
+
const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
|
775
775
|
const cwd = loadedConfig.cwd || process.cwd();
|
776
776
|
if (loadedConfig.logging != null) {
|
777
777
|
ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
|
@@ -909,7 +909,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
|
|
909
909
|
if (reporting) {
|
910
910
|
registryConfig.reporting = reporting;
|
911
911
|
}
|
912
|
-
const pubsub$1 = loadedConfig.pubsub || new pubsub.
|
912
|
+
const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
|
913
913
|
const cwd = loadedConfig.cwd || process.cwd();
|
914
914
|
if (loadedConfig.logging != null) {
|
915
915
|
ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
|
@@ -1143,7 +1143,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
1143
1143
|
if (reporting) {
|
1144
1144
|
registryConfig.reporting = reporting;
|
1145
1145
|
}
|
1146
|
-
const pubsub$1 = loadedConfig.pubsub || new pubsub.
|
1146
|
+
const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
|
1147
1147
|
const cwd = loadedConfig.cwd || process.cwd();
|
1148
1148
|
if (loadedConfig.logging != null) {
|
1149
1149
|
ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
|
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-Cm9aDkDW.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');
|
@@ -59,6 +59,10 @@ exports.getBuiltinPluginsFromConfig = cli.getBuiltinPluginsFromConfig;
|
|
59
59
|
exports.getCacheInstanceFromConfig = cli.getCacheInstanceFromConfig;
|
60
60
|
exports.handleNodeWarnings = cli.handleNodeWarnings;
|
61
61
|
exports.run = cli.run;
|
62
|
+
Object.defineProperty(exports, "PubSub", {
|
63
|
+
enumerable: true,
|
64
|
+
get: function () { return pubsub.PubSub; }
|
65
|
+
});
|
62
66
|
Object.defineProperty(exports, "usePrometheus", {
|
63
67
|
enumerable: true,
|
64
68
|
get: function () { return pluginPrometheus__default.default; }
|
@@ -119,12 +123,6 @@ Object.keys(gatewayRuntime).forEach(function (k) {
|
|
119
123
|
get: function () { return gatewayRuntime[k]; }
|
120
124
|
});
|
121
125
|
});
|
122
|
-
Object.keys(pubsub).forEach(function (k) {
|
123
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
124
|
-
enumerable: true,
|
125
|
-
get: function () { return pubsub[k]; }
|
126
|
-
});
|
127
|
-
});
|
128
126
|
Object.keys(pluginJwtAuth).forEach(function (k) {
|
129
127
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
130
128
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
@@ -5,8 +5,8 @@ export * from '@graphql-hive/gateway-runtime';
|
|
5
5
|
import { Logger } from '@graphql-hive/logger';
|
6
6
|
export * from '@graphql-hive/logger';
|
7
7
|
import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
|
8
|
-
import {
|
9
|
-
export
|
8
|
+
import { HivePubSub } from '@graphql-hive/pubsub';
|
9
|
+
export { PubSub } from '@graphql-hive/pubsub';
|
10
10
|
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';
|
@@ -135,7 +135,7 @@ interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cach
|
|
135
135
|
}
|
136
136
|
type KeyValueCacheFactoryFn = (ctx: {
|
137
137
|
log: Logger;
|
138
|
-
pubsub:
|
138
|
+
pubsub: HivePubSub;
|
139
139
|
cwd: string;
|
140
140
|
}) => KeyValueCache;
|
141
141
|
interface GatewayCLIBuiltinPluginConfig {
|
@@ -321,7 +321,7 @@ declare function enableModuleCachingIfPossible(): void;
|
|
321
321
|
declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
322
322
|
cache: KeyValueCache;
|
323
323
|
log: Logger;
|
324
|
-
pubsub:
|
324
|
+
pubsub: HivePubSub;
|
325
325
|
cwd: string;
|
326
326
|
}): Promise<GatewayPlugin[]>;
|
327
327
|
/**
|
@@ -330,7 +330,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
|
|
330
330
|
*/
|
331
331
|
declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
332
332
|
log: Logger;
|
333
|
-
pubsub:
|
333
|
+
pubsub: HivePubSub;
|
334
334
|
cwd: string;
|
335
335
|
}): Promise<KeyValueCache>;
|
336
336
|
|
package/dist/index.d.ts
CHANGED
@@ -5,8 +5,8 @@ export * from '@graphql-hive/gateway-runtime';
|
|
5
5
|
import { Logger } from '@graphql-hive/logger';
|
6
6
|
export * from '@graphql-hive/logger';
|
7
7
|
import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
|
8
|
-
import {
|
9
|
-
export
|
8
|
+
import { HivePubSub } from '@graphql-hive/pubsub';
|
9
|
+
export { PubSub } from '@graphql-hive/pubsub';
|
10
10
|
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';
|
@@ -135,7 +135,7 @@ interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cach
|
|
135
135
|
}
|
136
136
|
type KeyValueCacheFactoryFn = (ctx: {
|
137
137
|
log: Logger;
|
138
|
-
pubsub:
|
138
|
+
pubsub: HivePubSub;
|
139
139
|
cwd: string;
|
140
140
|
}) => KeyValueCache;
|
141
141
|
interface GatewayCLIBuiltinPluginConfig {
|
@@ -321,7 +321,7 @@ declare function enableModuleCachingIfPossible(): void;
|
|
321
321
|
declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
322
322
|
cache: KeyValueCache;
|
323
323
|
log: Logger;
|
324
|
-
pubsub:
|
324
|
+
pubsub: HivePubSub;
|
325
325
|
cwd: string;
|
326
326
|
}): Promise<GatewayPlugin[]>;
|
327
327
|
/**
|
@@ -330,7 +330,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
|
|
330
330
|
*/
|
331
331
|
declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
332
332
|
log: Logger;
|
333
|
-
pubsub:
|
333
|
+
pubsub: HivePubSub;
|
334
334
|
cwd: string;
|
335
335
|
}): Promise<KeyValueCache>;
|
336
336
|
|
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
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-BPJkk_8e.js';
|
2
2
|
export * from '@graphql-hive/logger';
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
4
|
-
export
|
4
|
+
export { PubSub } from '@graphql-hive/pubsub';
|
5
5
|
export * from '@graphql-mesh/plugin-jwt-auth';
|
6
6
|
export * from '@graphql-mesh/plugin-opentelemetry';
|
7
7
|
export * from '@graphql-mesh/plugin-prometheus';
|
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-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -53,28 +53,28 @@
|
|
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": "2.0.0-next-
|
58
|
-
"@graphql-hive/logger": "1.0.1-next-
|
59
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-
|
60
|
-
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-
|
61
|
-
"@graphql-hive/pubsub": "2.0.0-next-
|
56
|
+
"@graphql-hive/gateway-runtime": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
57
|
+
"@graphql-hive/importer": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
58
|
+
"@graphql-hive/logger": "1.0.1-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
59
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
60
|
+
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
61
|
+
"@graphql-hive/pubsub": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
62
62
|
"@graphql-mesh/cache-cfw-kv": "^0.105.8",
|
63
63
|
"@graphql-mesh/cache-localforage": "^0.105.9",
|
64
64
|
"@graphql-mesh/cache-redis": "^0.104.8",
|
65
65
|
"@graphql-mesh/cache-upstash-redis": "^0.1.8",
|
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-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
68
68
|
"@graphql-mesh/plugin-http-cache": "^0.105.8",
|
69
69
|
"@graphql-mesh/plugin-jit": "^0.2.7",
|
70
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-
|
71
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-
|
72
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-next-
|
70
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
71
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
72
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
73
73
|
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
74
74
|
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
75
|
-
"@graphql-mesh/transport-http": "1.0.0-next-
|
76
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-next-
|
77
|
-
"@graphql-mesh/transport-ws": "2.0.0-next-
|
75
|
+
"@graphql-mesh/transport-http": "1.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
76
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
77
|
+
"@graphql-mesh/transport-ws": "2.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
78
78
|
"@graphql-mesh/types": "^0.104.8",
|
79
79
|
"@graphql-mesh/utils": "^0.104.8",
|
80
80
|
"@graphql-tools/code-file-loader": "^8.1.22",
|
@@ -103,7 +103,7 @@
|
|
103
103
|
"ws": "^8.18.3"
|
104
104
|
},
|
105
105
|
"devDependencies": {
|
106
|
-
"@graphql-mesh/transport-common": "1.0.0-next-
|
106
|
+
"@graphql-mesh/transport-common": "1.0.0-next-02748416ada7a2f44e4de7c7c2acb15371881e4b",
|
107
107
|
"@graphql-mesh/transport-soap": "^0.10.8",
|
108
108
|
"@graphql-tools/executor": "^1.4.9",
|
109
109
|
"@rollup/plugin-commonjs": "^28.0.0",
|