@graphql-hive/gateway 2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3 → 2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06

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,35 +1,35 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
3
+ ## 2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
4
4
 
5
5
  ### Major Changes
6
6
 
7
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`bf1de88`](https://github.com/graphql-hive/gateway/commit/bf1de8837efccc4d17a7ae6e29c6f6f7942b1692) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
7
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`cd9b7ce`](https://github.com/graphql-hive/gateway/commit/cd9b7ce551ec702c00b33e6c1b2cf68f0a6c82a3) 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) [`b5cb59d`](https://github.com/graphql-hive/gateway/commit/b5cb59d4bd56293202785a962cebba348e235736) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
11
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`95484c2`](https://github.com/graphql-hive/gateway/commit/95484c2ca0cea1cd732df4bfe8ce45032ec31d42) 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) [`ab4750f`](https://github.com/graphql-hive/gateway/commit/ab4750f849cbc1e042b39a91357df2c959e5a938) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Disable forking even if NODE_ENV=production
15
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`82db131`](https://github.com/graphql-hive/gateway/commit/82db1316cad01c5d1c9f5f395e6424c6f12bd664) 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) [`f303fca`](https://github.com/graphql-hive/gateway/commit/f303fca6e3115e6c612c2c8d2f0a15ad0c4a093e) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Remove mocking plugin from Hive Gateway built-ins
19
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`cfdc4b1`](https://github.com/graphql-hive/gateway/commit/cfdc4b1c7aa30310e0dc49672b5c7372ea33b781) 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) [`4e40297`](https://github.com/graphql-hive/gateway/commit/4e4029793c6c63fd317cc0d03c84fea0ef9dd61b) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Load schema on initialization
23
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`471eb4e`](https://github.com/graphql-hive/gateway/commit/471eb4e01045ab6c6e0545726a3adbbf67875015) 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) [`b5cb59d`](https://github.com/graphql-hive/gateway/commit/b5cb59d4bd56293202785a962cebba348e235736) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
29
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`95484c2`](https://github.com/graphql-hive/gateway/commit/95484c2ca0cea1cd732df4bfe8ce45032ec31d42) 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) [`b61b787`](https://github.com/graphql-hive/gateway/commit/b61b7870db8920a8936cc9fbb6019cd8a6a28c14) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
32
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`9e4d81c`](https://github.com/graphql-hive/gateway/commit/9e4d81c2ad9e99d2195e3f2a021a30a9312cf980) 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) [`92fce98`](https://github.com/graphql-hive/gateway/commit/92fce984625bd4d6454a06b23cbb325627905f84) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
43
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`f3caa12`](https://github.com/graphql-hive/gateway/commit/f3caa12a7ad50cdc03c82f2336f820e8ccbad55e) 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
- - [#1300](https://github.com/graphql-hive/gateway/pull/1300) [`be69ab8`](https://github.com/graphql-hive/gateway/commit/be69ab8fa8cf618e4bf67dad92091aff852be2a4) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
47
+ - [#1300](https://github.com/graphql-hive/gateway/pull/1300) [`1ba0cf4`](https://github.com/graphql-hive/gateway/commit/1ba0cf4a6359e41a6ab16f940d8733d3ad9d800b) 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
 
@@ -59,7 +59,7 @@
59
59
  - [#1325](https://github.com/graphql-hive/gateway/pull/1325) [`910ff77`](https://github.com/graphql-hive/gateway/commit/910ff777ce787297cece37ec66c3382bc292412b) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
60
60
  - Updated dependency [`dotenv@^17.2.0` ↗︎](https://www.npmjs.com/package/dotenv/v/17.2.0) (from `^16.4.7`, in `dependencies`)
61
61
 
62
- - [#956](https://github.com/graphql-hive/gateway/pull/956) [`dd83aea`](https://github.com/graphql-hive/gateway/commit/dd83aeac747b47e63a80fea8649923f42a7c5d7e) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
62
+ - [#956](https://github.com/graphql-hive/gateway/pull/956) [`8b7db06`](https://github.com/graphql-hive/gateway/commit/8b7db06887f5dec52d380bfc123dbf495cbe04ef) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
63
63
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
64
64
  - Added dependency [`@opentelemetry/api@^1.9.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.0) (to `dependencies`)
65
65
  - Added dependency [`@opentelemetry/api-logs@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/api-logs/v/0.202.0) (to `dependencies`)
@@ -74,20 +74,20 @@
74
74
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
75
75
  - Removed dependency [`@graphql-mesh/plugin-mock@^0.105.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.6) (from `dependencies`)
76
76
 
77
- - Updated dependencies [[`b5cb59d`](https://github.com/graphql-hive/gateway/commit/b5cb59d4bd56293202785a962cebba348e235736), [`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), [`dd83aea`](https://github.com/graphql-hive/gateway/commit/dd83aeac747b47e63a80fea8649923f42a7c5d7e), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`b61b787`](https://github.com/graphql-hive/gateway/commit/b61b7870db8920a8936cc9fbb6019cd8a6a28c14), [`92fce98`](https://github.com/graphql-hive/gateway/commit/92fce984625bd4d6454a06b23cbb325627905f84), [`be69ab8`](https://github.com/graphql-hive/gateway/commit/be69ab8fa8cf618e4bf67dad92091aff852be2a4), [`dfe6f58`](https://github.com/graphql-hive/gateway/commit/dfe6f58209afd27953676c5b51b8b9f07fc99671), [`ceb07a6`](https://github.com/graphql-hive/gateway/commit/ceb07a61f6f1c7ca345df2c23860950e5152288e), [`732c6f5`](https://github.com/graphql-hive/gateway/commit/732c6f5c82fdf6b730109fbc7c05c69da8ce6fb4), [`b5cb59d`](https://github.com/graphql-hive/gateway/commit/b5cb59d4bd56293202785a962cebba348e235736), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`dd83aea`](https://github.com/graphql-hive/gateway/commit/dd83aeac747b47e63a80fea8649923f42a7c5d7e), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`bf1de88`](https://github.com/graphql-hive/gateway/commit/bf1de8837efccc4d17a7ae6e29c6f6f7942b1692), [`b5cb59d`](https://github.com/graphql-hive/gateway/commit/b5cb59d4bd56293202785a962cebba348e235736), [`f052709`](https://github.com/graphql-hive/gateway/commit/f0527092e4942b4c97cb3272266f93f3200fac98), [`9bee8e9`](https://github.com/graphql-hive/gateway/commit/9bee8e9ff165c43591c0b20637b6d1f2a2cb9cc2), [`9b230f3`](https://github.com/graphql-hive/gateway/commit/9b230f35b47afbf3b253e4c21720e836c5a2a8d1), [`10a5887`](https://github.com/graphql-hive/gateway/commit/10a58873acde8734f05dfda455fe7b366861676b), [`2a56e5f`](https://github.com/graphql-hive/gateway/commit/2a56e5fd5a07f6784e8c2d0ad767d8c55710ada4), [`3718e25`](https://github.com/graphql-hive/gateway/commit/3718e25c93f1d6f1fb8e78641f9d98d426968d9a), [`732c6f5`](https://github.com/graphql-hive/gateway/commit/732c6f5c82fdf6b730109fbc7c05c69da8ce6fb4), [`b5cb59d`](https://github.com/graphql-hive/gateway/commit/b5cb59d4bd56293202785a962cebba348e235736), [`6306e37`](https://github.com/graphql-hive/gateway/commit/6306e377ff3a613a1605f59d4db92d75185d4b6b)]:
78
- - @graphql-hive/gateway-runtime@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
79
- - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
80
- - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
81
- - @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
82
- - @graphql-mesh/plugin-prometheus@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
83
- - @graphql-mesh/transport-ws@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
84
- - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
85
- - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
86
- - @graphql-mesh/transport-http-callback@1.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
87
- - @graphql-mesh/transport-http@1.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
88
- - @graphql-hive/importer@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
89
- - @graphql-hive/pubsub@2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
90
- - @graphql-hive/logger@1.0.1-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3
77
+ - Updated dependencies [[`95484c2`](https://github.com/graphql-hive/gateway/commit/95484c2ca0cea1cd732df4bfe8ce45032ec31d42), [`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), [`8b7db06`](https://github.com/graphql-hive/gateway/commit/8b7db06887f5dec52d380bfc123dbf495cbe04ef), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`9e4d81c`](https://github.com/graphql-hive/gateway/commit/9e4d81c2ad9e99d2195e3f2a021a30a9312cf980), [`f3caa12`](https://github.com/graphql-hive/gateway/commit/f3caa12a7ad50cdc03c82f2336f820e8ccbad55e), [`1ba0cf4`](https://github.com/graphql-hive/gateway/commit/1ba0cf4a6359e41a6ab16f940d8733d3ad9d800b), [`dfe6f58`](https://github.com/graphql-hive/gateway/commit/dfe6f58209afd27953676c5b51b8b9f07fc99671), [`ceb07a6`](https://github.com/graphql-hive/gateway/commit/ceb07a61f6f1c7ca345df2c23860950e5152288e), [`732c6f5`](https://github.com/graphql-hive/gateway/commit/732c6f5c82fdf6b730109fbc7c05c69da8ce6fb4), [`95484c2`](https://github.com/graphql-hive/gateway/commit/95484c2ca0cea1cd732df4bfe8ce45032ec31d42), [`7dafdeb`](https://github.com/graphql-hive/gateway/commit/7dafdebc803e49373fe9d53997113483e512fdb0), [`8b7db06`](https://github.com/graphql-hive/gateway/commit/8b7db06887f5dec52d380bfc123dbf495cbe04ef), [`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`cd9b7ce`](https://github.com/graphql-hive/gateway/commit/cd9b7ce551ec702c00b33e6c1b2cf68f0a6c82a3), [`95484c2`](https://github.com/graphql-hive/gateway/commit/95484c2ca0cea1cd732df4bfe8ce45032ec31d42), [`f052709`](https://github.com/graphql-hive/gateway/commit/f0527092e4942b4c97cb3272266f93f3200fac98), [`9bee8e9`](https://github.com/graphql-hive/gateway/commit/9bee8e9ff165c43591c0b20637b6d1f2a2cb9cc2), [`9b230f3`](https://github.com/graphql-hive/gateway/commit/9b230f35b47afbf3b253e4c21720e836c5a2a8d1), [`10a5887`](https://github.com/graphql-hive/gateway/commit/10a58873acde8734f05dfda455fe7b366861676b), [`2a56e5f`](https://github.com/graphql-hive/gateway/commit/2a56e5fd5a07f6784e8c2d0ad767d8c55710ada4), [`ae37c4a`](https://github.com/graphql-hive/gateway/commit/ae37c4a4189e3ea20f2ce0d24e2509d2053eb244), [`732c6f5`](https://github.com/graphql-hive/gateway/commit/732c6f5c82fdf6b730109fbc7c05c69da8ce6fb4), [`95484c2`](https://github.com/graphql-hive/gateway/commit/95484c2ca0cea1cd732df4bfe8ce45032ec31d42), [`dbb4fd9`](https://github.com/graphql-hive/gateway/commit/dbb4fd9287ff872de5cc9f18546987bd71232df5)]:
78
+ - @graphql-hive/gateway-runtime@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
79
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
80
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
81
+ - @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
82
+ - @graphql-mesh/plugin-prometheus@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
83
+ - @graphql-mesh/transport-ws@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
84
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
85
+ - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
86
+ - @graphql-mesh/transport-http-callback@1.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
87
+ - @graphql-mesh/transport-http@1.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
88
+ - @graphql-hive/importer@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
89
+ - @graphql-hive/pubsub@2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
90
+ - @graphql-hive/logger@1.0.1-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06
91
91
 
92
92
  ## 1.15.4
93
93
 
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-Be2W1qf0.cjs');
6
+ var cli = require('./cli-CBlIrvLS.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-eXE2psgp.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-BPISYJxP.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -536,7 +536,10 @@ function handleReportingConfig(ctx, loadedConfig, cliOpts) {
536
536
  const opts = {
537
537
  ...confOpts,
538
538
  ...cliOpts,
539
- hiveTarget: cliOpts.hiveTarget ?? cliOpts.hiveUsageTarget ?? confOpts.hiveTarget
539
+ hiveTarget: (
540
+ // cli arguments always take precedence over config
541
+ confOpts.hiveTarget ?? cliOpts.hiveTarget ?? cliOpts.hiveUsageTarget
542
+ )
540
543
  };
541
544
  if (cliOpts.hiveRegistryToken && cliOpts.hiveUsageAccessToken) {
542
545
  ctx.log.error(
@@ -562,7 +565,7 @@ function handleReportingConfig(ctx, loadedConfig, cliOpts) {
562
565
  );
563
566
  process.exit(1);
564
567
  }
565
- if ((opts.hiveAccessToken || opts.hiveUsageAccessToken || opts.hiveTraceAccessToken) && !opts.hiveUsageTarget) {
568
+ if ((opts.hiveAccessToken || opts.hiveUsageAccessToken || opts.hiveTraceAccessToken) && !opts.hiveTarget) {
566
569
  ctx.log.error(
567
570
  'Hive access token needs a target. Please provide it through the "--hive-target <target>" option or the config.'
568
571
  );
@@ -543,7 +543,10 @@ function handleReportingConfig(ctx, loadedConfig, cliOpts) {
543
543
  const opts = {
544
544
  ...confOpts,
545
545
  ...cliOpts,
546
- hiveTarget: cliOpts.hiveTarget ?? cliOpts.hiveUsageTarget ?? confOpts.hiveTarget
546
+ hiveTarget: (
547
+ // cli arguments always take precedence over config
548
+ confOpts.hiveTarget ?? cliOpts.hiveTarget ?? cliOpts.hiveUsageTarget
549
+ )
547
550
  };
548
551
  if (cliOpts.hiveRegistryToken && cliOpts.hiveUsageAccessToken) {
549
552
  ctx.log.error(
@@ -569,7 +572,7 @@ function handleReportingConfig(ctx, loadedConfig, cliOpts) {
569
572
  );
570
573
  process.exit(1);
571
574
  }
572
- if ((opts.hiveAccessToken || opts.hiveUsageAccessToken || opts.hiveTraceAccessToken) && !opts.hiveUsageTarget) {
575
+ if ((opts.hiveAccessToken || opts.hiveUsageAccessToken || opts.hiveTraceAccessToken) && !opts.hiveTarget) {
573
576
  ctx.log.error(
574
577
  'Hive access token needs a target. Please provide it through the "--hive-target <target>" option or the config.'
575
578
  );
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-Be2W1qf0.cjs');
3
+ var cli = require('./cli-CBlIrvLS.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.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-eXE2psgp.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-BPISYJxP.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
4
  export { PubSub } 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-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
3
+ "version": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
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-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
57
- "@graphql-hive/importer": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
58
- "@graphql-hive/logger": "1.0.1-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
59
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
60
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
61
- "@graphql-hive/pubsub": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
56
+ "@graphql-hive/gateway-runtime": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
57
+ "@graphql-hive/importer": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
58
+ "@graphql-hive/logger": "1.0.1-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
59
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
60
+ "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
61
+ "@graphql-hive/pubsub": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
62
62
  "@graphql-mesh/cache-cfw-kv": "^0.105.5",
63
63
  "@graphql-mesh/cache-localforage": "^0.105.6",
64
64
  "@graphql-mesh/cache-redis": "^0.104.5",
65
65
  "@graphql-mesh/cache-upstash-redis": "^0.1.5",
66
66
  "@graphql-mesh/cross-helpers": "^0.4.10",
67
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
67
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
68
68
  "@graphql-mesh/plugin-http-cache": "^0.105.6",
69
69
  "@graphql-mesh/plugin-jit": "^0.2.5",
70
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
71
- "@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
72
- "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
70
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
71
+ "@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
72
+ "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
73
73
  "@graphql-mesh/plugin-rate-limit": "^0.104.5",
74
74
  "@graphql-mesh/plugin-snapshot": "^0.104.5",
75
- "@graphql-mesh/transport-http": "1.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
76
- "@graphql-mesh/transport-http-callback": "1.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
77
- "@graphql-mesh/transport-ws": "2.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
75
+ "@graphql-mesh/transport-http": "1.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
76
+ "@graphql-mesh/transport-http-callback": "1.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
77
+ "@graphql-mesh/transport-ws": "2.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
78
78
  "@graphql-mesh/types": "^0.104.5",
79
79
  "@graphql-mesh/utils": "^0.104.5",
80
80
  "@graphql-tools/code-file-loader": "^8.1.15",
@@ -103,7 +103,7 @@
103
103
  "ws": "^8.18.3"
104
104
  },
105
105
  "devDependencies": {
106
- "@graphql-mesh/transport-common": "1.0.0-alpha-bc847d26cf53fdf029a9cc1965c185a458aa7dc3",
106
+ "@graphql-mesh/transport-common": "1.0.0-alpha-7116c2bde184d9d6f11f4a6821961468374e9a06",
107
107
  "@graphql-mesh/transport-soap": "^0.10.6",
108
108
  "@graphql-tools/executor": "^1.4.7",
109
109
  "@rollup/plugin-commonjs": "^28.0.0",