@graphql-hive/gateway 2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13 → 2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
3
+ ## 2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -65,20 +65,20 @@
65
65
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
66
66
  - Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
67
67
 
68
- - Updated dependencies [[`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`5f4e71e`](https://github.com/graphql-hive/gateway/commit/5f4e71e0745b239dbfa6e51449e15fe1c9e248cc), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`4e73586`](https://github.com/graphql-hive/gateway/commit/4e73586b870ce64a1024f1a1bd45a86c161d8e00), [`f02dc3f`](https://github.com/graphql-hive/gateway/commit/f02dc3f05751bc9c8c2d743cf32c29f2e44ad37d), [`134630c`](https://github.com/graphql-hive/gateway/commit/134630c6e5665dd6e8f52e23d365df30a42d3737), [`d4c78bc`](https://github.com/graphql-hive/gateway/commit/d4c78bc44c6d9d30b9ee7b11951cc5664b3e3051), [`1a76bd5`](https://github.com/graphql-hive/gateway/commit/1a76bd5dd56a2d4d6f17c958687b51fa4d9e7212), [`bf679f8`](https://github.com/graphql-hive/gateway/commit/bf679f89c8b170360562a8d60502d4481333ce1f), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`0d2700b`](https://github.com/graphql-hive/gateway/commit/0d2700bb9c2577445fa5e74cbecfa10d09fbd7c4), [`e03bae3`](https://github.com/graphql-hive/gateway/commit/e03bae3bf2727e1d402b994051e2e2f6ce021de9), [`fcedfa6`](https://github.com/graphql-hive/gateway/commit/fcedfa636ce98d4a1fbdaa501792b2e3446d9dd5), [`0511168`](https://github.com/graphql-hive/gateway/commit/0511168786cef39d26b73f447b7c0f72320ff137), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`672045c`](https://github.com/graphql-hive/gateway/commit/672045c18a1aec130d06d9b09bd29f512d0d9244), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`d6de3df`](https://github.com/graphql-hive/gateway/commit/d6de3dfebe3cde499705fe89f17b1f0eeae368d0)]:
69
- - @graphql-hive/gateway-runtime@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
70
- - @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
71
- - @graphql-mesh/plugin-prometheus@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
72
- - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
73
- - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
74
- - @graphql-mesh/transport-http-callback@1.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
75
- - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
76
- - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
77
- - @graphql-mesh/transport-http@1.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
78
- - @graphql-mesh/transport-ws@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
79
- - @graphql-hive/importer@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
80
- - @graphql-hive/pubsub@2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
81
- - @graphql-hive/logger@1.0.1-alpha-572407000830b7aef9d4d7def6fa8139009a9e13
68
+ - Updated dependencies [[`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`4e73586`](https://github.com/graphql-hive/gateway/commit/4e73586b870ce64a1024f1a1bd45a86c161d8e00), [`f02dc3f`](https://github.com/graphql-hive/gateway/commit/f02dc3f05751bc9c8c2d743cf32c29f2e44ad37d), [`134630c`](https://github.com/graphql-hive/gateway/commit/134630c6e5665dd6e8f52e23d365df30a42d3737), [`1a76bd5`](https://github.com/graphql-hive/gateway/commit/1a76bd5dd56a2d4d6f17c958687b51fa4d9e7212), [`bf679f8`](https://github.com/graphql-hive/gateway/commit/bf679f89c8b170360562a8d60502d4481333ce1f), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069), [`daaf096`](https://github.com/graphql-hive/gateway/commit/daaf0962bc5c47964e9b8e03b72baf2a22a1f973), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`0d2700b`](https://github.com/graphql-hive/gateway/commit/0d2700bb9c2577445fa5e74cbecfa10d09fbd7c4), [`e03bae3`](https://github.com/graphql-hive/gateway/commit/e03bae3bf2727e1d402b994051e2e2f6ce021de9), [`fcedfa6`](https://github.com/graphql-hive/gateway/commit/fcedfa636ce98d4a1fbdaa501792b2e3446d9dd5), [`0511168`](https://github.com/graphql-hive/gateway/commit/0511168786cef39d26b73f447b7c0f72320ff137), [`3866620`](https://github.com/graphql-hive/gateway/commit/386662023b82d10d97ac870ad72ff142ae341914), [`672045c`](https://github.com/graphql-hive/gateway/commit/672045c18a1aec130d06d9b09bd29f512d0d9244), [`80cc25e`](https://github.com/graphql-hive/gateway/commit/80cc25e48fdec28585eb75723ecd0b7307859c5a), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`daaf096`](https://github.com/graphql-hive/gateway/commit/daaf0962bc5c47964e9b8e03b72baf2a22a1f973), [`d6de3df`](https://github.com/graphql-hive/gateway/commit/d6de3dfebe3cde499705fe89f17b1f0eeae368d0)]:
69
+ - @graphql-hive/gateway-runtime@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
70
+ - @graphql-mesh/plugin-opentelemetry@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
71
+ - @graphql-mesh/plugin-prometheus@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
72
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
73
+ - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
74
+ - @graphql-mesh/transport-http-callback@1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
75
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
76
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
77
+ - @graphql-mesh/transport-http@1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
78
+ - @graphql-mesh/transport-ws@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
79
+ - @graphql-hive/importer@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
80
+ - @graphql-hive/pubsub@2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
81
+ - @graphql-hive/logger@1.0.1-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c
82
82
 
83
83
  ## 1.16.3
84
84
 
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-Cm9aDkDW.cjs');
6
+ var cli = require('./cli-Q6g0zEwm.cjs');
7
7
  require('node:cluster');
8
8
  require('node:os');
9
9
  require('node:path');
@@ -14,6 +14,7 @@ require('@graphql-hive/pubsub');
14
14
  require('@graphql-mesh/utils');
15
15
  require('node:fs/promises');
16
16
  require('node:url');
17
+ require('@graphql-hive/pubsub/mesh');
17
18
  require('node:fs');
18
19
  require('node:http');
19
20
  require('node:https');
package/dist/bin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import 'dotenv/config';
3
3
  import module from 'node:module';
4
4
  import { Logger } from '@graphql-hive/logger';
5
- import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-BPJkk_8e.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-CTfJaUPF.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -13,6 +13,7 @@ import '@graphql-hive/pubsub';
13
13
  import '@graphql-mesh/utils';
14
14
  import 'node:fs/promises';
15
15
  import 'node:url';
16
+ import '@graphql-hive/pubsub/mesh';
16
17
  import 'node:fs';
17
18
  import 'node:http';
18
19
  import 'node:https';
@@ -6,10 +6,11 @@ import { Option, Command, InvalidArgumentError } from '@commander-js/extra-typin
6
6
  import { LegacyLogger, Logger } from '@graphql-hive/logger';
7
7
  import { renderGraphiQL } from '@graphql-yoga/render-graphiql';
8
8
  import { getGraphQLWSOptions, createLoggerFromLogging, createGatewayRuntime } from '@graphql-hive/gateway-runtime';
9
- import { 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';
13
+ import { MeshPubSub } from '@graphql-hive/pubsub/mesh';
13
14
  import { promises } from 'node:fs';
14
15
  import { createServer as createServer$1 } from 'node:http';
15
16
  import { createServer } from 'node:https';
@@ -235,7 +236,9 @@ async function getCacheInstanceFromConfig(config, ctx) {
235
236
  ...ctx,
236
237
  ...config.cache,
237
238
  // TODO: use new logger
238
- logger: LegacyLogger.from(ctx.log)
239
+ logger: LegacyLogger.from(ctx.log),
240
+ // TODO: use new pubsub
241
+ pubsub: MeshPubSub.from(ctx.pubsub)
239
242
  });
240
243
  }
241
244
  case "cfw-kv": {
@@ -262,14 +265,20 @@ async function getCacheInstanceFromConfig(config, ctx) {
262
265
  const { default: LocalforageCache2 } = await import('@graphql-mesh/cache-localforage');
263
266
  return new LocalforageCache2({
264
267
  ...ctx,
265
- ...config.cache
268
+ ...config.cache,
269
+ // TODO: use new pubsub
270
+ pubsub: MeshPubSub.from(ctx.pubsub)
266
271
  });
267
272
  }
268
273
  if (config.cache) {
269
274
  return config.cache;
270
275
  }
271
276
  const { default: LocalforageCache } = await import('@graphql-mesh/cache-localforage');
272
- return new LocalforageCache(ctx);
277
+ return new LocalforageCache({
278
+ ...ctx,
279
+ // TODO: use new pubsub
280
+ pubsub: MeshPubSub.from(ctx.pubsub)
281
+ });
273
282
  }
274
283
 
275
284
  async function startBunServer(gwRuntime, opts) {
@@ -764,7 +773,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
764
773
  if (reporting) {
765
774
  registryConfig.reporting = reporting;
766
775
  }
767
- const pubsub = loadedConfig.pubsub || new PubSub();
776
+ const pubsub = loadedConfig.pubsub || new MemPubSub();
768
777
  const cwd = loadedConfig.cwd || process.cwd();
769
778
  if (loadedConfig.logging != null) {
770
779
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -902,7 +911,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
902
911
  if (reporting) {
903
912
  registryConfig.reporting = reporting;
904
913
  }
905
- const pubsub = loadedConfig.pubsub || new PubSub();
914
+ const pubsub = loadedConfig.pubsub || new MemPubSub();
906
915
  const cwd = loadedConfig.cwd || process.cwd();
907
916
  if (loadedConfig.logging != null) {
908
917
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -1136,7 +1145,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
1136
1145
  if (reporting) {
1137
1146
  registryConfig.reporting = reporting;
1138
1147
  }
1139
- const pubsub = loadedConfig.pubsub || new PubSub();
1148
+ const pubsub = loadedConfig.pubsub || new MemPubSub();
1140
1149
  const cwd = loadedConfig.cwd || process.cwd();
1141
1150
  if (loadedConfig.logging != null) {
1142
1151
  ctx.log = createLoggerFromLogging(loadedConfig.logging);
@@ -12,6 +12,7 @@ var pubsub = require('@graphql-hive/pubsub');
12
12
  var utils = require('@graphql-mesh/utils');
13
13
  var promises = require('node:fs/promises');
14
14
  var node_url = require('node:url');
15
+ var mesh = require('@graphql-hive/pubsub/mesh');
15
16
  var node_fs = require('node:fs');
16
17
  var node_http = require('node:http');
17
18
  var node_https = require('node:https');
@@ -242,7 +243,9 @@ async function getCacheInstanceFromConfig(config, ctx) {
242
243
  ...ctx,
243
244
  ...config.cache,
244
245
  // TODO: use new logger
245
- logger: logger.LegacyLogger.from(ctx.log)
246
+ logger: logger.LegacyLogger.from(ctx.log),
247
+ // TODO: use new pubsub
248
+ pubsub: mesh.MeshPubSub.from(ctx.pubsub)
246
249
  });
247
250
  }
248
251
  case "cfw-kv": {
@@ -269,14 +272,20 @@ async function getCacheInstanceFromConfig(config, ctx) {
269
272
  const { default: LocalforageCache2 } = await import('@graphql-mesh/cache-localforage');
270
273
  return new LocalforageCache2({
271
274
  ...ctx,
272
- ...config.cache
275
+ ...config.cache,
276
+ // TODO: use new pubsub
277
+ pubsub: mesh.MeshPubSub.from(ctx.pubsub)
273
278
  });
274
279
  }
275
280
  if (config.cache) {
276
281
  return config.cache;
277
282
  }
278
283
  const { default: LocalforageCache } = await import('@graphql-mesh/cache-localforage');
279
- return new LocalforageCache(ctx);
284
+ return new LocalforageCache({
285
+ ...ctx,
286
+ // TODO: use new pubsub
287
+ pubsub: mesh.MeshPubSub.from(ctx.pubsub)
288
+ });
280
289
  }
281
290
 
282
291
  async function startBunServer(gwRuntime, opts) {
@@ -771,7 +780,7 @@ const addCommand$2 = (ctx, cli) => cli.command("proxy").description(
771
780
  if (reporting) {
772
781
  registryConfig.reporting = reporting;
773
782
  }
774
- const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
783
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
775
784
  const cwd = loadedConfig.cwd || process.cwd();
776
785
  if (loadedConfig.logging != null) {
777
786
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
@@ -909,7 +918,7 @@ const addCommand$1 = (ctx, cli) => cli.command("subgraph").description(
909
918
  if (reporting) {
910
919
  registryConfig.reporting = reporting;
911
920
  }
912
- const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
921
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
913
922
  const cwd = loadedConfig.cwd || process.cwd();
914
923
  if (loadedConfig.logging != null) {
915
924
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
@@ -1143,7 +1152,7 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
1143
1152
  if (reporting) {
1144
1153
  registryConfig.reporting = reporting;
1145
1154
  }
1146
- const pubsub$1 = loadedConfig.pubsub || new pubsub.PubSub();
1155
+ const pubsub$1 = loadedConfig.pubsub || new pubsub.MemPubSub();
1147
1156
  const cwd = loadedConfig.cwd || process.cwd();
1148
1157
  if (loadedConfig.logging != null) {
1149
1158
  ctx.log = gatewayRuntime.createLoggerFromLogging(loadedConfig.logging);
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-Cm9aDkDW.cjs');
3
+ var cli = require('./cli-Q6g0zEwm.cjs');
4
4
  var logger = require('@graphql-hive/logger');
5
5
  var gatewayRuntime = require('@graphql-hive/gateway-runtime');
6
6
  var pubsub = require('@graphql-hive/pubsub');
@@ -27,6 +27,7 @@ require('@graphql-yoga/render-graphiql');
27
27
  require('@graphql-mesh/utils');
28
28
  require('node:fs/promises');
29
29
  require('node:url');
30
+ require('@graphql-hive/pubsub/mesh');
30
31
  require('node:fs');
31
32
  require('node:http');
32
33
  require('node:https');
@@ -59,10 +60,6 @@ exports.getBuiltinPluginsFromConfig = cli.getBuiltinPluginsFromConfig;
59
60
  exports.getCacheInstanceFromConfig = cli.getCacheInstanceFromConfig;
60
61
  exports.handleNodeWarnings = cli.handleNodeWarnings;
61
62
  exports.run = cli.run;
62
- Object.defineProperty(exports, "PubSub", {
63
- enumerable: true,
64
- get: function () { return pubsub.PubSub; }
65
- });
66
63
  Object.defineProperty(exports, "usePrometheus", {
67
64
  enumerable: true,
68
65
  get: function () { return pluginPrometheus__default.default; }
@@ -123,6 +120,12 @@ Object.keys(gatewayRuntime).forEach(function (k) {
123
120
  get: function () { return gatewayRuntime[k]; }
124
121
  });
125
122
  });
123
+ Object.keys(pubsub).forEach(function (k) {
124
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
125
+ enumerable: true,
126
+ get: function () { return pubsub[k]; }
127
+ });
128
+ });
126
129
  Object.keys(pluginJwtAuth).forEach(function (k) {
127
130
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
128
131
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -5,8 +5,8 @@ export * from '@graphql-hive/gateway-runtime';
5
5
  import { Logger } from '@graphql-hive/logger';
6
6
  export * from '@graphql-hive/logger';
7
7
  import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
8
- import { 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';
@@ -135,7 +135,7 @@ interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cach
135
135
  }
136
136
  type KeyValueCacheFactoryFn = (ctx: {
137
137
  log: Logger;
138
- pubsub: HivePubSub;
138
+ pubsub: PubSub;
139
139
  cwd: string;
140
140
  }) => KeyValueCache;
141
141
  interface GatewayCLIBuiltinPluginConfig {
@@ -321,7 +321,7 @@ declare function enableModuleCachingIfPossible(): void;
321
321
  declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
322
322
  cache: KeyValueCache;
323
323
  log: Logger;
324
- pubsub: HivePubSub;
324
+ pubsub: PubSub;
325
325
  cwd: string;
326
326
  }): Promise<GatewayPlugin[]>;
327
327
  /**
@@ -330,7 +330,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
330
330
  */
331
331
  declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
332
332
  log: Logger;
333
- pubsub: HivePubSub;
333
+ pubsub: PubSub;
334
334
  cwd: string;
335
335
  }): Promise<KeyValueCache>;
336
336
 
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export * from '@graphql-hive/gateway-runtime';
5
5
  import { Logger } from '@graphql-hive/logger';
6
6
  export * from '@graphql-hive/logger';
7
7
  import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
8
- import { 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';
@@ -135,7 +135,7 @@ interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cach
135
135
  }
136
136
  type KeyValueCacheFactoryFn = (ctx: {
137
137
  log: Logger;
138
- pubsub: HivePubSub;
138
+ pubsub: PubSub;
139
139
  cwd: string;
140
140
  }) => KeyValueCache;
141
141
  interface GatewayCLIBuiltinPluginConfig {
@@ -321,7 +321,7 @@ declare function enableModuleCachingIfPossible(): void;
321
321
  declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
322
322
  cache: KeyValueCache;
323
323
  log: Logger;
324
- pubsub: HivePubSub;
324
+ pubsub: PubSub;
325
325
  cwd: string;
326
326
  }): Promise<GatewayPlugin[]>;
327
327
  /**
@@ -330,7 +330,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
330
330
  */
331
331
  declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
332
332
  log: Logger;
333
- pubsub: HivePubSub;
333
+ pubsub: PubSub;
334
334
  cwd: string;
335
335
  }): Promise<KeyValueCache>;
336
336
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-BPJkk_8e.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-CTfJaUPF.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
6
  export * from '@graphql-mesh/plugin-opentelemetry';
7
7
  export * from '@graphql-mesh/plugin-prometheus';
@@ -26,6 +26,7 @@ import '@graphql-yoga/render-graphiql';
26
26
  import '@graphql-mesh/utils';
27
27
  import 'node:fs/promises';
28
28
  import 'node:url';
29
+ import '@graphql-hive/pubsub/mesh';
29
30
  import 'node:fs';
30
31
  import 'node:http';
31
32
  import 'node:https';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
3
+ "version": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
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-572407000830b7aef9d4d7def6fa8139009a9e13",
57
- "@graphql-hive/importer": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
58
- "@graphql-hive/logger": "1.0.1-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
59
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
60
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
61
- "@graphql-hive/pubsub": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
56
+ "@graphql-hive/gateway-runtime": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
57
+ "@graphql-hive/importer": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
58
+ "@graphql-hive/logger": "1.0.1-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
59
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
60
+ "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
61
+ "@graphql-hive/pubsub": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
62
62
  "@graphql-mesh/cache-cfw-kv": "^0.105.7",
63
63
  "@graphql-mesh/cache-localforage": "^0.105.8",
64
64
  "@graphql-mesh/cache-redis": "^0.104.7",
65
65
  "@graphql-mesh/cache-upstash-redis": "^0.1.7",
66
66
  "@graphql-mesh/cross-helpers": "^0.4.10",
67
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
67
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
68
68
  "@graphql-mesh/plugin-http-cache": "^0.105.8",
69
69
  "@graphql-mesh/plugin-jit": "^0.2.7",
70
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
71
- "@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
72
- "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
70
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
71
+ "@graphql-mesh/plugin-opentelemetry": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
72
+ "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
73
73
  "@graphql-mesh/plugin-rate-limit": "^0.104.7",
74
74
  "@graphql-mesh/plugin-snapshot": "^0.104.7",
75
- "@graphql-mesh/transport-http": "1.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
76
- "@graphql-mesh/transport-http-callback": "1.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
77
- "@graphql-mesh/transport-ws": "2.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
75
+ "@graphql-mesh/transport-http": "1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
76
+ "@graphql-mesh/transport-http-callback": "1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
77
+ "@graphql-mesh/transport-ws": "2.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
78
78
  "@graphql-mesh/types": "^0.104.7",
79
79
  "@graphql-mesh/utils": "^0.104.7",
80
80
  "@graphql-tools/code-file-loader": "^8.1.22",
@@ -103,7 +103,7 @@
103
103
  "ws": "^8.18.3"
104
104
  },
105
105
  "devDependencies": {
106
- "@graphql-mesh/transport-common": "1.0.0-alpha-572407000830b7aef9d4d7def6fa8139009a9e13",
106
+ "@graphql-mesh/transport-common": "1.0.0-alpha-aa04af03f3c2cf380ea03797b9ac60208d022a1c",
107
107
  "@graphql-mesh/transport-soap": "^0.10.8",
108
108
  "@graphql-tools/executor": "^1.4.9",
109
109
  "@rollup/plugin-commonjs": "^28.0.0",