@graphql-hive/gateway 2.1.18 → 2.1.19-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3

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,5 +1,15 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
+ ## 2.1.19-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#1719](https://github.com/graphql-hive/gateway/pull/1719) [`b449b05`](https://github.com/graphql-hive/gateway/commit/b449b0523eb1aef32235bdd74f1aacaa750f67c6) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Built-in Prometheus plugin inherits the logger from context
9
+
10
+ - Updated dependencies [[`b449b05`](https://github.com/graphql-hive/gateway/commit/b449b0523eb1aef32235bdd74f1aacaa750f67c6), [`b449b05`](https://github.com/graphql-hive/gateway/commit/b449b0523eb1aef32235bdd74f1aacaa750f67c6)]:
11
+ - @graphql-mesh/plugin-prometheus@2.1.5-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3
12
+
3
13
  ## 2.1.18
4
14
  ### Patch Changes
5
15
 
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-DASXVDj7.cjs');
6
+ var cli = require('./cli-B-xjzGm6.cjs');
7
7
  require('node:cluster');
8
8
  require('node:os');
9
9
  require('node:path');
@@ -28,7 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
28
 
29
29
  var module__default = /*#__PURE__*/_interopDefault(module$1);
30
30
 
31
- globalThis.__VERSION__ = '2.1.18';
31
+ globalThis.__VERSION__ = '2.1.19-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3';
32
32
  module__default.default.register("@graphql-hive/importer/hooks", {
33
33
  parentURL: (
34
34
  // @ts-ignore bob will complain when bundling for cjs
package/dist/bin.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import 'dotenv/config';
3
- import module from 'node:module';
3
+ import module$1 from 'node:module';
4
4
  import { Logger } from '@graphql-hive/logger';
5
- import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-CbgzxdMx.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-iuPgpffC.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -22,8 +22,8 @@ import '@graphql-tools/code-file-loader';
22
22
  import '@graphql-tools/graphql-file-loader';
23
23
  import '@graphql-tools/load';
24
24
 
25
- globalThis.__VERSION__ = '2.1.18';
26
- module.register("@graphql-hive/importer/hooks", {
25
+ globalThis.__VERSION__ = '2.1.19-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3';
26
+ module$1.register("@graphql-hive/importer/hooks", {
27
27
  parentURL: (
28
28
  // @ts-ignore bob will complain when bundling for cjs
29
29
  import.meta.url
@@ -180,7 +180,7 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
180
180
  }
181
181
  if (config.prometheus) {
182
182
  const { default: useMeshPrometheus } = await import('@graphql-mesh/plugin-prometheus');
183
- plugins.push(useMeshPrometheus(config.prometheus));
183
+ plugins.push(useMeshPrometheus({ ...config.prometheus, log: ctx.log }));
184
184
  }
185
185
  if (config.openTelemetry) {
186
186
  const { useOpenTelemetry } = await import('@graphql-hive/plugin-opentelemetry');
@@ -1,5 +1,5 @@
1
1
  import cluster from 'node:cluster';
2
- import module from 'node:module';
2
+ import module$1 from 'node:module';
3
3
  import { availableParallelism, freemem, platform, release } from 'node:os';
4
4
  import { join, isAbsolute, resolve } from 'node:path';
5
5
  import { Option, Command, InvalidArgumentError } from '@commander-js/extra-typings';
@@ -173,7 +173,7 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
173
173
  }
174
174
  if (config.prometheus) {
175
175
  const { default: useMeshPrometheus } = await import('@graphql-mesh/plugin-prometheus');
176
- plugins.push(useMeshPrometheus(config.prometheus));
176
+ plugins.push(useMeshPrometheus({ ...config.prometheus, log: ctx.log }));
177
177
  }
178
178
  if (config.openTelemetry) {
179
179
  const { useOpenTelemetry } = await import('@graphql-hive/plugin-opentelemetry');
@@ -1579,8 +1579,8 @@ function enableModuleCachingIfPossible() {
1579
1579
  if (globalThis.__PACKED_DEPS_PATH__) {
1580
1580
  cacheDir = join(globalThis.__PACKED_DEPS_PATH__, "node-compile-cache");
1581
1581
  }
1582
- if (module.enableCompileCache) {
1583
- module.enableCompileCache(cacheDir);
1582
+ if (module$1.enableCompileCache) {
1583
+ module$1.enableCompileCache(cacheDir);
1584
1584
  }
1585
1585
  }
1586
1586
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-DASXVDj7.cjs');
3
+ var cli = require('./cli-B-xjzGm6.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-CbgzxdMx.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-iuPgpffC.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
4
  export * from '@graphql-hive/pubsub';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.1.18",
3
+ "version": "2.1.19-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -99,7 +99,7 @@
99
99
  "@graphql-mesh/plugin-http-cache": "^0.105.17",
100
100
  "@graphql-mesh/plugin-jit": "^0.2.16",
101
101
  "@graphql-mesh/plugin-jwt-auth": "^2.0.9",
102
- "@graphql-mesh/plugin-prometheus": "^2.1.4",
102
+ "@graphql-mesh/plugin-prometheus": "2.1.5-rc-5f3b1c504d18b46bb1a276f751611f507b22e7f3",
103
103
  "@graphql-mesh/plugin-rate-limit": "^0.105.5",
104
104
  "@graphql-mesh/plugin-snapshot": "^0.104.16",
105
105
  "@graphql-mesh/transport-http": "^1.0.12",