@graphql-hive/gateway 2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda → 2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +15 -22
  2. package/dist/bin.cjs +1 -1
  3. package/dist/bin.js +1 -1
  4. package/dist/{cli-CP9iY6tm.js → cli-BG8XaVLT.js} +6 -27
  5. package/dist/{cli-CPxULGJb.cjs → cli-DqXsx5Cd.cjs} +5 -26
  6. package/dist/index.cjs +14 -5
  7. package/dist/index.d.cts +16 -14
  8. package/dist/index.d.ts +16 -14
  9. package/dist/index.js +3 -2
  10. package/package.json +15 -45
  11. package/dist/execAsync-CZu27rRM.cjs +0 -44
  12. package/dist/execAsync-DmTy47v9.js +0 -21
  13. package/dist/getMachineId-bsd-B4KI42yf.js +0 -40
  14. package/dist/getMachineId-bsd-Bm_iwnsS.cjs +0 -42
  15. package/dist/getMachineId-darwin-BDexu45J.cjs +0 -43
  16. package/dist/getMachineId-darwin-c7bqIReD.js +0 -41
  17. package/dist/getMachineId-linux-D2g1lfzo.js +0 -33
  18. package/dist/getMachineId-linux-sJzq0whF.cjs +0 -35
  19. package/dist/getMachineId-unsupported-C6mI58qQ.js +0 -23
  20. package/dist/getMachineId-unsupported-Cmowwltd.cjs +0 -25
  21. package/dist/getMachineId-win-5mPgREt3.cjs +0 -63
  22. package/dist/getMachineId-win-CvE0ShWu.js +0 -41
  23. package/dist/index-61dm03o3.js +0 -279698
  24. package/dist/index-B44NjpxU.cjs +0 -843
  25. package/dist/index-DWaHa380.cjs +0 -279743
  26. package/dist/index-Dw4Doxg2.js +0 -821
  27. package/dist/opentelemetry/api.cjs +0 -12
  28. package/dist/opentelemetry/api.d.cts +0 -1
  29. package/dist/opentelemetry/api.d.ts +0 -1
  30. package/dist/opentelemetry/api.js +0 -1
  31. package/dist/opentelemetry/index.cjs +0 -12
  32. package/dist/opentelemetry/index.d.cts +0 -3
  33. package/dist/opentelemetry/index.d.ts +0 -3
  34. package/dist/opentelemetry/index.js +0 -1
  35. package/dist/opentelemetry/setup.cjs +0 -12
  36. package/dist/opentelemetry/setup.d.cts +0 -1
  37. package/dist/opentelemetry/setup.d.ts +0 -1
  38. package/dist/opentelemetry/setup.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
3
+ ## 2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
4
4
  ### Major Changes
5
5
 
6
6
 
@@ -31,13 +31,6 @@
31
31
 
32
32
  Failing to start if the schema is not loaded for whatever reason.
33
33
 
