@graphql-tools/executor-http 3.1.2 → 3.1.3

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,5 +1,12 @@
1
1
  # @graphql-tools/executor-http
2
2
 
3
+ ## 3.1.3
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2179](https://github.com/graphql-hive/gateway/pull/2179) [`323626f`](https://github.com/graphql-hive/gateway/commit/323626ff877f50e509e45cc56ce82602d5118a1d) Thanks [@ardatan](https://github.com/ardatan)! - Exclude mutations for deduplication
9
+
3
10
  ## 3.1.2
4
11
  ### Patch Changes
5
12
 
package/dist/index.cjs CHANGED
@@ -680,7 +680,7 @@ function buildHTTPExecutor(options) {
680
680
  };
681
681
  }
682
682
  function handleInflightRequest(inflightRequestOptions, context, info) {
683
- if (options?.deduplicateInflightRequests === false) {
683
+ if (options?.deduplicateInflightRequests === false || operationType !== "query") {
684
684
  return runInflightRequest();
685
685
  }
686
686
  function runInflightRequest() {
package/dist/index.js CHANGED
@@ -678,7 +678,7 @@ function buildHTTPExecutor(options) {
678
678
  };
679
679
  }
680
680
  function handleInflightRequest(inflightRequestOptions, context, info) {
681
- if (options?.deduplicateInflightRequests === false) {
681
+ if (options?.deduplicateInflightRequests === false || operationType !== "query") {
682
682
  return runInflightRequest();
683
683
  }
684
684
  function runInflightRequest() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/executor-http",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {