@graphql-hive/gateway-runtime 2.0.1 → 2.0.2-rc-7d2a7dee33ca2887a8eaced39351e9881eb28d90
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 +10 -0
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @graphql-hive/gateway-runtime
|
|
2
2
|
|
|
3
|
+
## 2.0.2-rc-7d2a7dee33ca2887a8eaced39351e9881eb28d90
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#1443](https://github.com/graphql-hive/gateway/pull/1443) [`20f4880`](https://github.com/graphql-hive/gateway/commit/20f48801dbab0aaccc7aa68f0447f7f5504cb0f7) Thanks [@ardatan](https://github.com/ardatan)! - Handle response caching after all other plugins
|
|
9
|
+
|
|
10
|
+
- Updated dependencies []:
|
|
11
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0
|
|
12
|
+
|
|
3
13
|
## 2.0.1
|
|
4
14
|
### Patch Changes
|
|
5
15
|
|
package/dist/index.cjs
CHANGED
|
@@ -2586,15 +2586,6 @@ function createGatewayRuntime(config) {
|
|
|
2586
2586
|
if (config.webhooks) {
|
|
2587
2587
|
extraPlugins.push(useWebhooks(configContext));
|
|
2588
2588
|
}
|
|
2589
|
-
if (config.responseCaching) {
|
|
2590
|
-
extraPlugins.push(
|
|
2591
|
-
// @ts-expect-error TODO: what's up with type narrowing
|
|
2592
|
-
useMeshResponseCache__default.default({
|
|
2593
|
-
...configContext,
|
|
2594
|
-
...config.responseCaching
|
|
2595
|
-
})
|
|
2596
|
-
);
|
|
2597
|
-
}
|
|
2598
2589
|
if (config.contentEncoding) {
|
|
2599
2590
|
extraPlugins.push(
|
|
2600
2591
|
useContentEncoding(
|
|
@@ -2650,6 +2641,15 @@ function createGatewayRuntime(config) {
|
|
|
2650
2641
|
if (config.cookies) {
|
|
2651
2642
|
extraPlugins.push(serverPluginCookies.useCookies());
|
|
2652
2643
|
}
|
|
2644
|
+
if (config.responseCaching) {
|
|
2645
|
+
extraPlugins.push(
|
|
2646
|
+
// @ts-expect-error TODO: what's up with type narrowing
|
|
2647
|
+
useMeshResponseCache__default.default({
|
|
2648
|
+
...configContext,
|
|
2649
|
+
...config.responseCaching
|
|
2650
|
+
})
|
|
2651
|
+
);
|
|
2652
|
+
}
|
|
2653
2653
|
let isDebug = false;
|
|
2654
2654
|
if (config.logging === "debug") {
|
|
2655
2655
|
isDebug = true;
|
package/dist/index.js
CHANGED
|
@@ -2585,15 +2585,6 @@ function createGatewayRuntime(config) {
|
|
|
2585
2585
|
if (config.webhooks) {
|
|
2586
2586
|
extraPlugins.push(useWebhooks(configContext));
|
|
2587
2587
|
}
|
|
2588
|
-
if (config.responseCaching) {
|
|
2589
|
-
extraPlugins.push(
|
|
2590
|
-
// @ts-expect-error TODO: what's up with type narrowing
|
|
2591
|
-
useMeshResponseCache({
|
|
2592
|
-
...configContext,
|
|
2593
|
-
...config.responseCaching
|
|
2594
|
-
})
|
|
2595
|
-
);
|
|
2596
|
-
}
|
|
2597
2588
|
if (config.contentEncoding) {
|
|
2598
2589
|
extraPlugins.push(
|
|
2599
2590
|
useContentEncoding(
|
|
@@ -2649,6 +2640,15 @@ function createGatewayRuntime(config) {
|
|
|
2649
2640
|
if (config.cookies) {
|
|
2650
2641
|
extraPlugins.push(useCookies());
|
|
2651
2642
|
}
|
|
2643
|
+
if (config.responseCaching) {
|
|
2644
|
+
extraPlugins.push(
|
|
2645
|
+
// @ts-expect-error TODO: what's up with type narrowing
|
|
2646
|
+
useMeshResponseCache({
|
|
2647
|
+
...configContext,
|
|
2648
|
+
...config.responseCaching
|
|
2649
|
+
})
|
|
2650
|
+
);
|
|
2651
|
+
}
|
|
2652
2652
|
let isDebug = false;
|
|
2653
2653
|
if (config.logging === "debug") {
|
|
2654
2654
|
isDebug = true;
|