@graphql-hive/gateway 2.0.0-alpha-d6054fefc24ca71425e2fd4642f0ee2bdd9d27ba → 2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
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 +175 -58
- package/dist/bin.cjs +2 -1
- package/dist/bin.js +2 -1
- package/dist/{cli-BPJkk_8e.js → cli-CTfJaUPF.js} +16 -7
- package/dist/{cli-Cm9aDkDW.cjs → cli-Q6g0zEwm.cjs} +15 -6
- package/dist/index.cjs +8 -5
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -2
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
@@ -1,29 +1,182 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-alpha-
|
3
|
+
## 2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
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) [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069) 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) [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903) 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) [`8a1d62e`](https://github.com/graphql-hive/gateway/commit/8a1d62e7e0a096de44367b4c16767fe6fd8fd088) 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) [`4f77516`](https://github.com/graphql-hive/gateway/commit/4f77516fedd6e83bad76d1facb7db0b67475d05b) 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) [`27a282b`](https://github.com/graphql-hive/gateway/commit/27a282b8b9e6823be9b452eff36b77173ff3ac0b) 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
|
+
### Patch Changes
|
28
|
+
|
29
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
30
|
+
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
31
|
+
|
32
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`4e73586`](https://github.com/graphql-hive/gateway/commit/4e73586b870ce64a1024f1a1bd45a86c161d8e00) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
33
|
+
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
34
|
+
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
35
|
+
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
36
|
+
- Added dependency [`@opentelemetry/exporter-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-jaeger/v/2.0.1) (to `dependencies`)
|
37
|
+
- Added dependency [`@opentelemetry/exporter-zipkin@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-zipkin/v/2.0.1) (to `dependencies`)
|
38
|
+
- Added dependency [`@opentelemetry/propagator-b3@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-b3/v/2.0.1) (to `dependencies`)
|
39
|
+
- Added dependency [`@opentelemetry/propagator-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-jaeger/v/2.0.1) (to `dependencies`)
|
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
|
+
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
42
|
+
|
43
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`f02dc3f`](https://github.com/graphql-hive/gateway/commit/f02dc3f05751bc9c8c2d743cf32c29f2e44ad37d) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
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) [`134630c`](https://github.com/graphql-hive/gateway/commit/134630c6e5665dd6e8f52e23d365df30a42d3737) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
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
|
+
- 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
|
+
|
51
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
52
|
+
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
53
|
+
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
54
|
+
- Added dependency [`@opentelemetry/api-logs@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.203.0) (to `dependencies`)
|
55
|
+
- Added dependency [`@opentelemetry/context-async-hooks@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-async-hooks/v/2.0.1) (to `dependencies`)
|
56
|
+
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
57
|
+
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
58
|
+
- Added dependency [`@opentelemetry/exporter-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-jaeger/v/2.0.1) (to `dependencies`)
|
59
|
+
- Added dependency [`@opentelemetry/exporter-zipkin@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-zipkin/v/2.0.1) (to `dependencies`)
|
60
|
+
- Added dependency [`@opentelemetry/propagator-b3@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-b3/v/2.0.1) (to `dependencies`)
|
61
|
+
- Added dependency [`@opentelemetry/propagator-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-jaeger/v/2.0.1) (to `dependencies`)
|
62
|
+
- Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.203.0) (to `dependencies`)
|
63
|
+
- Added dependency [`@opentelemetry/sdk-logs@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.203.0) (to `dependencies`)
|
64
|
+
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
65
|
+
- Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
|
66
|
+
- Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
|
67
|
+
|
68
|
+
- Updated dependencies [[`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`4e73586`](https://github.com/graphql-hive/gateway/commit/4e73586b870ce64a1024f1a1bd45a86c161d8e00), [`f02dc3f`](https://github.com/graphql-hive/gateway/commit/f02dc3f05751bc9c8c2d743cf32c29f2e44ad37d), [`134630c`](https://github.com/graphql-hive/gateway/commit/134630c6e5665dd6e8f52e23d365df30a42d3737), [`1a76bd5`](https://github.com/graphql-hive/gateway/commit/1a76bd5dd56a2d4d6f17c958687b51fa4d9e7212), [`bf679f8`](https://github.com/graphql-hive/gateway/commit/bf679f89c8b170360562a8d60502d4481333ce1f), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069), [`daaf096`](https://github.com/graphql-hive/gateway/commit/daaf0962bc5c47964e9b8e03b72baf2a22a1f973), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`0d2700b`](https://github.com/graphql-hive/gateway/commit/0d2700bb9c2577445fa5e74cbecfa10d09fbd7c4), [`e03bae3`](https://github.com/graphql-hive/gateway/commit/e03bae3bf2727e1d402b994051e2e2f6ce021de9), [`fcedfa6`](https://github.com/graphql-hive/gateway/commit/fcedfa636ce98d4a1fbdaa501792b2e3446d9dd5), [`0511168`](https://github.com/graphql-hive/gateway/commit/0511168786cef39d26b73f447b7c0f72320ff137), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`672045c`](https://github.com/graphql-hive/gateway/commit/672045c18a1aec130d06d9b09bd29f512d0d9244), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`daaf096`](https://github.com/graphql-hive/gateway/commit/daaf0962bc5c47964e9b8e03b72baf2a22a1f973), [`d6de3df`](https://github.com/graphql-hive/gateway/commit/d6de3dfebe3cde499705fe89f17b1f0eeae368d0)]:
|
69
|
+
- @graphql-hive/gateway-runtime@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
70
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
71
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
72
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
73
|
+
- @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
74
|
+
- @graphql-mesh/transport-http-callback@1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
75
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
76
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
77
|
+
- @graphql-mesh/transport-http@1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
78
|
+
- @graphql-mesh/transport-ws@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
79
|
+
- @graphql-hive/importer@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
80
|
+
- @graphql-hive/pubsub@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
81
|
+
- @graphql-hive/logger@1.0.1-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
|
82
|
+
|
83
|
+
## 1.16.3
|
84
|
+
|
85
|
+
### Patch Changes
|
86
|
+
|
87
|
+
- [#1383](https://github.com/graphql-hive/gateway/pull/1383) [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
88
|
+
- Updated dependency [`@graphql-mesh/cache-cfw-kv@^0.105.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-cfw-kv/v/0.105.7) (from `^0.105.5`, in `dependencies`)
|
89
|
+
- Updated dependency [`@graphql-mesh/cache-localforage@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-localforage/v/0.105.8) (from `^0.105.6`, in `dependencies`)
|
90
|
+
- Updated dependency [`@graphql-mesh/cache-redis@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-redis/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
91
|
+
- Updated dependency [`@graphql-mesh/cache-upstash-redis@^0.1.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-upstash-redis/v/0.1.7) (from `^0.1.5`, in `dependencies`)
|
92
|
+
- Updated dependency [`@graphql-mesh/plugin-http-cache@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-http-cache/v/0.105.8) (from `^0.105.6`, in `dependencies`)
|
93
|
+
- Updated dependency [`@graphql-mesh/plugin-jit@^0.2.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-jit/v/0.2.7) (from `^0.2.5`, in `dependencies`)
|
94
|
+
- Updated dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `^0.105.6`, in `dependencies`)
|
95
|
+
- Updated dependency [`@graphql-mesh/plugin-rate-limit@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-rate-limit/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
96
|
+
- Updated dependency [`@graphql-mesh/plugin-snapshot@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-snapshot/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
97
|
+
- Updated dependency [`@graphql-mesh/types@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
98
|
+
- Updated dependency [`@graphql-mesh/utils@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
99
|
+
|
100
|
+
- Updated dependencies [[`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`bed67a6`](https://github.com/graphql-hive/gateway/commit/bed67a6eaf57b2aa6c7d08d1137b3bd8c4d4b066), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420), [`34294ea`](https://github.com/graphql-hive/gateway/commit/34294eaa26d82da0ac7018da081b2dca46bd90f4)]:
|
101
|
+
- @graphql-hive/gateway-runtime@1.10.3
|
102
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.18
|
103
|
+
- @graphql-hive/plugin-deduplicate-request@1.0.4
|
104
|
+
- @graphql-mesh/hmac-upstream-signature@1.2.31
|
105
|
+
- @graphql-mesh/plugin-jwt-auth@1.5.8
|
106
|
+
- @graphql-mesh/plugin-opentelemetry@1.3.66
|
107
|
+
- @graphql-mesh/plugin-prometheus@1.3.54
|
108
|
+
- @graphql-mesh/transport-http@0.7.2
|
109
|
+
- @graphql-mesh/transport-http-callback@0.7.2
|
110
|
+
- @graphql-mesh/transport-ws@1.1.2
|
111
|
+
|
112
|
+
## 1.16.2
|
113
|
+
|
114
|
+
### Patch Changes
|
115
|
+
|
116
|
+
- [#1358](https://github.com/graphql-hive/gateway/pull/1358) [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
117
|
+
- Updated dependency [`@graphql-tools/code-file-loader@^8.1.22` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/8.1.22) (from `^8.1.21`, in `dependencies`)
|
118
|
+
- Updated dependency [`@graphql-tools/graphql-file-loader@^8.0.22` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.0.22) (from `^8.0.21`, in `dependencies`)
|
119
|
+
- Updated dependency [`@graphql-tools/load@^8.1.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/8.1.2) (from `^8.1.1`, in `dependencies`)
|
120
|
+
- Updated dependency [`@graphql-tools/utils@^10.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.1) (from `^10.9.0`, in `dependencies`)
|
121
|
+
- Updated dependency [`dotenv@^17.2.1` ↗︎](https://www.npmjs.com/package/dotenv/v/17.2.1) (from `^17.2.0`, in `dependencies`)
|
122
|
+
|
123
|
+
- [#1368](https://github.com/graphql-hive/gateway/pull/1368) [`a6aeed2`](https://github.com/graphql-hive/gateway/commit/a6aeed298de71271e59f86d3effc14ae0f65c703) Thanks [@ardatan](https://github.com/ardatan)! - Support `Promise` as a result of `outgoing`;
|
124
|
+
|
125
|
+
So you can use credentials providers from `@aws-sdk/credential-providers` package.
|
126
|
+
[See more](https://www.npmjs.com/package/@aws-sdk/credential-providers#fromnodeproviderchain).
|
127
|
+
|
128
|
+
```ts
|
129
|
+
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
|
130
|
+
import { defineConfig } from '@graphql-hive/gateway';
|
131
|
+
|
132
|
+
const config = defineConfig({
|
133
|
+
plugins: [
|
134
|
+
useAWSSigv4({
|
135
|
+
outgoing: fromNodeProviderChain({
|
136
|
+
// This provider accepts any input of fromEnv(), fromSSO(), fromTokenFile(),
|
137
|
+
// fromIni(), fromProcess(), fromInstanceMetadata(), fromContainerMetadata()
|
138
|
+
// that exist in the default credential chain.
|
139
|
+
|
140
|
+
// Optional client overrides. This is passed to an inner credentials client
|
141
|
+
// that may be STS, SSO, or other instantiated to resolve the credentials.
|
142
|
+
// Region and profile are inherited from the upper client if present
|
143
|
+
// unless overridden, so it should not be necessary to set those.
|
144
|
+
//
|
145
|
+
// Warning: setting a region here may override the region set in
|
146
|
+
// the config file for the selected profile if profile-based
|
147
|
+
// credentials are used.
|
148
|
+
clientConfig: {},
|
149
|
+
}),
|
150
|
+
}),
|
151
|
+
],
|
152
|
+
});
|
153
|
+
```
|
154
|
+
|
155
|
+
- Updated dependencies [[`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`38e5173`](https://github.com/graphql-hive/gateway/commit/38e51731e31e9e8bcdbeb370ae7cac5657a6f6d3), [`bfe2ac7`](https://github.com/graphql-hive/gateway/commit/bfe2ac7fbb40b3a1fc22c8be9d52b95c68ee4fe3), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`6cedc05`](https://github.com/graphql-hive/gateway/commit/6cedc056ef4070bc1719fbe222d60c0d48af5a71), [`a6aeed2`](https://github.com/graphql-hive/gateway/commit/a6aeed298de71271e59f86d3effc14ae0f65c703)]:
|
156
|
+
- @graphql-hive/gateway-runtime@1.10.2
|
157
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.17
|
158
|
+
- @graphql-hive/plugin-deduplicate-request@1.0.3
|
159
|
+
- @graphql-mesh/hmac-upstream-signature@1.2.30
|
160
|
+
- @graphql-mesh/plugin-opentelemetry@1.3.65
|
161
|
+
- @graphql-mesh/plugin-prometheus@1.3.53
|
162
|
+
- @graphql-mesh/transport-http@0.7.1
|
163
|
+
- @graphql-mesh/transport-http-callback@0.7.1
|
164
|
+
- @graphql-mesh/transport-ws@1.1.1
|
165
|
+
|
166
|
+
## 1.16.1
|
167
|
+
|
168
|
+
### Patch Changes
|
169
|
+
|
170
|
+
- Updated dependencies [[`352e89d`](https://github.com/graphql-hive/gateway/commit/352e89d496ecd19db02cbaa2ade58c2da77d69c6)]:
|
171
|
+
- @graphql-hive/gateway-runtime@1.10.1
|
172
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.16
|
173
|
+
- @graphql-hive/plugin-deduplicate-request@1.0.2
|
174
|
+
- @graphql-mesh/hmac-upstream-signature@1.2.29
|
175
|
+
- @graphql-mesh/plugin-opentelemetry@1.3.64
|
176
|
+
- @graphql-mesh/plugin-prometheus@1.3.52
|
177
|
+
|
178
|
+
## 1.16.0
|
179
|
+
|
27
180
|
### Minor Changes
|
28
181
|
|
29
182
|
- [#1310](https://github.com/graphql-hive/gateway/pull/1310) [`2fa0c8f`](https://github.com/graphql-hive/gateway/commit/2fa0c8f1dd074c9da8e6ac4086eb3009be9fdf07) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Added new `withState` plugin utility for easy data sharing between hooks.
|
@@ -87,28 +240,6 @@
|
|
87
240
|
|
88
241
|
### Patch Changes
|
89
242
|
|
90
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`32fbb7b`](https://github.com/graphql-hive/gateway/commit/32fbb7b3aefe9228c29c6f7b2a785406f21d3e24) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
91
|
-
- Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
|
92
|
-
|
93
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`b97d5d7`](https://github.com/graphql-hive/gateway/commit/b97d5d7d086dcaf140da83bf0c279e4a40b50fe2) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
94
|
-
- Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
|
95
|
-
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
96
|
-
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
97
|
-
- Added dependency [`@opentelemetry/exporter-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-jaeger/v/2.0.1) (to `dependencies`)
|
98
|
-
- Added dependency [`@opentelemetry/exporter-zipkin@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-zipkin/v/2.0.1) (to `dependencies`)
|
99
|
-
- Added dependency [`@opentelemetry/propagator-b3@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-b3/v/2.0.1) (to `dependencies`)
|
100
|
-
- Added dependency [`@opentelemetry/propagator-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-jaeger/v/2.0.1) (to `dependencies`)
|
101
|
-
- Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.202.0) (to `dependencies`)
|
102
|
-
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
103
|
-
|
104
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`76b49db`](https://github.com/graphql-hive/gateway/commit/76b49db569d9608af80a635e7cb40b1cc7d3b313) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
105
|
-
- Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
|
106
|
-
- Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
|
107
|
-
|
108
|
-
- [#1300](https://github.com/graphql-hive/gateway/pull/1300) [`e195589`](https://github.com/graphql-hive/gateway/commit/e1955891936be30c63727f8c15e2f55318ceb6fc) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
109
|
-
- Added dependency [`@opentelemetry/context-async-hooks@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-async-hooks/v/2.0.1) (to `dependencies`)
|
110
|
-
- Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
|
111
|
-
|
112
243
|
- [#1318](https://github.com/graphql-hive/gateway/pull/1318) [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
|
113
244
|
- Updated dependency [`@graphql-yoga/render-graphiql@^5.15.1` ↗︎](https://www.npmjs.com/package/@graphql-yoga/render-graphiql/v/5.15.1) (from `^5.13.5`, in `dependencies`)
|
114
245
|
- Updated dependency [`graphql-yoga@^5.15.1` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.15.1) (from `^5.13.5`, in `dependencies`)
|
@@ -123,39 +254,25 @@
|
|
123
254
|
- [#1329](https://github.com/graphql-hive/gateway/pull/1329) [`ce99e43`](https://github.com/graphql-hive/gateway/commit/ce99e43b9fec43c665836bd3a282ce6d4302481d) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
124
255
|
- Updated dependency [`graphql-ws@^6.0.6` ↗︎](https://www.npmjs.com/package/graphql-ws/v/6.0.6) (from `^6.0.4`, in `dependencies`)
|
125
256
|
|
126
|
-
- [#
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
- Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
|
132
|
-
- Added dependency [`@opentelemetry/core@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/2.0.1) (to `dependencies`)
|
133
|
-
- Added dependency [`@opentelemetry/exporter-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-jaeger/v/2.0.1) (to `dependencies`)
|
134
|
-
- Added dependency [`@opentelemetry/exporter-zipkin@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-zipkin/v/2.0.1) (to `dependencies`)
|
135
|
-
- Added dependency [`@opentelemetry/propagator-b3@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-b3/v/2.0.1) (to `dependencies`)
|
136
|
-
- Added dependency [`@opentelemetry/propagator-jaeger@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/propagator-jaeger/v/2.0.1) (to `dependencies`)
|
137
|
-
- Added dependency [`@opentelemetry/sampler-jaeger-remote@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sampler-jaeger-remote/v/0.203.0) (to `dependencies`)
|
138
|
-
- Added dependency [`@opentelemetry/sdk-logs@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.203.0) (to `dependencies`)
|
139
|
-
- Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
|
140
|
-
- Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
|
141
|
-
- Removed dependency [`@graphql-mesh/plugin-mock@^0.105.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.6) (from `dependencies`)
|
257
|
+
- [#1344](https://github.com/graphql-hive/gateway/pull/1344) [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
258
|
+
- Updated dependency [`@graphql-tools/code-file-loader@^8.1.21` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/8.1.21) (from `^8.1.15`, in `dependencies`)
|
259
|
+
- Updated dependency [`@graphql-tools/graphql-file-loader@^8.0.21` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.0.21) (from `^8.0.20`, in `dependencies`)
|
260
|
+
- Updated dependency [`@graphql-tools/load@^8.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/8.1.1) (from `^8.0.14`, in `dependencies`)
|
261
|
+
- Updated dependency [`@graphql-tools/utils@^10.9.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.0) (from `^10.8.1`, in `dependencies`)
|
142
262
|
|
143
263
|
- [#1333](https://github.com/graphql-hive/gateway/pull/1333) [`ffa3753`](https://github.com/graphql-hive/gateway/commit/ffa3753ccb9045c5b2d62af05edc7f1d78336cb3) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Isomorphic environment variable getter with truthy value parsing
|
144
264
|
|
145
|
-
- Updated dependencies [[`
|
146
|
-
- @graphql-hive/gateway-runtime@
|
147
|
-
- @graphql-hive/plugin-aws-sigv4@
|
148
|
-
- @graphql-
|
149
|
-
- @graphql-mesh/
|
150
|
-
- @graphql-mesh/plugin-
|
151
|
-
- @graphql-mesh/
|
152
|
-
- @graphql-mesh/
|
153
|
-
- @graphql-mesh/
|
154
|
-
- @graphql-
|
155
|
-
- @graphql-mesh/transport-
|
156
|
-
- @graphql-hive/importer@2.0.0-alpha-d6054fefc24ca71425e2fd4642f0ee2bdd9d27ba
|
157
|
-
- @graphql-hive/pubsub@2.0.0-alpha-d6054fefc24ca71425e2fd4642f0ee2bdd9d27ba
|
158
|
-
- @graphql-hive/logger@1.0.1-alpha-d6054fefc24ca71425e2fd4642f0ee2bdd9d27ba
|
265
|
+
- Updated dependencies [[`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`f12f2b7`](https://github.com/graphql-hive/gateway/commit/f12f2b78163fbef797a42b5999a0b5a8ef6b2c98), [`ce99e43`](https://github.com/graphql-hive/gateway/commit/ce99e43b9fec43c665836bd3a282ce6d4302481d), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`7287ffa`](https://github.com/graphql-hive/gateway/commit/7287ffa2ac0f08801c3058e96a7c4eba7102c1d0), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`ce99e43`](https://github.com/graphql-hive/gateway/commit/ce99e43b9fec43c665836bd3a282ce6d4302481d), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`ffa3753`](https://github.com/graphql-hive/gateway/commit/ffa3753ccb9045c5b2d62af05edc7f1d78336cb3), [`1fe005f`](https://github.com/graphql-hive/gateway/commit/1fe005f270c9fd0f8fcd2d0c3ffc27d722638f57), [`2fa0c8f`](https://github.com/graphql-hive/gateway/commit/2fa0c8f1dd074c9da8e6ac4086eb3009be9fdf07), [`9b230f3`](https://github.com/graphql-hive/gateway/commit/9b230f35b47afbf3b253e4c21720e836c5a2a8d1), [`b59a266`](https://github.com/graphql-hive/gateway/commit/b59a26628c368272b50380bab57553070e2edf6e)]:
|
266
|
+
- @graphql-hive/gateway-runtime@1.10.0
|
267
|
+
- @graphql-hive/plugin-aws-sigv4@1.0.16
|
268
|
+
- @graphql-hive/plugin-deduplicate-request@1.0.2
|
269
|
+
- @graphql-mesh/hmac-upstream-signature@1.2.29
|
270
|
+
- @graphql-mesh/plugin-jwt-auth@1.5.7
|
271
|
+
- @graphql-mesh/plugin-opentelemetry@1.3.63
|
272
|
+
- @graphql-mesh/plugin-prometheus@1.3.51
|
273
|
+
- @graphql-mesh/transport-http@0.7.0
|
274
|
+
- @graphql-mesh/transport-http-callback@0.7.0
|
275
|
+
- @graphql-mesh/transport-ws@1.1.0
|
159
276
|
|
160
277
|
## 1.15.4
|
161
278
|
|
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-Q6g0zEwm.cjs');
|
7
7
|
require('node:cluster');
|
8
8
|
require('node:os');
|
9
9
|
require('node:path');
|
@@ -14,6 +14,7 @@ require('@graphql-hive/pubsub');
|
|
14
14
|
require('@graphql-mesh/utils');
|
15
15
|
require('node:fs/promises');
|
16
16
|
require('node:url');
|
17
|
+
require('@graphql-hive/pubsub/mesh');
|
17
18
|
require('node:fs');
|
18
19
|
require('node:http');
|
19
20
|
require('node:https');
|
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-CTfJaUPF.js';
|
6
6
|
import 'node:cluster';
|
7
7
|
import 'node:os';
|
8
8
|
import 'node:path';
|
@@ -13,6 +13,7 @@ import '@graphql-hive/pubsub';
|
|
13
13
|
import '@graphql-mesh/utils';
|
14
14
|
import 'node:fs/promises';
|
15
15
|
import 'node:url';
|
16
|
+
import '@graphql-hive/pubsub/mesh';
|
16
17
|
import 'node:fs';
|
17
18
|
import 'node:http';
|
18
19
|
import 'node:https';
|
@@ -6,10 +6,11 @@ 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 { MemPubSub } 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';
|
13
|
+
import { MeshPubSub } from '@graphql-hive/pubsub/mesh';
|
13
14
|
import { promises } from 'node:fs';
|
14
15
|
import { createServer as createServer$1 } from 'node:http';
|
15
16
|
import { createServer } from 'node:https';
|
@@ -235,7 +236,9 @@ async function getCacheInstanceFromConfig(config, ctx) {
|
|
235
236
|
...ctx,
|
236
237
|
...config.cache,
|
237
238
|
// TODO: use new logger
|
238
|
-
logger: LegacyLogger.from(ctx.log)
|
239
|
+
logger: LegacyLogger.from(ctx.log),
|
240
|
+
// TODO: use new pubsub
|
241
|
+
pubsub: MeshPubSub.from(ctx.pubsub)
|
239
242
|
});
|
240
243
|
}
|
241
244
|
case "cfw-kv": {
|
@@ -262,14 +265,20 @@ async function getCacheInstanceFromConfig(config, ctx) {
|
|
262
265
|
const { default: LocalforageCache2 } = await import('@graphql-mesh/cache-localforage');
|
263
266
|
return new LocalforageCache2({
|
264
267
|
...ctx,
|
265
|
-
...config.cache
|
268
|
+
...config.cache,
|
269
|
+
// TODO: use new pubsub
|
270
|
+
pubsub: MeshPubSub.from(ctx.pubsub)
|
266
271
|
});
|
267
272
|
}
|
268
273
|
if (config.cache) {
|
269
274
|
return config.cache;
|
270
275
|
}
|
271
276
|
const { default: LocalforageCache } = await import('@graphql-mesh/cache-localforage');
|
272
|
-
return new LocalforageCache(
|
277
|
+
return new LocalforageCache({
|
278
|
+
...ctx,
|
279
|
+
// TODO: use new pubsub
|
280
|
+
pubsub: MeshPubSub.from(ctx.pubsub)
|
281
|
+
});
|
273
282
|
}
|
274
283
|
|
275
284
|
async function startBunServer(gwRuntime, opts) {
|
@@ -764,7 +773,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
|
|
764
773
|
if (reporting) {
|
765
774
|
registryConfig.reporting = reporting;
|
766
775
|
}
|
767
|
-
const pubsub = loadedConfig.pubsub || new
|
776
|
+
const pubsub = loadedConfig.pubsub || new MemPubSub();
|
768
777
|
const cwd = loadedConfig.cwd || process.cwd();
|
769
778
|
if (loadedConfig.logging != null) {
|
770
779
|
ctx.log = createLoggerFromLogging(loadedConfig.logging);
|
@@ -902,7 +911,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
|
|
902
911
|
if (reporting) {
|
903
912
|
registryConfig.reporting = reporting;
|
904
913
|
}
|
905
|
-
const pubsub = loadedConfig.pubsub || new
|
914
|
+
const pubsub = loadedConfig.pubsub || new MemPubSub();
|
906
915
|
const cwd = loadedConfig.cwd || process.cwd();
|
907
916
|
if (loadedConfig.logging != null) {
|
908
917
|
ctx.log = createLoggerFromLogging(loadedConfig.logging);
|
@@ -1136,7 +1145,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
1136
1145
|
if (reporting) {
|
1137
1146
|
registryConfig.reporting = reporting;
|
1138
1147
|
}
|
1139
|
-
const pubsub = loadedConfig.pubsub || new
|
1148
|
+
const pubsub = loadedConfig.pubsub || new MemPubSub();
|
1140
1149
|
const cwd = loadedConfig.cwd || process.cwd();
|
1141
1150
|
if (loadedConfig.logging != null) {
|
1142
1151
|
ctx.log = createLoggerFromLogging(loadedConfig.logging);
|
@@ -12,6 +12,7 @@ var pubsub = require('@graphql-hive/pubsub');
|
|
12
12
|
var utils = require('@graphql-mesh/utils');
|
13
13
|
var promises = require('node:fs/promises');
|
14
14
|
var node_url = require('node:url');
|
15
|
+
var mesh = require('@graphql-hive/pubsub/mesh');
|
15
16
|
var node_fs = require('node:fs');
|
16
17
|
var node_http = require('node:http');
|
17
18
|
var node_https = require('node:https');
|
@@ -242,7 +243,9 @@ async function getCacheInstanceFromConfig(config, ctx) {
|
|
242
243
|
...ctx,
|
243
244
|
...config.cache,
|
244
245
|
// TODO: use new logger
|
245
|
-
logger: logger.LegacyLogger.from(ctx.log)
|
246
|
+
logger: logger.LegacyLogger.from(ctx.log),
|
247
|
+
// TODO: use new pubsub
|
248
|
+
pubsub: mesh.MeshPubSub.from(ctx.pubsub)
|
246
249
|
});
|
247
250
|
}
|
248
251
|
case "cfw-kv": {
|
@@ -269,14 +272,20 @@ async function getCacheInstanceFromConfig(config, ctx) {
|
|
269
272
|
const { default: LocalforageCache2 } = await import('@graphql-mesh/cache-localforage');
|
270
273
|
return new LocalforageCache2({
|
271
274
|
...ctx,
|
272
|
-
...config.cache
|
275
|
+
...config.cache,
|
276
|
+
// TODO: use new pubsub
|
277
|
+
pubsub: mesh.MeshPubSub.from(ctx.pubsub)
|
273
278
|
});
|
274
279
|
}
|
275
280
|
if (config.cache) {
|
276
281
|
return config.cache;
|
277
282
|
}
|
278
283
|
const { default: LocalforageCache } = await import('@graphql-mesh/cache-localforage');
|
279
|
-
return new LocalforageCache(
|
284
|
+
return new LocalforageCache({
|
285
|
+
...ctx,
|
286
|
+
// TODO: use new pubsub
|
287
|
+
pubsub: mesh.MeshPubSub.from(ctx.pubsub)
|
288
|
+
});
|
280
289
|
}
|
281
290
|
|
282
291
|
async function startBunServer(gwRuntime, opts) {
|
@@ -771,7 +780,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
|
|
771
780
|
if (reporting) {
|
772
781
|
registryConfig.reporting = reporting;
|
773
782
|
}
|
774
|
-
const pubsub$1 = loadedConfig.pubsub || new pubsub.
|
783
|
+
const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
|
775
784
|
const cwd = loadedConfig.cwd || process.cwd();
|
776
785
|
if (loadedConfig.logging != null) {
|
777
786
|
ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
|
@@ -909,7 +918,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
|
|
909
918
|
if (reporting) {
|
910
919
|
registryConfig.reporting = reporting;
|
911
920
|
}
|
912
|
-
const pubsub$1 = loadedConfig.pubsub || new pubsub.
|
921
|
+
const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
|
913
922
|
const cwd = loadedConfig.cwd || process.cwd();
|
914
923
|
if (loadedConfig.logging != null) {
|
915
924
|
ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
|
@@ -1143,7 +1152,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
1143
1152
|
if (reporting) {
|
1144
1153
|
registryConfig.reporting = reporting;
|
1145
1154
|
}
|
1146
|
-
const pubsub$1 = loadedConfig.pubsub || new pubsub.
|
1155
|
+
const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
|
1147
1156
|
const cwd = loadedConfig.cwd || process.cwd();
|
1148
1157
|
if (loadedConfig.logging != null) {
|
1149
1158
|
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-Q6g0zEwm.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');
|
@@ -27,6 +27,7 @@ require('@graphql-yoga/render-graphiql');
|
|
27
27
|
require('@graphql-mesh/utils');
|
28
28
|
require('node:fs/promises');
|
29
29
|
require('node:url');
|
30
|
+
require('@graphql-hive/pubsub/mesh');
|
30
31
|
require('node:fs');
|
31
32
|
require('node:http');
|
32
33
|
require('node:https');
|
@@ -59,10 +60,6 @@ exports.getBuiltinPluginsFromConfig = cli.getBuiltinPluginsFromConfig;
|
|
59
60
|
exports.getCacheInstanceFromConfig = cli.getCacheInstanceFromConfig;
|
60
61
|
exports.handleNodeWarnings = cli.handleNodeWarnings;
|
61
62
|
exports.run = cli.run;
|
62
|
-
Object.defineProperty(exports, "PubSub", {
|
63
|
-
enumerable: true,
|
64
|
-
get: function () { return pubsub.PubSub; }
|
65
|
-
});
|
66
63
|
Object.defineProperty(exports, "usePrometheus", {
|
67
64
|
enumerable: true,
|
68
65
|
get: function () { return pluginPrometheus__default.default; }
|
@@ -123,6 +120,12 @@ Object.keys(gatewayRuntime).forEach(function (k) {
|
|
123
120
|
get: function () { return gatewayRuntime[k]; }
|
124
121
|
});
|
125
122
|
});
|
123
|
+
Object.keys(pubsub).forEach(function (k) {
|
124
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
125
|
+
enumerable: true,
|
126
|
+
get: function () { return pubsub[k]; }
|
127
|
+
});
|
128
|
+
});
|
126
129
|
Object.keys(pluginJwtAuth).forEach(function (k) {
|
127
130
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
128
131
|
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 { PubSub } from '@graphql-hive/pubsub';
|
9
|
+
export * 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: PubSub;
|
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: PubSub;
|
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: PubSub;
|
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 { PubSub } from '@graphql-hive/pubsub';
|
9
|
+
export * 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: PubSub;
|
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: PubSub;
|
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: PubSub;
|
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-CTfJaUPF.js';
|
2
2
|
export * from '@graphql-hive/logger';
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
4
|
-
export
|
4
|
+
export * 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';
|
@@ -26,6 +26,7 @@ import '@graphql-yoga/render-graphiql';
|
|
26
26
|
import '@graphql-mesh/utils';
|
27
27
|
import 'node:fs/promises';
|
28
28
|
import 'node:url';
|
29
|
+
import '@graphql-hive/pubsub/mesh';
|
29
30
|
import 'node:fs';
|
30
31
|
import 'node:http';
|
31
32
|
import 'node:https';
|
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-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -53,34 +53,34 @@
|
|
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-
|
57
|
-
"@graphql-hive/importer": "2.0.0-alpha-
|
58
|
-
"@graphql-hive/logger": "1.0.1-alpha-
|
59
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-
|
60
|
-
"@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-
|
61
|
-
"@graphql-hive/pubsub": "2.0.0-alpha-
|
62
|
-
"@graphql-mesh/cache-cfw-kv": "^0.105.
|
63
|
-
"@graphql-mesh/cache-localforage": "^0.105.
|
64
|
-
"@graphql-mesh/cache-redis": "^0.104.
|
65
|
-
"@graphql-mesh/cache-upstash-redis": "^0.1.
|
56
|
+
"@graphql-hive/gateway-runtime": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
57
|
+
"@graphql-hive/importer": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
58
|
+
"@graphql-hive/logger": "1.0.1-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
59
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
60
|
+
"@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
61
|
+
"@graphql-hive/pubsub": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
62
|
+
"@graphql-mesh/cache-cfw-kv": "^0.105.7",
|
63
|
+
"@graphql-mesh/cache-localforage": "^0.105.8",
|
64
|
+
"@graphql-mesh/cache-redis": "^0.104.7",
|
65
|
+
"@graphql-mesh/cache-upstash-redis": "^0.1.7",
|
66
66
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
67
|
-
"@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-
|
68
|
-
"@graphql-mesh/plugin-http-cache": "^0.105.
|
69
|
-
"@graphql-mesh/plugin-jit": "^0.2.
|
70
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-
|
71
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-
|
72
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-alpha-
|
73
|
-
"@graphql-mesh/plugin-rate-limit": "^0.104.
|
74
|
-
"@graphql-mesh/plugin-snapshot": "^0.104.
|
75
|
-
"@graphql-mesh/transport-http": "1.0.0-alpha-
|
76
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-alpha-
|
77
|
-
"@graphql-mesh/transport-ws": "2.0.0-alpha-
|
78
|
-
"@graphql-mesh/types": "^0.104.
|
79
|
-
"@graphql-mesh/utils": "^0.104.
|
80
|
-
"@graphql-tools/code-file-loader": "^8.1.
|
81
|
-
"@graphql-tools/graphql-file-loader": "^8.0.
|
82
|
-
"@graphql-tools/load": "^8.
|
83
|
-
"@graphql-tools/utils": "^10.
|
67
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
68
|
+
"@graphql-mesh/plugin-http-cache": "^0.105.8",
|
69
|
+
"@graphql-mesh/plugin-jit": "^0.2.7",
|
70
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
71
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
72
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
73
|
+
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
74
|
+
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
75
|
+
"@graphql-mesh/transport-http": "1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
76
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
77
|
+
"@graphql-mesh/transport-ws": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
78
|
+
"@graphql-mesh/types": "^0.104.7",
|
79
|
+
"@graphql-mesh/utils": "^0.104.7",
|
80
|
+
"@graphql-tools/code-file-loader": "^8.1.22",
|
81
|
+
"@graphql-tools/graphql-file-loader": "^8.0.22",
|
82
|
+
"@graphql-tools/load": "^8.1.2",
|
83
|
+
"@graphql-tools/utils": "^10.9.1",
|
84
84
|
"@graphql-yoga/render-graphiql": "^5.15.1",
|
85
85
|
"@opentelemetry/api": "^1.9.0",
|
86
86
|
"@opentelemetry/api-logs": "^0.203.0",
|
@@ -96,16 +96,16 @@
|
|
96
96
|
"@opentelemetry/sdk-metrics": "^2.0.1",
|
97
97
|
"@opentelemetry/sdk-trace-base": "^2.0.1",
|
98
98
|
"commander": "^13.1.0",
|
99
|
-
"dotenv": "^17.2.
|
99
|
+
"dotenv": "^17.2.1",
|
100
100
|
"graphql-ws": "^6.0.6",
|
101
101
|
"graphql-yoga": "^5.15.1",
|
102
102
|
"tslib": "^2.8.1",
|
103
103
|
"ws": "^8.18.3"
|
104
104
|
},
|
105
105
|
"devDependencies": {
|
106
|
-
"@graphql-mesh/transport-common": "1.0.0-alpha-
|
107
|
-
"@graphql-mesh/transport-soap": "^0.10.
|
108
|
-
"@graphql-tools/executor": "^1.4.
|
106
|
+
"@graphql-mesh/transport-common": "1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
|
107
|
+
"@graphql-mesh/transport-soap": "^0.10.8",
|
108
|
+
"@graphql-tools/executor": "^1.4.9",
|
109
109
|
"@rollup/plugin-commonjs": "^28.0.0",
|
110
110
|
"@rollup/plugin-json": "^6.1.0",
|
111
111
|
"@rollup/plugin-node-resolve": "patch:@rollup/plugin-node-resolve@npm%3A16.0.1#~/.yarn/patches/@rollup-plugin-node-resolve-npm-16.0.1-2936474bab.patch",
|
@@ -119,7 +119,7 @@
|
|
119
119
|
"bun": "^1.2.18",
|
120
120
|
"graphql": "^16.9.0",
|
121
121
|
"parse-duration": "^2.0.0",
|
122
|
-
"pkgroll": "2.
|
122
|
+
"pkgroll": "2.15.0",
|
123
123
|
"postject": "^1.0.0-alpha.6",
|
124
124
|
"rimraf": "^6.0.1",
|
125
125
|
"rollup": "4.44.0",
|