@graphql-hive/gateway 2.1.15 → 2.1.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232
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 +10 -0
- package/dist/bin.cjs +2 -2
- package/dist/bin.js +2 -2
- package/dist/{cli-gUW0MxIg.js → cli-DRosZbt4.js} +26 -1
- package/dist/{cli-CBqDMDbH.cjs → cli-DvW3QCGR.cjs} +26 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @graphql-hive/gateway
|
|
2
2
|
|
|
3
|
+
## 2.1.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies []:
|
|
7
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232
|
|
8
|
+
- @graphql-hive/gateway-runtime@2.3.4-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232
|
|
9
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.7
|
|
10
|
+
- @graphql-hive/plugin-opentelemetry@1.1.2-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232
|
|
11
|
+
- @graphql-mesh/plugin-prometheus@2.1.2-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232
|
|
12
|
+
|
|
3
13
|
## 2.1.15
|
|
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-
|
|
6
|
+
var cli = require('./cli-DvW3QCGR.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.
|
|
31
|
+
globalThis.__VERSION__ = '2.1.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232';
|
|
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
|
@@ -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-
|
|
5
|
+
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-DRosZbt4.js';
|
|
6
6
|
import 'node:cluster';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:path';
|
|
@@ -22,7 +22,7 @@ import '@graphql-tools/code-file-loader';
|
|
|
22
22
|
import '@graphql-tools/graphql-file-loader';
|
|
23
23
|
import '@graphql-tools/load';
|
|
24
24
|
|
|
25
|
-
globalThis.__VERSION__ = '2.1.
|
|
25
|
+
globalThis.__VERSION__ = '2.1.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232';
|
|
26
26
|
module.register("@graphql-hive/importer/hooks", {
|
|
27
27
|
parentURL: (
|
|
28
28
|
// @ts-ignore bob will complain when bundling for cjs
|
|
@@ -1039,7 +1039,19 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
|
1039
1039
|
"--apollo-uplink <uplink>",
|
|
1040
1040
|
"The URL of the managed federation up link. When retrying after a failure, you should cycle through the default up links using this option."
|
|
1041
1041
|
).env("APOLLO_SCHEMA_CONFIG_DELIVERY_ENDPOINT")
|
|
1042
|
-
).
|
|
1042
|
+
).addOption(
|
|
1043
|
+
new Option(
|
|
1044
|
+
"--hive-router-runtime",
|
|
1045
|
+
"Use the Hive Router runtime for query planning and execution (env: HIVE_ROUTER_RUNTIME)"
|
|
1046
|
+
).env("HIVE_ROUTER_RUNTIME")
|
|
1047
|
+
).on("optionEnv:hive-router-runtime", function() {
|
|
1048
|
+
this.setOptionValueWithSource(
|
|
1049
|
+
"hiveRouterRuntime",
|
|
1050
|
+
// must be camelCase
|
|
1051
|
+
getEnvBool("HIVE_ROUTER_RUNTIME"),
|
|
1052
|
+
"env"
|
|
1053
|
+
);
|
|
1054
|
+
}).action(async function supergraph(schemaPathOrUrl) {
|
|
1043
1055
|
const {
|
|
1044
1056
|
opentelemetry,
|
|
1045
1057
|
opentelemetryExporterType,
|
|
@@ -1207,6 +1219,19 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
|
1207
1219
|
return [...builtinPlugins, ...userPlugins];
|
|
1208
1220
|
}
|
|
1209
1221
|
};
|
|
1222
|
+
if (opts.hiveRouterRuntime && !config.unifiedGraphHandler) {
|
|
1223
|
+
ctx.log.warn("Using Hive Router Runtime");
|
|
1224
|
+
try {
|
|
1225
|
+
ctx.log.debug("Loading @graphql-hive/router-runtime package");
|
|
1226
|
+
const moduleName = "@graphql-hive/router-runtime";
|
|
1227
|
+
const { unifiedGraphHandler } = await import(moduleName);
|
|
1228
|
+
config.unifiedGraphHandler ||= unifiedGraphHandler;
|
|
1229
|
+
} catch (e) {
|
|
1230
|
+
ctx.log.warn(
|
|
1231
|
+
"Could not load the @graphql-hive/router-runtime package. Please install it to use the Router Runtime. Falling back to the default runtime."
|
|
1232
|
+
);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1210
1235
|
if (hivePersistedDocumentsEndpoint) {
|
|
1211
1236
|
const token = hivePersistedDocumentsToken || loadedConfig.persistedDocuments && "token" in loadedConfig.persistedDocuments && loadedConfig.persistedDocuments.token;
|
|
1212
1237
|
if (!token) {
|
|
@@ -1046,7 +1046,19 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
|
1046
1046
|
"--apollo-uplink <uplink>",
|
|
1047
1047
|
"The URL of the managed federation up link. When retrying after a failure, you should cycle through the default up links using this option."
|
|
1048
1048
|
).env("APOLLO_SCHEMA_CONFIG_DELIVERY_ENDPOINT")
|
|
1049
|
-
).
|
|
1049
|
+
).addOption(
|
|
1050
|
+
new extraTypings.Option(
|
|
1051
|
+
"--hive-router-runtime",
|
|
1052
|
+
"Use the Hive Router runtime for query planning and execution (env: HIVE_ROUTER_RUNTIME)"
|
|
1053
|
+
).env("HIVE_ROUTER_RUNTIME")
|
|
1054
|
+
).on("optionEnv:hive-router-runtime", function() {
|
|
1055
|
+
this.setOptionValueWithSource(
|
|
1056
|
+
"hiveRouterRuntime",
|
|
1057
|
+
// must be camelCase
|
|
1058
|
+
getEnvBool("HIVE_ROUTER_RUNTIME"),
|
|
1059
|
+
"env"
|
|
1060
|
+
);
|
|
1061
|
+
}).action(async function supergraph(schemaPathOrUrl) {
|
|
1050
1062
|
const {
|
|
1051
1063
|
opentelemetry,
|
|
1052
1064
|
opentelemetryExporterType,
|
|
@@ -1214,6 +1226,19 @@ const addCommand = (ctx, cli) => cli.command("supergraph").description(
|
|
|
1214
1226
|
return [...builtinPlugins, ...userPlugins];
|
|
1215
1227
|
}
|
|
1216
1228
|
};
|
|
1229
|
+
if (opts.hiveRouterRuntime && !config.unifiedGraphHandler) {
|
|
1230
|
+
ctx.log.warn("Using Hive Router Runtime");
|
|
1231
|
+
try {
|
|
1232
|
+
ctx.log.debug("Loading @graphql-hive/router-runtime package");
|
|
1233
|
+
const moduleName = "@graphql-hive/router-runtime";
|
|
1234
|
+
const { unifiedGraphHandler } = await import(moduleName);
|
|
1235
|
+
config.unifiedGraphHandler ||= unifiedGraphHandler;
|
|
1236
|
+
} catch (e) {
|
|
1237
|
+
ctx.log.warn(
|
|
1238
|
+
"Could not load the @graphql-hive/router-runtime package. Please install it to use the Router Runtime. Falling back to the default runtime."
|
|
1239
|
+
);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1217
1242
|
if (hivePersistedDocumentsEndpoint) {
|
|
1218
1243
|
const token = hivePersistedDocumentsToken || loadedConfig.persistedDocuments && "token" in loadedConfig.persistedDocuments && loadedConfig.persistedDocuments.token;
|
|
1219
1244
|
if (!token) {
|
package/dist/index.cjs
CHANGED
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-
|
|
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-DRosZbt4.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.
|
|
3
|
+
"version": "2.1.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
"build": "pkgroll --clean-dist && tsx scripts/inject-version",
|
|
73
73
|
"bundle": "rimraf bundle && rollup -c && rollup -c rollup.config.binary.js",
|
|
74
74
|
"prepack": "yarn build",
|
|
75
|
-
"start": "tsx src/bin.ts"
|
|
75
|
+
"start": "tsx src/bin.ts",
|
|
76
|
+
"start:inspect": "node --import tsx --inspect src/bin.ts"
|
|
76
77
|
},
|
|
77
78
|
"peerDependencies": {
|
|
78
79
|
"graphql": "^15.9.0 || ^16.9.0"
|
|
@@ -83,11 +84,11 @@
|
|
|
83
84
|
"@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
|
|
84
85
|
"@escape.tech/graphql-armor-max-depth": "^2.4.2",
|
|
85
86
|
"@escape.tech/graphql-armor-max-tokens": "^2.5.0",
|
|
86
|
-
"@graphql-hive/gateway-runtime": "
|
|
87
|
+
"@graphql-hive/gateway-runtime": "2.3.4-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232",
|
|
87
88
|
"@graphql-hive/importer": "^2.0.0",
|
|
88
89
|
"@graphql-hive/logger": "^1.0.8",
|
|
89
|
-
"@graphql-hive/plugin-aws-sigv4": "
|
|
90
|
-
"@graphql-hive/plugin-opentelemetry": "
|
|
90
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.16-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232",
|
|
91
|
+
"@graphql-hive/plugin-opentelemetry": "1.1.2-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232",
|
|
91
92
|
"@graphql-hive/pubsub": "^2.1.1",
|
|
92
93
|
"@graphql-mesh/cache-cfw-kv": "^0.105.16",
|
|
93
94
|
"@graphql-mesh/cache-localforage": "^0.105.17",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"@graphql-mesh/plugin-http-cache": "^0.105.17",
|
|
99
100
|
"@graphql-mesh/plugin-jit": "^0.2.16",
|
|
100
101
|
"@graphql-mesh/plugin-jwt-auth": "^2.0.9",
|
|
101
|
-
"@graphql-mesh/plugin-prometheus": "
|
|
102
|
+
"@graphql-mesh/plugin-prometheus": "2.1.2-alpha-571bfdbc8753ac98190e44caff4e5d28038ee232",
|
|
102
103
|
"@graphql-mesh/plugin-rate-limit": "^0.105.5",
|
|
103
104
|
"@graphql-mesh/plugin-snapshot": "^0.104.16",
|
|
104
105
|
"@graphql-mesh/transport-http": "^1.0.11",
|