@graphql-hive/gateway 2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1 → 2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6

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,6 +1,6 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
3
+ ## 2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
4
4
  ### Major Changes
5
5
 
6
6
 
@@ -10,6 +10,40 @@
10
10
  Least supported Node version is now v20.
11
11
 
12
12
 
13
+ - [#1419](https://github.com/graphql-hive/gateway/pull/1419) [`13b2d4c`](https://github.com/graphql-hive/gateway/commit/13b2d4cfa5f6ddddc39bcbd2ee4e55401e04ea46) Thanks [@ardatan](https://github.com/ardatan)! - `useDeduplicateRequest()` plugin has been removed in favour of the built-in inflight request deduplication
14
+
15
+ To migrate, simply remove the plugin from your configuration and you're good to go!
16
+
17
+ ```diff
18
+ import {
19
+ defineConfig,
20
+ - useDeduplicateRequest,
21
+ } from '@graphql-hive/gateway'
22
+
23
+ export const gatewayConfig = defineConfig({
24
+ - plugins: ctx => [useDeduplicateRequest(ctx)]
25
+ })
26
+ ```
27
+
28
+ If you still want to use the deprecated plugin, you need to install it separately and use it as before:
29
+
30
+ ```sh
31
+ npm i @graphql-hive/plugin-deduplicate-request
32
+ ```
33
+
34
+ ```diff
35
+ import {
36
+ defineConfig,
37
+ - useDeduplicateRequest,
38
+ } from '@graphql-hive/gateway'
39
+ + import { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request'
40
+
41
+ export const gatewayConfig = defineConfig({
42
+ plugins: ctx => [useDeduplicateRequest(ctx)]
43
+ })
44
+ ```
45
+
46
+
13
47
  - [#956](https://github.com/graphql-hive/gateway/pull/956) [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Introduce and use the new Hive Logger
14
48
 
15
49
  - [Read more about it on the Hive Logger documentation here.](https://the-guild.dev/graphql/hive/docs/logger)
@@ -72,6 +106,11 @@
72
106
  - Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
73
107
 
74
108
 
109
+ - [#1419](https://github.com/graphql-hive/gateway/pull/1419) [`a6aaba3`](https://github.com/graphql-hive/gateway/commit/a6aaba398eb3c65faf1ae56d8225e5a07aba84b6) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
110
+
111
+ - Removed dependency [`@graphql-hive/plugin-deduplicate-request@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-deduplicate-request/v/workspace:^) (from `dependencies`)
112
+
113
+
75
114
  - [#956](https://github.com/graphql-hive/gateway/pull/956) [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
76
115
 
77
116
  - Added dependency [`@graphql-hive/logger@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/logger/v/workspace:^) (to `dependencies`)
@@ -96,19 +135,18 @@
96
135
  - [#1419](https://github.com/graphql-hive/gateway/pull/1419) [`920a04e`](https://github.com/graphql-hive/gateway/commit/920a04ec6ef6186f843f0c60ec3eabf5237d7241) Thanks [@ardatan](https://github.com/ardatan)! - Inflight request deduplication
97
136
 
98
137
  - Updated dependencies [[`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`f09c4a7`](https://github.com/graphql-hive/gateway/commit/f09c4a74e37c29d4a44cc5612078754e38e54c4a), [`dafd3a1`](https://github.com/graphql-hive/gateway/commit/dafd3a17f02cb85963d6004665017e4733f14fb8), [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a), [`475ef5c`](https://github.com/graphql-hive/gateway/commit/475ef5cad6c7b7328a18e4d6b851bbcafb09d1a1), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`b4ac110`](https://github.com/graphql-hive/gateway/commit/b4ac11056eface0747eb5a94217e773787b87834), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`91e0764`](https://github.com/graphql-hive/gateway/commit/91e0764ceed0e892cfbe93f8d6e1353fadfa0f8a), [`22bd3f7`](https://github.com/graphql-hive/gateway/commit/22bd3f70d2901738d4c35e02282569546b820b11), [`5cbfc38`](https://github.com/graphql-hive/gateway/commit/5cbfc389021dcf616402788080ffb56b69ff6019), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`f238e21`](https://github.com/graphql-hive/gateway/commit/f238e215ef5ac9b8c93458d4889bf80f85a574ed), [`5dee497`](https://github.com/graphql-hive/gateway/commit/5dee497a3a2908bd2c18b8f50c1c9226023abe1f), [`44530c2`](https://github.com/graphql-hive/gateway/commit/44530c2713a1039e420a793c76fc4dc2231b936e), [`c84b36e`](https://github.com/graphql-hive/gateway/commit/c84b36e1125a8ab3bd8e988be285b96c8545073d), [`00047fd`](https://github.com/graphql-hive/gateway/commit/00047fd581f257d8be5499a25ee80425fb01fc85), [`f238e21`](https://github.com/graphql-hive/gateway/commit/f238e215ef5ac9b8c93458d4889bf80f85a574ed), [`76073af`](https://github.com/graphql-hive/gateway/commit/76073af61b408de42c85f21696cf20a0d97e4027), [`b4f5042`](https://github.com/graphql-hive/gateway/commit/b4f5042c2f152252918a8814d060e39cb9551cdd), [`01c414f`](https://github.com/graphql-hive/gateway/commit/01c414f6c50edeb1b8dfd09386a12e0499835355), [`b0bdd93`](https://github.com/graphql-hive/gateway/commit/b0bdd93de13286e9481217f7c31fe151b3e810f7), [`61f45a1`](https://github.com/graphql-hive/gateway/commit/61f45a13e1175bfb30fbd397604c92ee1fd19a1a)]:
99
- - @graphql-hive/gateway-runtime@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
100
- - @graphql-hive/plugin-opentelemetry@1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
101
- - @graphql-hive/pubsub@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
102
- - @graphql-mesh/plugin-prometheus@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
103
- - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
104
- - @graphql-hive/plugin-deduplicate-request@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
105
- - @graphql-mesh/transport-http-callback@1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
106
- - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
107
- - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
108
- - @graphql-mesh/transport-http@1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
109
- - @graphql-mesh/transport-ws@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
110
- - @graphql-hive/importer@2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
111
- - @graphql-hive/logger@1.0.1-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1
138
+ - @graphql-hive/gateway-runtime@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
139
+ - @graphql-hive/plugin-opentelemetry@1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
140
+ - @graphql-hive/pubsub@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
141
+ - @graphql-mesh/plugin-prometheus@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
142
+ - @graphql-mesh/hmac-upstream-signature@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
143
+ - @graphql-mesh/transport-http-callback@1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
144
+ - @graphql-hive/plugin-aws-sigv4@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
145
+ - @graphql-mesh/plugin-jwt-auth@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
146
+ - @graphql-mesh/transport-http@1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
147
+ - @graphql-mesh/transport-ws@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
148
+ - @graphql-hive/importer@2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
149
+ - @graphql-hive/logger@1.0.1-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6
112
150
 
113
151
  ## 1.16.5
114
152
  ### Patch Changes
package/dist/bin.cjs CHANGED
@@ -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.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1';
31
+ globalThis.__VERSION__ = '2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6';
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
@@ -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.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1';
25
+ globalThis.__VERSION__ = '2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6';
26
26
  module.register("@graphql-hive/importer/hooks", {
27
27
  parentURL: (
28
28
  // @ts-ignore bob will complain when bundling for cjs
package/dist/index.cjs CHANGED
@@ -8,7 +8,6 @@ var pluginJwtAuth = require('@graphql-mesh/plugin-jwt-auth');
8
8
  var pluginPrometheus = require('@graphql-mesh/plugin-prometheus');
9
9
  var pluginRateLimit = require('@graphql-mesh/plugin-rate-limit');
10
10
  var pluginHttpCache = require('@graphql-mesh/plugin-http-cache');
11
- var pluginDeduplicateRequest = require('@graphql-hive/plugin-deduplicate-request');
12
11
  var pluginSnapshot = require('@graphql-mesh/plugin-snapshot');
13
12
  var cacheCfwKv = require('@graphql-mesh/cache-cfw-kv');
14
13
  var cacheRedis = require('@graphql-mesh/cache-redis');
@@ -70,10 +69,6 @@ Object.defineProperty(exports, "useHttpCache", {
70
69
  enumerable: true,
71
70
  get: function () { return pluginHttpCache__default.default; }
72
71
  });
73
- Object.defineProperty(exports, "useDeduplicateRequest", {
74
- enumerable: true,
75
- get: function () { return pluginDeduplicateRequest.useDeduplicateRequest; }
76
- });
77
72
  Object.defineProperty(exports, "useSnapshot", {
78
73
  enumerable: true,
79
74
  get: function () { return pluginSnapshot__default.default; }
package/dist/index.d.cts CHANGED
@@ -18,7 +18,6 @@ export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
18
18
  import { YamlConfig, KeyValueCache } from '@graphql-mesh/types';
19
19
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
20
20
  export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
21
- export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
22
21
  export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
23
22
  export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
24
23
  export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
package/dist/index.d.ts CHANGED
@@ -18,7 +18,6 @@ export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
18
18
  import { YamlConfig, KeyValueCache } from '@graphql-mesh/types';
19
19
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
20
20
  export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
21
- export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
22
21
  export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
23
22
  export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
24
23
  export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ export * from '@graphql-mesh/plugin-prometheus';
7
7
  export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
8
8
  export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
9
9
  export { default as useHttpCache } from '@graphql-mesh/plugin-http-cache';
10
- export { useDeduplicateRequest } from '@graphql-hive/plugin-deduplicate-request';
11
10
  export { default as useSnapshot } from '@graphql-mesh/plugin-snapshot';
12
11
  export { default as CloudflareKVCacheStorage } from '@graphql-mesh/cache-cfw-kv';
13
12
  export { default as RedisCacheStorage } from '@graphql-mesh/cache-redis';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
3
+ "version": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,28 +83,27 @@
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.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
87
- "@graphql-hive/importer": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
88
- "@graphql-hive/logger": "1.0.1-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
89
- "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
90
- "@graphql-hive/plugin-deduplicate-request": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
91
- "@graphql-hive/plugin-opentelemetry": "1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
92
- "@graphql-hive/pubsub": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
86
+ "@graphql-hive/gateway-runtime": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
87
+ "@graphql-hive/importer": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
88
+ "@graphql-hive/logger": "1.0.1-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
89
+ "@graphql-hive/plugin-aws-sigv4": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
90
+ "@graphql-hive/plugin-opentelemetry": "1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
91
+ "@graphql-hive/pubsub": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
93
92
  "@graphql-mesh/cache-cfw-kv": "^0.105.8",
94
93
  "@graphql-mesh/cache-localforage": "^0.105.9",
95
94
  "@graphql-mesh/cache-redis": "^0.104.8",
96
95
  "@graphql-mesh/cache-upstash-redis": "^0.1.8",
97
96
  "@graphql-mesh/cross-helpers": "^0.4.10",
98
- "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
97
+ "@graphql-mesh/hmac-upstream-signature": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
99
98
  "@graphql-mesh/plugin-http-cache": "^0.105.8",
100
99
  "@graphql-mesh/plugin-jit": "^0.2.7",
101
- "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
102
- "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
100
+ "@graphql-mesh/plugin-jwt-auth": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
101
+ "@graphql-mesh/plugin-prometheus": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
103
102
  "@graphql-mesh/plugin-rate-limit": "^0.104.7",
104
103
  "@graphql-mesh/plugin-snapshot": "^0.104.7",
105
- "@graphql-mesh/transport-http": "1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
106
- "@graphql-mesh/transport-http-callback": "1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
107
- "@graphql-mesh/transport-ws": "2.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
104
+ "@graphql-mesh/transport-http": "1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
105
+ "@graphql-mesh/transport-http-callback": "1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
106
+ "@graphql-mesh/transport-ws": "2.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
108
107
  "@graphql-mesh/types": "^0.104.8",
109
108
  "@graphql-mesh/utils": "^0.104.11",
110
109
  "@graphql-tools/code-file-loader": "^8.1.22",
@@ -133,7 +132,7 @@
133
132
  "ws": "^8.18.3"
134
133
  },
135
134
  "devDependencies": {
136
- "@graphql-mesh/transport-common": "1.0.0-alpha-3b42dc27414c9518851fdfe3ae3656467725a3c1",
135
+ "@graphql-mesh/transport-common": "1.0.0-alpha-a6aaba398eb3c65faf1ae56d8225e5a07aba84b6",
137
136
  "@graphql-mesh/transport-soap": "^0.10.8",
138
137
  "@graphql-tools/executor": "^1.4.9",
139
138
  "@rollup/plugin-commonjs": "^28.0.0",