34
- ### Minor Changes
35
-
36
-
37
-
38
- - [#1420](https://github.com/graphql-hive/gateway/pull/1420) [`a7b277d`](https://github.com/graphql-hive/gateway/commit/a7b277d0f4784f7e9be125b3ec7de202ba86caad) Thanks [@enisdenjo](https://github.com/enisdenjo)! - The `defineConfig` accepts a TContext generic
39
-
40
-
41
34
  ### Patch Changes
42
35
 
43
36
 
@@ -99,20 +92,20 @@
99
92
  - Added dependency [`@opentelemetry/sdk-metrics@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-metrics/v/2.0.1) (to `dependencies`)
100
93
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
101
94
  - Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
102
- - Updated dependencies [[`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`a2312e1`](https://github.com/graphql-hive/gateway/commit/a2312e13ae88269457c61c2ef16d01f43207a0d2), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`a7b277d`](https://github.com/graphql-hive/gateway/commit/a7b277d0f4784f7e9be125b3ec7de202ba86caad), [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`cfa763a`](https://github.com/graphql-hive/gateway/commit/cfa763ac9d75310b916064168f8a2c14fc9853ef), [`0a2d8ab`](https://github.com/graphql-hive/gateway/commit/0a2d8abfa4d8e9dacba156055b1230de8d389551), [`4c667df`](https://github.com/graphql-hive/gateway/commit/4c667dfc22371fd0b78f56d7f022c26e386facc9), [`a2312e1`](https://github.com/graphql-hive/gateway/commit/a2312e13ae88269457c61c2ef16d01f43207a0d2), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`42de363`](https://github.com/graphql-hive/gateway/commit/42de3635744b881032b098eb42a1b8e7103bb09f), [`b22e33c`](https://github.com/graphql-hive/gateway/commit/b22e33c09d82f27889a1d49f05c94c814d858fcc), [`33a89bd`](https://github.com/graphql-hive/gateway/commit/33a89bd92774d4b1331e726f15816b942a2d0892), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`2cb44ee`](https://github.com/graphql-hive/gateway/commit/2cb44ee21ec00210a9e292b40f0e1964e03ec09f), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`7019f12`](https://github.com/graphql-hive/gateway/commit/7019f12f0a571df4c9fd8908110c8b33436a3063), [`f25f27e`](https://github.com/graphql-hive/gateway/commit/f25f27e7c4fa9f38626c19d2f94e62d53dedc03e), [`e70fb84`](https://github.com/graphql-hive/gateway/commit/e70fb84f7acaa7756116f4c4f4dedf9a72c25b6b), [`7e79f17`](https://github.com/graphql-hive/gateway/commit/7e79f17973c5711ee1be87b80f653a5a293075a2), [`8e4e52f`](https://github.com/graphql-hive/gateway/commit/8e4e52f5204ae992704f4edc656c422271b341b7), [`7019f12`](https://github.com/graphql-hive/gateway/commit/7019f12f0a571df4c9fd8908110c8b33436a3063), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`590b930`](https://github.com/graphql-hive/gateway/commit/590b93040edc6309728e4fda72168fc2d13681a9), [`33a89bd`](https://github.com/graphql-hive/gateway/commit/33a89bd92774d4b1331e726f15816b942a2d0892), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`d031c51`](https://github.com/graphql-hive/gateway/commit/d031c51b8cdc244fbbc566fb7f32e48ad0f4283f)]:
103
- - @graphql-hive/gateway-runtime@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
104
- - @graphql-hive/plugin-deduplicate-request@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
105
- - @graphql-mesh/hmac-upstream-signature@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
106
- - @graphql-mesh/plugin-jwt-auth@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
107
- - @graphql-mesh/plugin-opentelemetry@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
108
- - @graphql-mesh/plugin-prometheus@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
109
- - @graphql-mesh/transport-http@1.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
110
- - @graphql-mesh/transport-http-callback@1.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
111
- - @graphql-mesh/transport-ws@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
112
- - @graphql-hive/plugin-aws-sigv4@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
113
- - @graphql-hive/importer@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
114
- - @graphql-hive/pubsub@2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
115
- - @graphql-hive/logger@1.0.1-next-644c389eef9f770fab018ad7bfc5f099c0fbedda
95
+ - Updated dependencies [[`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`a2312e1`](https://github.com/graphql-hive/gateway/commit/a2312e13ae88269457c61c2ef16d01f43207a0d2), [`b87b2d6`](https://github.com/graphql-hive/gateway/commit/b87b2d63584346f34d952e49232538f2126fbd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`1c09b45`](https://github.com/graphql-hive/gateway/commit/1c09b45ad0e2a8729df79ac322cb25a21be149ba), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`cfa763a`](https://github.com/graphql-hive/gateway/commit/cfa763ac9d75310b916064168f8a2c14fc9853ef), [`0a2d8ab`](https://github.com/graphql-hive/gateway/commit/0a2d8abfa4d8e9dacba156055b1230de8d389551), [`4c667df`](https://github.com/graphql-hive/gateway/commit/4c667dfc22371fd0b78f56d7f022c26e386facc9), [`a2312e1`](https://github.com/graphql-hive/gateway/commit/a2312e13ae88269457c61c2ef16d01f43207a0d2), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`42de363`](https://github.com/graphql-hive/gateway/commit/42de3635744b881032b098eb42a1b8e7103bb09f), [`b22e33c`](https://github.com/graphql-hive/gateway/commit/b22e33c09d82f27889a1d49f05c94c814d858fcc), [`33a89bd`](https://github.com/graphql-hive/gateway/commit/33a89bd92774d4b1331e726f15816b942a2d0892), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`8db36e9`](https://github.com/graphql-hive/gateway/commit/8db36e9e19e0885d498dd44575ebdf4e25d5bd34), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`37113d1`](https://github.com/graphql-hive/gateway/commit/37113d1a446748fd83da9823e27a0f56872317df), [`5aefad2`](https://github.com/graphql-hive/gateway/commit/5aefad2ac4abe40fd1cb141218bd2679b3e0047d), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`2cb44ee`](https://github.com/graphql-hive/gateway/commit/2cb44ee21ec00210a9e292b40f0e1964e03ec09f), [`94115dc`](https://github.com/graphql-hive/gateway/commit/94115dc5f4af66e8f04bf97c7ec642b49d194132), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`7019f12`](https://github.com/graphql-hive/gateway/commit/7019f12f0a571df4c9fd8908110c8b33436a3063), [`f25f27e`](https://github.com/graphql-hive/gateway/commit/f25f27e7c4fa9f38626c19d2f94e62d53dedc03e), [`e70fb84`](https://github.com/graphql-hive/gateway/commit/e70fb84f7acaa7756116f4c4f4dedf9a72c25b6b), [`7e79f17`](https://github.com/graphql-hive/gateway/commit/7e79f17973c5711ee1be87b80f653a5a293075a2), [`8e4e52f`](https://github.com/graphql-hive/gateway/commit/8e4e52f5204ae992704f4edc656c422271b341b7), [`7019f12`](https://github.com/graphql-hive/gateway/commit/7019f12f0a571df4c9fd8908110c8b33436a3063), [`e5eb881`](https://github.com/graphql-hive/gateway/commit/e5eb881e8a063accc55b750e613f4baefa21dda5), [`590b930`](https://github.com/graphql-hive/gateway/commit/590b93040edc6309728e4fda72168fc2d13681a9), [`33a89bd`](https://github.com/graphql-hive/gateway/commit/33a89bd92774d4b1331e726f15816b942a2d0892), [`7766e3c`](https://github.com/graphql-hive/gateway/commit/7766e3c52272c5a58cc9a25b9d1a0e2886be11e1), [`94115dc`](https://github.com/graphql-hive/gateway/commit/94115dc5f4af66e8f04bf97c7ec642b49d194132), [`d031c51`](https://github.com/graphql-hive/gateway/commit/d031c51b8cdc244fbbc566fb7f32e48ad0f4283f)]:
96
+ - @graphql-hive/gateway-runtime@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
97
+ - @graphql-hive/plugin-deduplicate-request@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
98
+ - @graphql-hive/pubsub@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
99
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
100
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
101
+ - @graphql-mesh/plugin-opentelemetry@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
102
+ - @graphql-mesh/plugin-prometheus@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
103
+ - @graphql-mesh/transport-http@1.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
104
+ - @graphql-mesh/transport-http-callback@1.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
105
+ - @graphql-mesh/transport-ws@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
106
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
107
+ - @graphql-hive/importer@2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34
108
+ - @graphql-hive/logger@1.0.1-next-b87b2d63584346f34d952e49232538f2126fbd34
116
109
 
117
110
  ## 1.16.3
118
111
 
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-CPxULGJb.cjs');
6
+ var cli = require('./cli-DqXsx5Cd.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-CP9iY6tm.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-BG8XaVLT.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -6,7 +6,7 @@ import { Option, Command, InvalidArgumentError } from '@commander-js/extra-typin
6
6
  import { LegacyLogger, Logger } from '@graphql-hive/logger';
7
7
  import { renderGraphiQL } from '@graphql-yoga/render-graphiql';
8
8
  import { getGraphQLWSOptions, createLoggerFromLogging, createGatewayRuntime } from '@graphql-hive/gateway-runtime';
9
- import { PubSub } from '@graphql-hive/pubsub';
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';
@@ -46,9 +46,6 @@ function strToBool(str) {
46
46
  function isDebug() {
47
47
  return getEnvBool("DEBUG");
48
48
  }
49
- function isNode() {
50
- return typeof process !== "undefined" && process.versions && process.versions.node && typeof Bun === "undefined";
51
- }
52
49
 
53
50
  const unit = Object.create(null);
54
51
  const m = 60000, h = m * 60, d = h * 24, y = d * 365.25;
@@ -530,7 +527,7 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
530
527
  "Initializing OpenTelemetry SDK"
531
528
  );
532
529
  return fakePromise().then(async () => {
533
- const { openTelemetrySetup, HiveTracingSpanProcessor } = await import('@graphql-mesh/plugin-opentelemetry/setup');
530
+ const { openTelemetrySetup, HiveTracingSpanProcessor, getEnvVar } = await import('@graphql-mesh/plugin-opentelemetry/setup');
534
531
  const processors = [];
535
532
  const logAttributes = {
536
533
  traceEndpoints: [],
@@ -538,7 +535,7 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
538
535
  };
539
536
  let integrationName;
540
537
  if (openTelemetry) {
541
- const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvStr("OTEL_EXPORTER_OTLP_ENDPOINT");
538
+ const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvVar("OTEL_EXPORTER_OTLP_ENDPOINT", void 0);
542
539
  log.debug({ exporterType, otelEndpoint }, "Setting up OTLP Exporter");
543
540
  integrationName = "OpenTelemetry";
544
541
  logAttributes.traceEndpoints.push({
@@ -580,16 +577,6 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
580
577
  }).catch(() => null);
581
578
  openTelemetrySetup({
582
579
  traces: { processors },
583
- resource: await detectResource().catch((err) => {
584
- if (err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND") {
585
- ctx.log.warn(
586
- err,
587
- `NodeJS modules necessary for environment detection is missing, please install it to auto-detect the environment`
588
- );
589
- return void 0;
590
- }
591
- throw err;
592
- }),
593
580
  contextManager
594
581
  });
595
582
  log.info(logAttributes, `${integrationName} integration is enabled`);
@@ -598,14 +585,6 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
598
585
  }
599
586
  return false;
600
587
  }
601
- async function detectResource() {
602
- if (isNode()) {
603
- const { getResourceDetectors } = await import('./index-61dm03o3.js').then(function (n) { return n.i; });
604
- const { detectResources } = await import('./index-Dw4Doxg2.js').then(function (n) { return n.e; });
605
- return detectResources({ detectors: getResourceDetectors() });
606
- }
607
- return void 0;
608
- }
609
588
 
610
589
  function handleReportingConfig(ctx, loadedConfig, cliOpts) {
611
590
  const confOpts = {
@@ -785,7 +764,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
785
764
  if (reporting) {
786
765
  registryConfig.reporting = reporting;
787
766
  }
788
- const pubsub = loadedConfig.pubsub || new PubSub();
767
+ const pubsub = loadedConfig.pubsub || new MemPubSub();
789
768
  const cwd = loadedConfig.cwd || process.cwd();
790
769
  if (loadedConfig.logging != null) {
791
770
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -923,7 +902,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
923
902
  if (reporting) {
924
903
  registryConfig.reporting = reporting;
925
904
  }
926
- const pubsub = loadedConfig.pubsub || new PubSub();
905
+ const pubsub = loadedConfig.pubsub || new MemPubSub();
927
906
  const cwd = loadedConfig.cwd || process.cwd();
928
907
  if (loadedConfig.logging != null) {
929
908
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -1157,7 +1136,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
1157
1136
  if (reporting) {
1158
1137
  registryConfig.reporting = reporting;
1159
1138
  }
1160
- const pubsub = loadedConfig.pubsub || new PubSub();
1139
+ const pubsub = loadedConfig.pubsub || new MemPubSub();
1161
1140
  const cwd = loadedConfig.cwd || process.cwd();
1162
1141
  if (loadedConfig.logging != null) {
1163
1142
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -53,9 +53,6 @@ function strToBool(str) {
53
53
  function isDebug() {
54
54
  return getEnvBool("DEBUG");
55
55
  }
56
- function isNode() {
57
- return typeof process !== "undefined" && process.versions && process.versions.node && typeof Bun === "undefined";
58
- }
59
56
 
60
57
  const unit = Object.create(null);
61
58
  const m = 60000, h = m * 60, d = h * 24, y = d * 365.25;
@@ -537,7 +534,7 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
537
534
  "Initializing OpenTelemetry SDK"
538
535
  );
539
536
  return utils$1.fakePromise().then(async () => {
540
- const { openTelemetrySetup, HiveTracingSpanProcessor } = await import('@graphql-mesh/plugin-opentelemetry/setup');
537
+ const { openTelemetrySetup, HiveTracingSpanProcessor, getEnvVar } = await import('@graphql-mesh/plugin-opentelemetry/setup');
541
538
  const processors = [];
542
539
  const logAttributes = {
543
540
  traceEndpoints: [],
@@ -545,7 +542,7 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
545
542
  };
546
543
  let integrationName;
547
544
  if (openTelemetry) {
548
- const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvStr("OTEL_EXPORTER_OTLP_ENDPOINT");
545
+ const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvVar("OTEL_EXPORTER_OTLP_ENDPOINT", void 0);
549
546
  log.debug({ exporterType, otelEndpoint }, "Setting up OTLP Exporter");
550
547
  integrationName = "OpenTelemetry";
551
548
  logAttributes.traceEndpoints.push({
@@ -587,16 +584,6 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
587
584
  }).catch(() => null);
588
585
  openTelemetrySetup({
589
586
  traces: { processors },
590
- resource: await detectResource().catch((err) => {
591
- if (err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND") {
592
- ctx.log.warn(
593
- err,
594
- `NodeJS modules necessary for environment detection is missing, please install it to auto-detect the environment`
595
- );
596
- return void 0;
597
- }
598
- throw err;
599
- }),
600
587
  contextManager
601
588
  });
602
589
  log.info(logAttributes, `${integrationName} integration is enabled`);
@@ -605,14 +592,6 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
605
592
  }
606
593
  return false;
607
594
  }
608
- async function detectResource() {
609
- if (isNode()) {
610
- const { getResourceDetectors } = await Promise.resolve().then(function () { return require('./index-DWaHa380.cjs'); }).then(function (n) { return n.index; });
611
- const { detectResources } = await Promise.resolve().then(function () { return require('./index-B44NjpxU.cjs'); }).then(function (n) { return n.esm; });
612
- return detectResources({ detectors: getResourceDetectors() });
613
- }
614
- return void 0;
615
- }
616
595
 
617
596
  function handleReportingConfig(ctx, loadedConfig, cliOpts) {
618
597
  const confOpts = {
@@ -792,7 +771,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
792
771
  if (reporting) {
793
772
  registryConfig.reporting = reporting;
794
773
  }
795
- const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
774
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
796
775
  const cwd = loadedConfig.cwd || process.cwd();
797
776
  if (loadedConfig.logging != null) {
798
777
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
@@ -930,7 +909,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
930
909
  if (reporting) {
931
910
  registryConfig.reporting = reporting;
932
911
  }
933
- const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
912
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
934
913
  const cwd = loadedConfig.cwd || process.cwd();
935
914
  if (loadedConfig.logging != null) {
936
915
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
@@ -1164,7 +1143,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
1164
1143
  if (reporting) {
1165
1144
  registryConfig.reporting = reporting;
1166
1145
  }
1167
- const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
1146
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
1168
1147
  const cwd = loadedConfig.cwd || process.cwd();
1169
1148
  if (loadedConfig.logging != null) {
1170
1149
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
package/dist/index.cjs CHANGED
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-CPxULGJb.cjs');
3
+ var cli = require('./cli-DqXsx5Cd.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');
7
7
  var pluginJwtAuth = require('@graphql-mesh/plugin-jwt-auth');
8
+ var pluginOpentelemetry = require('@graphql-mesh/plugin-opentelemetry');
8
9
  var pluginPrometheus = require('@graphql-mesh/plugin-prometheus');
9
10
  var pluginRateLimit = require('@graphql-mesh/plugin-rate-limit');
10
11
  var pluginHttpCache = require('@graphql-mesh/plugin-http-cache');
@@ -58,10 +59,6 @@ exports.getBuiltinPluginsFromConfig = cli.getBuiltinPluginsFromConfig;
58
59
  exports.getCacheInstanceFromConfig = cli.getCacheInstanceFromConfig;
59
60
  exports.handleNodeWarnings = cli.handleNodeWarnings;
60
61
  exports.run = cli.run;
61
- Object.defineProperty(exports, "PubSub", {
62
- enumerable: true,
63
- get: function () { return pubsub.PubSub; }
64
- });
65
62
  Object.defineProperty(exports, "usePrometheus", {
66
63
  enumerable: true,
67
64
  get: function () { return pluginPrometheus__default.default; }
@@ -122,12 +119,24 @@ Object.keys(gatewayRuntime).forEach(function (k) {
122
119
  get: function () { return gatewayRuntime[k]; }
123
120
  });
124
121
  });
122
+ Object.keys(pubsub).forEach(function (k) {
123
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
124
+ enumerable: true,
125
+ get: function () { return pubsub[k]; }
126
+ });
127
+ });
125
128
  Object.keys(pluginJwtAuth).forEach(function (k) {
126
129
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
127
130
  enumerable: true,
128
131
  get: function () { return pluginJwtAuth[k]; }
129
132
  });
130
133
  });
134
+ Object.keys(pluginOpentelemetry).forEach(function (k) {
135
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
136
+ enumerable: true,
137
+ get: function () { return pluginOpentelemetry[k]; }
138
+ });
139
+ });
131
140
  Object.keys(pluginPrometheus).forEach(function (k) {
132
141
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
133
142
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -5,13 +5,14 @@ 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 { HivePubSub } from '@graphql-hive/pubsub';
9
- export { PubSub } from '@graphql-hive/pubsub';
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';
13
13
  export * from '@graphql-mesh/plugin-jwt-auth';
14
14
  import { OpenTelemetryGatewayPluginOptions } from '@graphql-mesh/plugin-opentelemetry';
15
+ export * from '@graphql-mesh/plugin-opentelemetry';
15
16
  import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
16
17
  export * from '@graphql-mesh/plugin-prometheus';
17
18
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
@@ -75,9 +76,10 @@ interface ServerConfigSSLCredentials {
75
76
  ssl_prefer_low_memory_usage?: boolean;
76
77
  }
77
78
 
78
- type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>> = (GatewayCLISupergraphConfig<TContext> | GatewayCLISubgraphConfig<TContext> | GatewayCLIProxyConfig<TContext>) & ServerConfig & {
79
+ type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig | GatewayCLIProxyConfig) & ServerConfig & {
79
80
  /**
80
- * Count of workers to spawn.
81
+ * Count of workers to spawn. Defaults to `os.availableParallelism()` when NODE_ENV
82
+ * is "production", otherwise only one (the main) worker.
81
83
  */
82
84
  fork?: number;
83
85
  /**
@@ -89,7 +91,7 @@ type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>
89
91
  */
90
92
  pollingInterval?: number;
91
93
  } & GatewayCLIBuiltinPluginConfig;
92
- interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSupergraph<TContext>, 'supergraph' | 'cache' | 'reporting'> {
94
+ interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supergraph' | 'cache' | 'reporting'> {
93
95
  /**
94
96
  * SDL, path or an URL to the Federation Supergraph.
95
97
  *
@@ -97,7 +99,7 @@ interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Reco
97
99
  *
98
100
  * @default 'supergraph.graphql'
99
101
  */
100
- supergraph?: GatewayConfigSupergraph<TContext>['supergraph'];
102
+ supergraph?: GatewayConfigSupergraph['supergraph'];
101
103
  /** Usage reporting options. */
102
104
  reporting?: GatewayCLIHiveReportingOptions | GatewayGraphOSReportingOptions;
103
105
  }
@@ -115,7 +117,7 @@ interface GatewayCLIHiveReportingOptions extends Omit<GatewayHiveReportingOption
115
117
  */
116
118
  token?: GatewayHiveReportingOptions['token'];
117
119
  }
118
- interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSubgraph<TContext>, 'subgraph' | 'cache'> {
120
+ interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph' | 'cache'> {
119
121
  /**
120
122
  * SDL, path or an URL to the Federation Supergraph.
121
123
  *
@@ -123,17 +125,17 @@ interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record
123
125
  *
124
126
  * @default 'subgraph.graphql'
125
127
  */
126
- subgraph?: GatewayConfigSubgraph<TContext>['subgraph'];
128
+ subgraph?: GatewayConfigSubgraph['subgraph'];
127
129
  }
128
- interface GatewayCLIProxyConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigProxy<TContext>, 'proxy' | 'cache'> {
130
+ interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cache'> {
129
131
  /**
130
132
  * HTTP executor to proxy all incoming requests to another HTTP endpoint.
131
133
  */
132
- proxy?: GatewayConfigProxy<TContext>['proxy'];
134
+ proxy?: GatewayConfigProxy['proxy'];
133
135
  }
134
136
  type KeyValueCacheFactoryFn = (ctx: {
135
137
  log: Logger;
136
- pubsub: HivePubSub;
138
+ pubsub: PubSub;
137
139
  cwd: string;
138
140
  }) => KeyValueCache;
139
141
  interface GatewayCLIBuiltinPluginConfig {
@@ -219,7 +221,7 @@ type GatewayCLIUpstashRedisCacheConfig = {
219
221
  /**
220
222
  * Type helper for defining the config.
221
223
  */
222
- declare function defineConfig<TContext extends Record<string, any> = Record<string, any>>(config: GatewayCLIConfig<TContext>): GatewayCLIConfig<TContext>;
224
+ declare function defineConfig(config: GatewayCLIConfig): GatewayCLIConfig;
223
225
  /** The context of the running program. */
224
226
  interface CLIContext {
225
227
  /** @default new DefaultLogger() */
@@ -319,7 +321,7 @@ declare function enableModuleCachingIfPossible(): void;
319
321
  declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
320
322
  cache: KeyValueCache;
321
323
  log: Logger;
322
- pubsub: HivePubSub;
324
+ pubsub: PubSub;
323
325
  cwd: string;
324
326
  }): Promise<GatewayPlugin[]>;
325
327
  /**
@@ -328,7 +330,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
328
330
  */
329
331
  declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
330
332
  log: Logger;
331
- pubsub: HivePubSub;
333
+ pubsub: PubSub;
332
334
  cwd: string;
333
335
  }): Promise<KeyValueCache>;
334
336
 
package/dist/index.d.ts CHANGED
@@ -5,13 +5,14 @@ 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 { HivePubSub } from '@graphql-hive/pubsub';
9
- export { PubSub } from '@graphql-hive/pubsub';
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';
13
13
  export * from '@graphql-mesh/plugin-jwt-auth';
14
14
  import { OpenTelemetryGatewayPluginOptions } from '@graphql-mesh/plugin-opentelemetry';
15
+ export * from '@graphql-mesh/plugin-opentelemetry';
15
16
  import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
16
17
  export * from '@graphql-mesh/plugin-prometheus';
17
18
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
@@ -75,9 +76,10 @@ interface ServerConfigSSLCredentials {
75
76
  ssl_prefer_low_memory_usage?: boolean;
76
77
  }
77
78
 
78
- type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>> = (GatewayCLISupergraphConfig<TContext> | GatewayCLISubgraphConfig<TContext> | GatewayCLIProxyConfig<TContext>) & ServerConfig & {
79
+ type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig | GatewayCLIProxyConfig) & ServerConfig & {
79
80
  /**
80
- * Count of workers to spawn.
81
+ * Count of workers to spawn. Defaults to `os.availableParallelism()` when NODE_ENV
82
+ * is "production", otherwise only one (the main) worker.
81
83
  */
82
84
  fork?: number;
83
85
  /**
@@ -89,7 +91,7 @@ type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>
89
91
  */
90
92
  pollingInterval?: number;
91
93
  } & GatewayCLIBuiltinPluginConfig;
92
- interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSupergraph<TContext>, 'supergraph' | 'cache' | 'reporting'> {
94
+ interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supergraph' | 'cache' | 'reporting'> {
93
95
  /**
94
96
  * SDL, path or an URL to the Federation Supergraph.
95
97
  *
@@ -97,7 +99,7 @@ interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Reco
97
99
  *
98
100
  * @default 'supergraph.graphql'
99
101
  */
100
- supergraph?: GatewayConfigSupergraph<TContext>['supergraph'];
102
+ supergraph?: GatewayConfigSupergraph['supergraph'];
101
103
  /** Usage reporting options. */
102
104
  reporting?: GatewayCLIHiveReportingOptions | GatewayGraphOSReportingOptions;
103
105
  }
@@ -115,7 +117,7 @@ interface GatewayCLIHiveReportingOptions extends Omit<GatewayHiveReportingOption
115
117
  */
116
118
  token?: GatewayHiveReportingOptions['token'];
117
119
  }
118
- interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSubgraph<TContext>, 'subgraph' | 'cache'> {
120
+ interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph' | 'cache'> {
119
121
  /**
120
122
  * SDL, path or an URL to the Federation Supergraph.
121
123
  *
@@ -123,17 +125,17 @@ interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record
123
125
  *
124
126
  * @default 'subgraph.graphql'
125
127
  */
126
- subgraph?: GatewayConfigSubgraph<TContext>['subgraph'];
128
+ subgraph?: GatewayConfigSubgraph['subgraph'];
127
129
  }
128
- interface GatewayCLIProxyConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigProxy<TContext>, 'proxy' | 'cache'> {
130
+ interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cache'> {
129
131
  /**
130
132
  * HTTP executor to proxy all incoming requests to another HTTP endpoint.
131
133
  */
132
- proxy?: GatewayConfigProxy<TContext>['proxy'];
134
+ proxy?: GatewayConfigProxy['proxy'];
133
135
  }
134
136
  type KeyValueCacheFactoryFn = (ctx: {
135
137
  log: Logger;
136
- pubsub: HivePubSub;
138
+ pubsub: PubSub;
137
139
  cwd: string;
138
140
  }) => KeyValueCache;
139
141
  interface GatewayCLIBuiltinPluginConfig {
@@ -219,7 +221,7 @@ type GatewayCLIUpstashRedisCacheConfig = {
219
221
  /**
220
222
  * Type helper for defining the config.
221
223
  */
222
- declare function defineConfig<TContext extends Record<string, any> = Record<string, any>>(config: GatewayCLIConfig<TContext>): GatewayCLIConfig<TContext>;
224
+ declare function defineConfig(config: GatewayCLIConfig): GatewayCLIConfig;
223
225
  /** The context of the running program. */
224
226
  interface CLIContext {
225
227
  /** @default new DefaultLogger() */
@@ -319,7 +321,7 @@ declare function enableModuleCachingIfPossible(): void;
319
321
  declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
320
322
  cache: KeyValueCache;
321
323
  log: Logger;
322
- pubsub: HivePubSub;
324
+ pubsub: PubSub;
323
325
  cwd: string;
324
326
  }): Promise<GatewayPlugin[]>;
325
327
  /**
@@ -328,7 +330,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
328
330
  */
329
331
  declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
330
332
  log: Logger;
331
- pubsub: HivePubSub;
333
+ pubsub: PubSub;
332
334
  cwd: string;
333
335
  }): Promise<KeyValueCache>;
334
336
 
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
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-CP9iY6tm.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-BG8XaVLT.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
- export { PubSub } from '@graphql-hive/pubsub';
4
+ export * from '@graphql-hive/pubsub';
5
5
  export * from '@graphql-mesh/plugin-jwt-auth';
6
+ export * from '@graphql-mesh/plugin-opentelemetry';
6
7
  export * from '@graphql-mesh/plugin-prometheus';
7
8
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
8
9
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
3
+ "version": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,36 +33,6 @@
33
33
  "default": "./dist/index.js"
34
34
  }
35
35
  },
36
- "./opentelemetry": {
37
- "require": {
38
- "types": "./dist/opentelemetry/index.d.cts",
39
- "default": "./dist/opentelemetry/index.cjs"
40
- },
41
- "import": {
42
- "types": "./dist/opentelemetry/index.d.ts",
43
- "default": "./dist/opentelemetry/index.js"
44
- }
45
- },
46
- "./opentelemetry/api": {
47
- "require": {
48
- "types": "./dist/opentelemetry/api.d.cts",
49
- "default": "./dist/opentelemetry/api.cjs"
50
- },
51
- "import": {
52
- "types": "./dist/opentelemetry/api.d.ts",
53
- "default": "./dist/opentelemetry/api.js"
54
- }
55
- },
56
- "./opentelemetry/setup": {
57
- "require": {
58
- "types": "./dist/opentelemetry/setup.d.cts",
59
- "default": "./dist/opentelemetry/setup.cjs"
60
- },
61
- "import": {
62
- "types": "./dist/opentelemetry/setup.d.ts",
63
- "default": "./dist/opentelemetry/setup.js"
64
- }
65
- },
66
36
  "./package.json": "./package.json"
67
37
  },
68
38
  "files": [
@@ -83,28 +53,28 @@
83
53
  "@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
84
54
  "@escape.tech/graphql-armor-max-depth": "^2.4.0",
85
55
  "@escape.tech/graphql-armor-max-tokens": "^2.5.0",
86
- "@graphql-hive/gateway-runtime": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
87
- "@graphql-hive/importer": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
88
- "@graphql-hive/logger": "1.0.1-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
89
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
90
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
91
- "@graphql-hive/pubsub": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
56
+ "@graphql-hive/gateway-runtime": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
57
+ "@graphql-hive/importer": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
58
+ "@graphql-hive/logger": "1.0.1-next-b87b2d63584346f34d952e49232538f2126fbd34",
59
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
60
+ "@graphql-hive/plugin-deduplicate-request": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
61
+ "@graphql-hive/pubsub": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
92
62
  "@graphql-mesh/cache-cfw-kv": "^0.105.8",
93
63
  "@graphql-mesh/cache-localforage": "^0.105.9",
94
64
  "@graphql-mesh/cache-redis": "^0.104.8",
95
65
  "@graphql-mesh/cache-upstash-redis": "^0.1.8",
96
66
  "@graphql-mesh/cross-helpers": "^0.4.10",
97
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
67
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
98
68
  "@graphql-mesh/plugin-http-cache": "^0.105.8",
99
69
  "@graphql-mesh/plugin-jit": "^0.2.7",
100
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
101
- "@graphql-mesh/plugin-opentelemetry": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
102
- "@graphql-mesh/plugin-prometheus": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
70
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
71
+ "@graphql-mesh/plugin-opentelemetry": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
72
+ "@graphql-mesh/plugin-prometheus": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
103
73
  "@graphql-mesh/plugin-rate-limit": "^0.104.7",
104
74
  "@graphql-mesh/plugin-snapshot": "^0.104.7",
105
- "@graphql-mesh/transport-http": "1.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
106
- "@graphql-mesh/transport-http-callback": "1.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
107
- "@graphql-mesh/transport-ws": "2.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
75
+ "@graphql-mesh/transport-http": "1.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
76
+ "@graphql-mesh/transport-http-callback": "1.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
77
+ "@graphql-mesh/transport-ws": "2.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
108
78
  "@graphql-mesh/types": "^0.104.8",
109
79
  "@graphql-mesh/utils": "^0.104.8",
110
80
  "@graphql-tools/code-file-loader": "^8.1.22",
@@ -133,7 +103,7 @@
133
103
  "ws": "^8.18.3"
134
104
  },
135
105
  "devDependencies": {
136
- "@graphql-mesh/transport-common": "1.0.0-next-644c389eef9f770fab018ad7bfc5f099c0fbedda",
106
+ "@graphql-mesh/transport-common": "1.0.0-next-b87b2d63584346f34d952e49232538f2126fbd34",
137
107
  "@graphql-mesh/transport-soap": "^0.10.8",
138
108
  "@graphql-tools/executor": "^1.4.9",
139
109
  "@rollup/plugin-commonjs": "^28.0.0",