@graphql-hive/gateway 2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003 → 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 CHANGED
@@ -1,24 +1,15 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
3
+ ## 2.0.1-rc-1c6987111ce625b1c4f6870973eb2e11d3b2a941
4
4
  ### Patch Changes
5
5
 
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-1b17dc61dc3f287418b235a3e143df7e60834003
13
- - @graphql-hive/plugin-opentelemetry@1.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
14
- - @graphql-mesh/plugin-jwt-auth@2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
15
- - @graphql-hive/gateway-runtime@2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
16
- - @graphql-hive/plugin-aws-sigv4@2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
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-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
19
- - @graphql-mesh/transport-http@1.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
20
- - @graphql-mesh/transport-http-callback@1.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
21
- - @graphql-mesh/transport-ws@2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003
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-Bmg2AY5W.cjs');
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-alpha-1b17dc61dc3f287418b235a3e143df7e60834003';
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-BYCLUGLV.js';
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-alpha-1b17dc61dc3f287418b235a3e143df7e60834003';
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 : 6
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 : 6
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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-Bmg2AY5W.cjs');
3
+ var cli = require('./cli-I11XGX7K.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.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 false
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 `6` levels.
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 false
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 false
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 `6` levels.
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 false
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-BYCLUGLV.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-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-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
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-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
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.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
90
- "@graphql-hive/plugin-opentelemetry": "1.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
91
- "@graphql-hive/pubsub": "2.1.0-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
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-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
101
- "@graphql-mesh/plugin-prometheus": "2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
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.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
105
- "@graphql-mesh/transport-http-callback": "1.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
106
- "@graphql-mesh/transport-ws": "2.0.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
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.1-alpha-1b17dc61dc3f287418b235a3e143df7e60834003",
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",