@graphql-hive/gateway-runtime 2.7.10 → 2.7.11-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0
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 +13 -0
- package/dist/index.cjs +13 -1
- package/dist/index.js +13 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @graphql-hive/gateway-runtime
|
|
2
2
|
|
|
3
|
+
## 2.7.11-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2187](https://github.com/graphql-hive/gateway/pull/2187) [`4225fc8`](https://github.com/graphql-hive/gateway/commit/4225fc84c32679ae1cda3aeb710d0d064a0eaea0) Thanks [@ardatan](https://github.com/ardatan)! - Fix header propagation for non-GraphQL sources
|
|
9
|
+
|
|
10
|
+
- Updated dependencies [[`f85a9fe`](https://github.com/graphql-hive/gateway/commit/f85a9fe11dc88a7fa8397c5372ef24f9e91b638e)]:
|
|
11
|
+
- @graphql-tools/executor-http@3.1.2-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0
|
|
12
|
+
- @graphql-tools/federation@4.3.2-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0
|
|
13
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.10
|
|
14
|
+
- @graphql-mesh/fusion-runtime@1.8.2-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0
|
|
15
|
+
|
|
3
16
|
## 2.7.10
|
|
4
17
|
### Patch Changes
|
|
5
18
|
|
package/dist/index.cjs
CHANGED
|
@@ -1367,7 +1367,19 @@ function usePropagateHeaders(opts) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
},
|
|
1370
|
-
onFetch({ executionRequest }) {
|
|
1370
|
+
onFetch({ executionRequest, options }) {
|
|
1371
|
+
if (executionRequest?.extensions?.["headers"]) {
|
|
1372
|
+
options.headers ||= {};
|
|
1373
|
+
const extensionHeaders = executionRequest.extensions["headers"];
|
|
1374
|
+
for (const [key, value] of Object.entries(extensionHeaders)) {
|
|
1375
|
+
if (value == null) {
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
if (!Object.prototype.hasOwnProperty.call(options.headers, key)) {
|
|
1379
|
+
options.headers[key] = value;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1371
1383
|
if (opts.fromSubgraphsToClient) {
|
|
1372
1384
|
return function onFetchDone({ response }) {
|
|
1373
1385
|
const request = executionRequest?.context?.request;
|
package/dist/index.js
CHANGED
|
@@ -1366,7 +1366,19 @@ function usePropagateHeaders(opts) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
},
|
|
1369
|
-
onFetch({ executionRequest }) {
|
|
1369
|
+
onFetch({ executionRequest, options }) {
|
|
1370
|
+
if (executionRequest?.extensions?.["headers"]) {
|
|
1371
|
+
options.headers ||= {};
|
|
1372
|
+
const extensionHeaders = executionRequest.extensions["headers"];
|
|
1373
|
+
for (const [key, value] of Object.entries(extensionHeaders)) {
|
|
1374
|
+
if (value == null) {
|
|
1375
|
+
continue;
|
|
1376
|
+
}
|
|
1377
|
+
if (!Object.prototype.hasOwnProperty.call(options.headers, key)) {
|
|
1378
|
+
options.headers[key] = value;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1370
1382
|
if (opts.fromSubgraphsToClient) {
|
|
1371
1383
|
return function onFetchDone({ response }) {
|
|
1372
1384
|
const request = executionRequest?.context?.request;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/gateway-runtime",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.11-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@graphql-hive/signal": "^2.0.0",
|
|
56
56
|
"@graphql-hive/yoga": "^0.48.0",
|
|
57
57
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
58
|
-
"@graphql-mesh/fusion-runtime": "
|
|
58
|
+
"@graphql-mesh/fusion-runtime": "1.8.2-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0",
|
|
59
59
|
"@graphql-mesh/hmac-upstream-signature": "^2.0.10",
|
|
60
60
|
"@graphql-mesh/plugin-response-cache": "^0.104.34",
|
|
61
61
|
"@graphql-mesh/transport-common": "^1.0.15",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@graphql-tools/batch-delegate": "^10.0.18",
|
|
65
65
|
"@graphql-tools/delegate": "^12.0.12",
|
|
66
66
|
"@graphql-tools/executor-common": "^1.0.6",
|
|
67
|
-
"@graphql-tools/executor-http": "
|
|
68
|
-
"@graphql-tools/federation": "
|
|
67
|
+
"@graphql-tools/executor-http": "3.1.2-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0",
|
|
68
|
+
"@graphql-tools/federation": "4.3.2-alpha-3daa07903003ddf54913fbb744672a2dbab2ebc0",
|
|
69
69
|
"@graphql-tools/stitch": "^10.1.16",
|
|
70
70
|
"@graphql-tools/utils": "^11.0.0",
|
|
71
71
|
"@graphql-tools/wrap": "^11.1.12",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"tslib": "^2.8.1"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@apollo/subgraph": "^2.
|
|
86
|
+
"@apollo/subgraph": "^2.13.3",
|
|
87
87
|
"@graphql-mesh/fusion-composition": "^0.8.20",
|
|
88
88
|
"@graphql-mesh/transport-rest": "^0.9.17",
|
|
89
89
|
"@omnigraph/openapi": "^0.109.23",
|