@graphql-hive/gateway 2.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e → 2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
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 +7 -16
- package/dist/bin.cjs +2 -2
- package/dist/bin.js +2 -2
- package/dist/{cli-BYCLUGLV.js → cli-DgZZk0HC.js} +3 -3
- package/dist/{cli-Bmg2AY5W.cjs → cli-I11XGX7K.cjs} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
@@ -1,24 +1,15 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.1-
|
3
|
+
## 2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
|
4
4
|
### Patch Changes
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
-
|
9
|
-
|
10
|
-
|
11
|
-
- Updated dependencies [[`953a49d`](https://github.com/graphql-hive/gateway/commit/953a49df53fab290a4b250485e9ef8e951ab52f9), [`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893), [`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893), [`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893)]:
|
12
|
-
- @graphql-hive/pubsub@2.1.0-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
13
|
-
- @graphql-hive/plugin-opentelemetry@1.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
14
|
-
- @graphql-mesh/plugin-jwt-auth@2.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
15
|
-
- @graphql-hive/gateway-runtime@2.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
16
|
-
- @graphql-hive/plugin-aws-sigv4@2.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
6
|
+
- Updated dependencies [[`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893), [`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893), [`65eef45`](https://github.com/graphql-hive/gateway/commit/65eef45eb372f20afa7907a2be1c9cef345bb893)]:
|
7
|
+
- @graphql-hive/plugin-opentelemetry@1.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
|
8
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
|
9
|
+
- @graphql-hive/gateway-runtime@2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
|
10
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0
|
17
11
|
- @graphql-mesh/hmac-upstream-signature@2.0.0
|
18
|
-
- @graphql-mesh/plugin-prometheus@2.0.1-
|
19
|
-
- @graphql-mesh/transport-http@1.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
20
|
-
- @graphql-mesh/transport-http-callback@1.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
21
|
-
- @graphql-mesh/transport-ws@2.0.1-alpha-12dfaa8d8eb561f3ba9b300b0620d1a5f44cfc9e
|
12
|
+
- @graphql-mesh/plugin-prometheus@2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
|
22
13
|
|
23
14
|
## 2.0.0
|
24
15
|
### Major Changes
|
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-I11XGX7K.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.0.1-
|
31
|
+
globalThis.__VERSION__ = '2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941';
|
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-DgZZk0HC.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.0.1-
|
25
|
+
globalThis.__VERSION__ = '2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941';
|
26
26
|
module.register("@graphql-hive/importer/hooks", {
|
27
27
|
parentURL: (
|
28
28
|
// @ts-ignore bob will complain when bundling for cjs
|
@@ -196,7 +196,7 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
|
|
196
196
|
const { useAWSSigv4 } = await import('@graphql-hive/plugin-aws-sigv4');
|
197
197
|
plugins.push(useAWSSigv4(config.awsSigv4));
|
198
198
|
}
|
199
|
-
if (config.maxTokens) {
|
199
|
+
if (config.maxTokens || config.maxTokens === void 0) {
|
200
200
|
const { maxTokensPlugin: useMaxTokens } = await import('@escape.tech/graphql-armor-max-tokens');
|
201
201
|
const maxTokensPlugin = useMaxTokens({
|
202
202
|
n: typeof config.maxTokens === "number" ? config.maxTokens : 1e3
|
@@ -206,10 +206,10 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
|
|
206
206
|
maxTokensPlugin
|
207
207
|
);
|
208
208
|
}
|
209
|
-
if (config.maxDepth) {
|
209
|
+
if (config.maxDepth || config.maxDepth === void 0) {
|
210
210
|
const { maxDepthPlugin: useMaxDepth } = await import('@escape.tech/graphql-armor-max-depth');
|
211
211
|
const maxDepthPlugin = useMaxDepth({
|
212
|
-
n: typeof config.maxDepth === "number" ? config.maxDepth :
|
212
|
+
n: typeof config.maxDepth === "number" ? config.maxDepth : 7
|
213
213
|
});
|
214
214
|
plugins.push(
|
215
215
|
// @ts-expect-error the armor plugin does not inherit the context
|
@@ -203,7 +203,7 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
|
|
203
203
|
const { useAWSSigv4 } = await import('@graphql-hive/plugin-aws-sigv4');
|
204
204
|
plugins.push(useAWSSigv4(config.awsSigv4));
|
205
205
|
}
|
206
|
-
if (config.maxTokens) {
|
206
|
+
if (config.maxTokens || config.maxTokens === void 0) {
|
207
207
|
const { maxTokensPlugin: useMaxTokens } = await import('@escape.tech/graphql-armor-max-tokens');
|
208
208
|
const maxTokensPlugin = useMaxTokens({
|
209
209
|
n: typeof config.maxTokens === "number" ? config.maxTokens : 1e3
|
@@ -213,10 +213,10 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
|
|
213
213
|
maxTokensPlugin
|
214
214
|
);
|
215
215
|
}
|
216
|
-
if (config.maxDepth) {
|
216
|
+
if (config.maxDepth || config.maxDepth === void 0) {
|
217
217
|
const { maxDepthPlugin: useMaxDepth } = await import('@escape.tech/graphql-armor-max-depth');
|
218
218
|
const maxDepthPlugin = useMaxDepth({
|
219
|
-
n: typeof config.maxDepth === "number" ? config.maxDepth :
|
219
|
+
n: typeof config.maxDepth === "number" ? config.maxDepth : 7
|
220
220
|
});
|
221
221
|
plugins.push(
|
222
222
|
// @ts-expect-error the armor plugin does not inherit the context
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
@@ -179,18 +179,18 @@ interface GatewayCLIBuiltinPluginConfig {
|
|
179
179
|
* If you would like more configuration options, please disable this feature and
|
180
180
|
* use the [`@escape.tech/graphql-armor-max-tokens` plugin](https://escape.tech/graphql-armor/docs/plugins/max-tokens/#with-envelopcore-from-the-guild-org) instead.
|
181
181
|
*
|
182
|
-
* @default
|
182
|
+
* @default true
|
183
183
|
*/
|
184
184
|
maxTokens?: boolean | number;
|
185
185
|
/**
|
186
186
|
* Limit the depth of a GraphQL document.
|
187
187
|
*
|
188
|
-
* Passing `true` will enable the feature with the default limit of `
|
188
|
+
* Passing `true` will enable the feature with the default limit of `7` levels.
|
189
189
|
*
|
190
190
|
* If you would like more configuration options, please disable this feature and
|
191
191
|
* use the [`@escape.tech/graphql-armor-max-depth` plugin](https://escape.tech/graphql-armor/docs/plugins/max-depth/#with-envelopcore-from-the-guild-org) instead
|
192
192
|
*
|
193
|
-
* @default
|
193
|
+
* @default true
|
194
194
|
*/
|
195
195
|
maxDepth?: boolean | number;
|
196
196
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -179,18 +179,18 @@ interface GatewayCLIBuiltinPluginConfig {
|
|
179
179
|
* If you would like more configuration options, please disable this feature and
|
180
180
|
* use the [`@escape.tech/graphql-armor-max-tokens` plugin](https://escape.tech/graphql-armor/docs/plugins/max-tokens/#with-envelopcore-from-the-guild-org) instead.
|
181
181
|
*
|
182
|
-
* @default
|
182
|
+
* @default true
|
183
183
|
*/
|
184
184
|
maxTokens?: boolean | number;
|
185
185
|
/**
|
186
186
|
* Limit the depth of a GraphQL document.
|
187
187
|
*
|
188
|
-
* Passing `true` will enable the feature with the default limit of `
|
188
|
+
* Passing `true` will enable the feature with the default limit of `7` levels.
|
189
189
|
*
|
190
190
|
* If you would like more configuration options, please disable this feature and
|
191
191
|
* use the [`@escape.tech/graphql-armor-max-depth` plugin](https://escape.tech/graphql-armor/docs/plugins/max-depth/#with-envelopcore-from-the-guild-org) instead
|
192
192
|
*
|
193
|
-
* @default
|
193
|
+
* @default true
|
194
194
|
*/
|
195
195
|
maxDepth?: boolean | number;
|
196
196
|
/**
|
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-DgZZk0HC.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.0.1-
|
3
|
+
"version": "2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -83,12 +83,12 @@
|
|
83
83
|
"@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
|
84
84
|
"@escape.tech/graphql-armor-max-depth": "^2.4.0",
|
85
85
|
"@escape.tech/graphql-armor-max-tokens": "^2.5.0",
|
86
|
-
"@graphql-hive/gateway-runtime": "2.0.1-
|
86
|
+
"@graphql-hive/gateway-runtime": "2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941",
|
87
87
|
"@graphql-hive/importer": "^2.0.0",
|
88
88
|
"@graphql-hive/logger": "^1.0.1",
|
89
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.
|
90
|
-
"@graphql-hive/plugin-opentelemetry": "1.0.1-
|
91
|
-
"@graphql-hive/pubsub": "2.
|
89
|
+
"@graphql-hive/plugin-aws-sigv4": "^2.0.0",
|
90
|
+
"@graphql-hive/plugin-opentelemetry": "1.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941",
|
91
|
+
"@graphql-hive/pubsub": "^2.0.0",
|
92
92
|
"@graphql-mesh/cache-cfw-kv": "^0.105.8",
|
93
93
|
"@graphql-mesh/cache-localforage": "^0.105.9",
|
94
94
|
"@graphql-mesh/cache-redis": "^0.104.8",
|
@@ -97,13 +97,13 @@
|
|
97
97
|
"@graphql-mesh/hmac-upstream-signature": "^2.0.0",
|
98
98
|
"@graphql-mesh/plugin-http-cache": "^0.105.8",
|
99
99
|
"@graphql-mesh/plugin-jit": "^0.2.7",
|
100
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.1-
|
101
|
-
"@graphql-mesh/plugin-prometheus": "2.0.1-
|
100
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941",
|
101
|
+
"@graphql-mesh/plugin-prometheus": "2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941",
|
102
102
|
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
103
103
|
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
104
|
-
"@graphql-mesh/transport-http": "1.0.
|
105
|
-
"@graphql-mesh/transport-http-callback": "1.0.
|
106
|
-
"@graphql-mesh/transport-ws": "2.0.
|
104
|
+
"@graphql-mesh/transport-http": "^1.0.0",
|
105
|
+
"@graphql-mesh/transport-http-callback": "^1.0.0",
|
106
|
+
"@graphql-mesh/transport-ws": "^2.0.0",
|
107
107
|
"@graphql-mesh/types": "^0.104.8",
|
108
108
|
"@graphql-mesh/utils": "^0.104.11",
|
109
109
|
"@graphql-tools/code-file-loader": "^8.1.22",
|
@@ -132,7 +132,7 @@
|
|
132
132
|
"ws": "^8.18.3"
|
133
133
|
},
|
134
134
|
"devDependencies": {
|
135
|
-
"@graphql-mesh/transport-common": "1.0.
|
135
|
+
"@graphql-mesh/transport-common": "^1.0.0",
|
136
136
|
"@graphql-mesh/transport-soap": "^0.10.8",
|
137
137
|
"@graphql-tools/executor": "^1.4.9",
|
138
138
|
"@rollup/plugin-commonjs": "^28.0.0",
|