@graphql-hive/gateway 2.0.1-alpha-5753e4aaf4c9bc2ec42e0f24e03c6244d8872ea7 → 2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
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 +16 -7
- package/dist/bin.cjs +2 -2
- package/dist/bin.js +2 -2
- package/dist/{cli-DgZZk0HC.js → cli-BYCLUGLV.js} +3 -3
- package/dist/{cli-I11XGX7K.cjs → cli-Bmg2AY5W.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,15 +1,24 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.1-alpha-
|
3
|
+
## 2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
4
4
|
### Patch Changes
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
|
7
|
+
|
8
|
+
- [#1441](https://github.com/graphql-hive/gateway/pull/1441) [`d64954b`](https://github.com/graphql-hive/gateway/commit/d64954bc24905b9a6251c3aabd4dfab8e610a709) Thanks [@enisdenjo](https://github.com/enisdenjo)! - maxDepth and maxTokens disabled by default
|
9
|
+
|
10
|
+
Other gateways out there don't have these defaults and they might be too limiting, let's leave it for the users to decide. No new breaking change because it's too early for significant adoption.
|
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-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
13
|
+
- @graphql-hive/plugin-opentelemetry@1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
14
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
15
|
+
- @graphql-hive/gateway-runtime@2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
16
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
11
17
|
- @graphql-mesh/hmac-upstream-signature@2.0.0
|
12
|
-
- @graphql-mesh/plugin-prometheus@2.0.1-alpha-
|
18
|
+
- @graphql-mesh/plugin-prometheus@2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
19
|
+
- @graphql-mesh/transport-http@1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
20
|
+
- @graphql-mesh/transport-http-callback@1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
21
|
+
- @graphql-mesh/transport-ws@2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670
|
13
22
|
|
14
23
|
## 2.0.0
|
15
24
|
### 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-Bmg2AY5W.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-alpha-
|
31
|
+
globalThis.__VERSION__ = '2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670';
|
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-BYCLUGLV.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-alpha-
|
25
|
+
globalThis.__VERSION__ = '2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670';
|
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) {
|
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) {
|
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 : 6
|
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) {
|
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) {
|
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 : 6
|
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 false
|
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 `6` 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 false
|
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 false
|
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 `6` 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 false
|
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-BYCLUGLV.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-alpha-
|
3
|
+
"version": "2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
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-alpha-
|
86
|
+
"@graphql-hive/gateway-runtime": "2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
87
87
|
"@graphql-hive/importer": "^2.0.0",
|
88
88
|
"@graphql-hive/logger": "^1.0.1",
|
89
|
-
"@graphql-hive/plugin-aws-sigv4": "
|
90
|
-
"@graphql-hive/plugin-opentelemetry": "1.0.1-alpha-
|
91
|
-
"@graphql-hive/pubsub": "
|
89
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
90
|
+
"@graphql-hive/plugin-opentelemetry": "1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
91
|
+
"@graphql-hive/pubsub": "2.1.0-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
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-alpha-
|
101
|
-
"@graphql-mesh/plugin-prometheus": "2.0.1-alpha-
|
100
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
101
|
+
"@graphql-mesh/plugin-prometheus": "2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
102
102
|
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
103
103
|
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
104
|
-
"@graphql-mesh/transport-http": "
|
105
|
-
"@graphql-mesh/transport-http-callback": "
|
106
|
-
"@graphql-mesh/transport-ws": "
|
104
|
+
"@graphql-mesh/transport-http": "1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
105
|
+
"@graphql-mesh/transport-http-callback": "1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
106
|
+
"@graphql-mesh/transport-ws": "2.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
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": "
|
135
|
+
"@graphql-mesh/transport-common": "1.0.1-alpha-9d3cfdf5f6684a40d61b8f746a639ba9246fc670",
|
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",
|