@graphql-hive/gateway 2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12 → 2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543

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 CHANGED
@@ -1,33 +1,33 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
3
+ ## 2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
4
4
  ### Major Changes
5
5
 
6
6
 
7
7
 
8
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`5078d2e`](https://github.com/graphql-hive/gateway/commit/5078d2e9cdc0951e9abd8d832a8205436a3fe41a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
8
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`22bd3f7`](https://github.com/graphql-hive/gateway/commit/22bd3f70d2901738d4c35e02282569546b820b11) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
9
9
 
10
10
  Least supported Node version is now v20.
11
11
 
12
12
 
13
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`bee99ec`](https://github.com/graphql-hive/gateway/commit/bee99eca9596a4966f4cfe6d3471b3dd506c5457) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
13
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
14
14
 
15
15
  - [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
16
16
 
17
17
  - If coming from Hive Gateway v1, [read the migration guide here.](https://the-guild.dev/graphql/hive/docs/migration-guides/gateway-v1-v2)
18
18
 
19
19
 
20
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`c007f13`](https://github.com/graphql-hive/gateway/commit/c007f1360fe11eeef71c67585a2097f3ac50cc3e) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
20
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`216cf81`](https://github.com/graphql-hive/gateway/commit/216cf81e435c298687409fc9d0de5255b6b08e57) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
21
21
 
22
22
  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.
23
23
 
24
24
 
25
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`5f83ba8`](https://github.com/graphql-hive/gateway/commit/5f83ba8d63763e4f96a72f9127d66a4b40b3073a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
25
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`9adc4dd`](https://github.com/graphql-hive/gateway/commit/9adc4dd8a34ef5cc7202287113000a62b6b98a30) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
26
26
 
27
27
  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.
28
28
 
29
29
 
30
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`9666cae`](https://github.com/graphql-hive/gateway/commit/9666caeef37077eb43954b2835ec877d19d2fe92) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
30
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`a8256d4`](https://github.com/graphql-hive/gateway/commit/a8256d4e66466bf934abab86b16aad293fa45e76) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
31
31
 
32
32
  Failing to start if the schema is not loaded for whatever reason.
33
33
 
@@ -35,19 +35,19 @@
35
35
 
36
36
 
37
37
 
38
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4809861`](https://github.com/graphql-hive/gateway/commit/4809861f2581bd59f0b3a80ccfd7548ee7ec94ab) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - The `defineConfig` accepts a TContext generic
38
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`dafd3a1`](https://github.com/graphql-hive/gateway/commit/dafd3a17f02cb85963d6004665017e4733f14fb8) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - The `defineConfig` accepts a TContext generic
39
39
 
40
40
 
41
41
  ### Patch Changes
42
42
 
43
43
 
44
44
 
45
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`bee99ec`](https://github.com/graphql-hive/gateway/commit/bee99eca9596a4966f4cfe6d3471b3dd506c5457) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
45
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
46
46
 
47
47
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
48
48
 
49
49
 
50
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`ee5ed73`](https://github.com/graphql-hive/gateway/commit/ee5ed7336a468de05a67298923a270838370a0c3) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
50
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`8317c68`](https://github.com/graphql-hive/gateway/commit/8317c685a415541d051c341be3694c2aa6416249) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
51
51
 
52
52
  - Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
53
53
  - Added dependency [`@opentelemetry/context-zone@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-zone/v/2.0.1) (to `dependencies`)
@@ -60,19 +60,19 @@
60
60
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
61
61
 
62
62
 
63
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`c677ab9`](https://github.com/graphql-hive/gateway/commit/c677ab9387d4d5d8c240b384383b4ef9c9bb34a9) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
63
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`4a01290`](https://github.com/graphql-hive/gateway/commit/4a01290df3efe523ca5626fe88e4b0590d8e899f) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
64
64
 
65
65
  - Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
66
66
  - Added dependency [`@opentelemetry/sdk-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-logs/v/0.202.0) (to `dependencies`)
67
67
 
68
68
 
69
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`e50b5cd`](https://github.com/graphql-hive/gateway/commit/e50b5cd1afacbfd1f0ebedd70e8c8f638efc73d0) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
69
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`1116b33`](https://github.com/graphql-hive/gateway/commit/1116b3321b695dfddd7a8c2ae8de939bbe434eb9) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
70
70
 
71
71
  - Added dependency [`@opentelemetry/context-async-hooks@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/context-async-hooks/v/2.0.1) (to `dependencies`)
72
72
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
73
73
 
74
74
 
75
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`11975a9`](https://github.com/graphql-hive/gateway/commit/11975a9af2f4db852819fe291501081d2c98fb99) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
75
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
76
76
 
77
77
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
78
78
  - Added dependency [`@graphql-hive/plugin-opentelemetry@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-opentelemetry/v/workspace:^) (to `dependencies`)
@@ -91,20 +91,20 @@
91
91
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
92
92
  - Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
93
93
  - Removed dependency [`@graphql-mesh/plugin-opentelemetry@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-opentelemetry/v/workspace:^) (from `dependencies`)
94
- - Updated dependencies [[`bee99ec`](https://github.com/graphql-hive/gateway/commit/bee99eca9596a4966f4cfe6d3471b3dd506c5457), [`4195227`](https://github.com/graphql-hive/gateway/commit/4195227921bed6485534a55f7770d8638e2aa887), [`4809861`](https://github.com/graphql-hive/gateway/commit/4809861f2581bd59f0b3a80ccfd7548ee7ec94ab), [`11975a9`](https://github.com/graphql-hive/gateway/commit/11975a9af2f4db852819fe291501081d2c98fb99), [`8a7ff39`](https://github.com/graphql-hive/gateway/commit/8a7ff39fe41a33844289a0a750b0824d7f3f6e25), [`9f8f234`](https://github.com/graphql-hive/gateway/commit/9f8f234b994ba33d5e95e6f41d587a7a8f47b3d4), [`5ab07e2`](https://github.com/graphql-hive/gateway/commit/5ab07e2878af75a5fbb42790773036b402cc5f02), [`bee99ec`](https://github.com/graphql-hive/gateway/commit/bee99eca9596a4966f4cfe6d3471b3dd506c5457), [`11975a9`](https://github.com/graphql-hive/gateway/commit/11975a9af2f4db852819fe291501081d2c98fb99), [`5078d2e`](https://github.com/graphql-hive/gateway/commit/5078d2e9cdc0951e9abd8d832a8205436a3fe41a), [`68d7640`](https://github.com/graphql-hive/gateway/commit/68d764075fa43c53c2ea1d84888cadda0c3145ad), [`9f8f234`](https://github.com/graphql-hive/gateway/commit/9f8f234b994ba33d5e95e6f41d587a7a8f47b3d4), [`bee99ec`](https://github.com/graphql-hive/gateway/commit/bee99eca9596a4966f4cfe6d3471b3dd506c5457), [`ea32beb`](https://github.com/graphql-hive/gateway/commit/ea32bebab8f1b33b87b60bc390643c2212bde928), [`da1a00f`](https://github.com/graphql-hive/gateway/commit/da1a00fd3c848ec0cc02f6d3c4863a5a6a38d661), [`d6abf87`](https://github.com/graphql-hive/gateway/commit/d6abf8756fdc7dc6b61084665f474a481c6ccaba), [`838192a`](https://github.com/graphql-hive/gateway/commit/838192a0a1ad7537748801a89423f0248aae2413), [`b5de651`](https://github.com/graphql-hive/gateway/commit/b5de6518bfec87a942b787f558f0da08920b539b), [`ea32beb`](https://github.com/graphql-hive/gateway/commit/ea32bebab8f1b33b87b60bc390643c2212bde928), [`67e076e`](https://github.com/graphql-hive/gateway/commit/67e076ef6b27cdda2cf9023551ab1bf0bccb06aa), [`da393f6`](https://github.com/graphql-hive/gateway/commit/da393f6ac8297489dcec44530e218e2f92f81621), [`bee99ec`](https://github.com/graphql-hive/gateway/commit/bee99eca9596a4966f4cfe6d3471b3dd506c5457), [`9f8f234`](https://github.com/graphql-hive/gateway/commit/9f8f234b994ba33d5e95e6f41d587a7a8f47b3d4), [`413d4c6`](https://github.com/graphql-hive/gateway/commit/413d4c66b71a592aa61f288783926c2a2d8e5d04)]:
95
- - @graphql-hive/gateway-runtime@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
96
- - @graphql-hive/plugin-opentelemetry@1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
97
- - @graphql-hive/pubsub@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
98
- - @graphql-mesh/plugin-prometheus@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
99
- - @graphql-mesh/hmac-upstream-signature@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
100
- - @graphql-hive/plugin-deduplicate-request@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
101
- - @graphql-mesh/transport-http-callback@1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
102
- - @graphql-hive/plugin-aws-sigv4@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
103
- - @graphql-mesh/plugin-jwt-auth@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
104
- - @graphql-mesh/transport-http@1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
105
- - @graphql-mesh/transport-ws@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
106
- - @graphql-hive/importer@2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12
107
- - @graphql-hive/logger@1.0.1-next-96e492dfcd9d328762d22e1efda567b8e11bed12
94
+ - Updated dependencies [[`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`f09c4a7`](https://github.com/graphql-hive/gateway/commit/f09c4a74e37c29d4a44cc5612078754e38e54c4a), [`dafd3a1`](https://github.com/graphql-hive/gateway/commit/dafd3a17f02cb85963d6004665017e4733f14fb8), [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a), [`475ef5c`](https://github.com/graphql-hive/gateway/commit/475ef5cad6c7b7328a18e4d6b851bbcafb09d1a1), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`b4ac110`](https://github.com/graphql-hive/gateway/commit/b4ac11056eface0747eb5a94217e773787b87834), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a), [`22bd3f7`](https://github.com/graphql-hive/gateway/commit/22bd3f70d2901738d4c35e02282569546b820b11), [`5cbfc38`](https://github.com/graphql-hive/gateway/commit/5cbfc389021dcf616402788080ffb56b69ff6019), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`f238e21`](https://github.com/graphql-hive/gateway/commit/f238e215ef5ac9b8c93458d4889bf80f85a574ed), [`5dee497`](https://github.com/graphql-hive/gateway/commit/5dee497a3a2908bd2c18b8f50c1c9226023abe1f), [`44530c2`](https://github.com/graphql-hive/gateway/commit/44530c2713a1039e420a793c76fc4dc2231b936e), [`c84b36e`](https://github.com/graphql-hive/gateway/commit/c84b36e1125a8ab3bd8e988be285b96c8545073d), [`00047fd`](https://github.com/graphql-hive/gateway/commit/00047fd581f257d8be5499a25ee80425fb01fc85), [`f238e21`](https://github.com/graphql-hive/gateway/commit/f238e215ef5ac9b8c93458d4889bf80f85a574ed), [`76073af`](https://github.com/graphql-hive/gateway/commit/76073af61b408de42c85f21696cf20a0d97e4027), [`b4f5042`](https://github.com/graphql-hive/gateway/commit/b4f5042c2f152252918a8814d060e39cb9551cdd), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`61f45a1`](https://github.com/graphql-hive/gateway/commit/61f45a13e1175bfb30fbd397604c92ee1fd19a1a)]:
95
+ - @graphql-hive/gateway-runtime@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
96
+ - @graphql-hive/plugin-opentelemetry@1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
97
+ - @graphql-hive/pubsub@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
98
+ - @graphql-mesh/plugin-prometheus@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
99
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
100
+ - @graphql-hive/plugin-deduplicate-request@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
101
+ - @graphql-mesh/transport-http-callback@1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
102
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
103
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
104
+ - @graphql-mesh/transport-http@1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
105
+ - @graphql-mesh/transport-ws@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
106
+ - @graphql-hive/importer@2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543
107
+ - @graphql-hive/logger@1.0.1-next-66e53d1e2ddad879f3d1db3786434d560a97f543
108
108
 
109
109
  ## 1.16.5
110
110
  ### 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-DKhnumz1.cjs');
6
+ var cli = require('./cli-Cl8Ek55A.cjs');
7
7
  require('node:cluster');
8
8
  require('node:os');
9
9
  require('node:path');
@@ -28,6 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
28
 
29
29
  var module__default = /*#__PURE__*/_interopDefault(module$1);
30
30
 
31
+ globalThis.__VERSION__ = '2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543';
31
32
  module__default.default.register("@graphql-hive/importer/hooks", {
32
33
  parentURL: (
33
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 from 'node:module';
4
4
  import { Logger } from '@graphql-hive/logger';
5
- import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-CAUHvOvN.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-C5gzw52P.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -22,6 +22,7 @@ import '@graphql-tools/code-file-loader';
22
22
  import '@graphql-tools/graphql-file-loader';
23
23
  import '@graphql-tools/load';
24
24
 
25
+ globalThis.__VERSION__ = '2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543';
25
26
  module.register("@graphql-hive/importer/hooks", {
26
27
  parentURL: (
27
28
  // @ts-ignore bob will complain when bundling for cjs
@@ -623,7 +623,12 @@ function handleReportingConfig(ctx, loadedConfig, cliOpts) {
623
623
  };
624
624
  const opts = {
625
625
  ...confOpts,
626
- ...cliOpts,
626
+ ...Object.entries(cliOpts).reduce((acc, [key, val]) => {
627
+ if (val != null) {
628
+ return { ...acc, [key]: val };
629
+ }
630
+ return acc;
631
+ }, {}),
627
632
  hiveTarget: (
628
633
  // cli arguments always take precedence over config
629
634
  confOpts.hiveTarget ?? cliOpts.hiveTarget ?? cliOpts.hiveUsageTarget
@@ -1511,7 +1516,7 @@ async function run(userCtx) {
1511
1516
  productLink: "https://the-guild.dev/graphql/hive/docs/gateway",
1512
1517
  binName: "hive-gateway",
1513
1518
  configFileName: "gateway.config",
1514
- version: globalThis.__VERSION__ || "dev",
1519
+ version: globalThis.__VERSION__ || "unknown",
1515
1520
  ...userCtx
1516
1521
  };
1517
1522
  const { binName, productDescription, version } = ctx;
@@ -630,7 +630,12 @@ function handleReportingConfig(ctx, loadedConfig, cliOpts) {
630
630
  };
631
631
  const opts = {
632
632
  ...confOpts,
633
- ...cliOpts,
633
+ ...Object.entries(cliOpts).reduce((acc, [key, val]) => {
634
+ if (val != null) {
635
+ return { ...acc, [key]: val };
636
+ }
637
+ return acc;
638
+ }, {}),
634
639
  hiveTarget: (
635
640
  // cli arguments always take precedence over config
636
641
  confOpts.hiveTarget ?? cliOpts.hiveTarget ?? cliOpts.hiveUsageTarget
@@ -1518,7 +1523,7 @@ async function run(userCtx) {
1518
1523
  productLink: "https://the-guild.dev/graphql/hive/docs/gateway",
1519
1524
  binName: "hive-gateway",
1520
1525
  configFileName: "gateway.config",
1521
- version: globalThis.__VERSION__ || "dev",
1526
+ version: globalThis.__VERSION__ || "unknown",
1522
1527
  ...userCtx
1523
1528
  };
1524
1529
  const { binName, productDescription, version } = ctx;
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-DKhnumz1.cjs');
3
+ var cli = require('./cli-Cl8Ek55A.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');
package/dist/index.d.cts CHANGED
@@ -5,13 +5,13 @@ 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 { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
8
9
  import { PubSub } from '@graphql-hive/pubsub';
9
10
  export * from '@graphql-hive/pubsub';
10
11
  import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
11
12
  export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
12
13
  import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
13
14
  export * from '@graphql-mesh/plugin-jwt-auth';
14
- import { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
15
15
  import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
16
16
  export * from '@graphql-mesh/plugin-prometheus';
17
17
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
package/dist/index.d.ts CHANGED
@@ -5,13 +5,13 @@ 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 { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
8
9
  import { PubSub } from '@graphql-hive/pubsub';
9
10
  export * from '@graphql-hive/pubsub';
10
11
  import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
11
12
  export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
12
13
  import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
13
14
  export * from '@graphql-mesh/plugin-jwt-auth';
14
- import { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
15
15
  import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
16
16
  export * from '@graphql-mesh/plugin-prometheus';
17
17
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
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-CAUHvOvN.js';
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-C5gzw52P.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
4
  export * from '@graphql-hive/pubsub';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
3
+ "version": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,28 +83,28 @@
83
83
  "@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
84
84
  "@escape.tech/graphql-armor-max-depth": "^2.4.0",
85
85
  "@escape.tech/graphql-armor-max-tokens": "^2.5.0",
86
- "@graphql-hive/gateway-runtime": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
87
- "@graphql-hive/importer": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
88
- "@graphql-hive/logger": "1.0.1-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
89
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
90
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
91
- "@graphql-hive/plugin-opentelemetry": "1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
92
- "@graphql-hive/pubsub": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
86
+ "@graphql-hive/gateway-runtime": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
87
+ "@graphql-hive/importer": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
88
+ "@graphql-hive/logger": "1.0.1-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
89
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
90
+ "@graphql-hive/plugin-deduplicate-request": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
91
+ "@graphql-hive/plugin-opentelemetry": "1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
92
+ "@graphql-hive/pubsub": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
93
93
  "@graphql-mesh/cache-cfw-kv": "^0.105.8",
94
94
  "@graphql-mesh/cache-localforage": "^0.105.9",
95
95
  "@graphql-mesh/cache-redis": "^0.104.8",
96
96
  "@graphql-mesh/cache-upstash-redis": "^0.1.8",
97
97
  "@graphql-mesh/cross-helpers": "^0.4.10",
98
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
98
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
99
99
  "@graphql-mesh/plugin-http-cache": "^0.105.8",
100
100
  "@graphql-mesh/plugin-jit": "^0.2.7",
101
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
102
- "@graphql-mesh/plugin-prometheus": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
101
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
102
+ "@graphql-mesh/plugin-prometheus": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
103
103
  "@graphql-mesh/plugin-rate-limit": "^0.104.7",
104
104
  "@graphql-mesh/plugin-snapshot": "^0.104.7",
105
- "@graphql-mesh/transport-http": "1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
106
- "@graphql-mesh/transport-http-callback": "1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
107
- "@graphql-mesh/transport-ws": "2.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
105
+ "@graphql-mesh/transport-http": "1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
106
+ "@graphql-mesh/transport-http-callback": "1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
107
+ "@graphql-mesh/transport-ws": "2.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
108
108
  "@graphql-mesh/types": "^0.104.8",
109
109
  "@graphql-mesh/utils": "^0.104.11",
110
110
  "@graphql-tools/code-file-loader": "^8.1.22",
@@ -133,7 +133,7 @@
133
133
  "ws": "^8.18.3"
134
134
  },
135
135
  "devDependencies": {
136
- "@graphql-mesh/transport-common": "1.0.0-next-96e492dfcd9d328762d22e1efda567b8e11bed12",
136
+ "@graphql-mesh/transport-common": "1.0.0-next-66e53d1e2ddad879f3d1db3786434d560a97f543",
137
137
  "@graphql-mesh/transport-soap": "^0.10.8",
138
138
  "@graphql-tools/executor": "^1.4.9",
139
139
  "@rollup/plugin-commonjs": "^28.0.0",
@@ -154,7 +154,7 @@
154
154
  "rimraf": "^6.0.1",
155
155
  "rollup": "4.44.0",
156
156
  "rollup-plugin-tsconfig-paths": "^1.5.2",
157
- "tsx": "4.20.3"
157
+ "tsx": "4.20.5"
158
158
  },
159
159
  "sideEffects": false
160
160
  }