@graphql-tools/batch-delegate 9.0.25 → 9.0.26-alpha-2e98e5cd5831cf8aea5545edf70edbdff8c01dc1
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 +6 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @graphql-tools/batch-delegate
|
|
2
2
|
|
|
3
|
+
## 9.0.26-alpha-2e98e5cd5831cf8aea5545edf70edbdff8c01dc1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#382](https://github.com/graphql-hive/gateway/pull/382) [`2e98e5c`](https://github.com/graphql-hive/gateway/commit/2e98e5cd5831cf8aea5545edf70edbdff8c01dc1) Thanks [@ardatan](https://github.com/ardatan)! - Memoize the batched delegation loader by respecting the arguments correctly
|
|
8
|
+
|
|
3
9
|
## 9.0.25
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -85,6 +85,10 @@ function getLoader(options) {
|
|
|
85
85
|
if (selectionSet != null) {
|
|
86
86
|
cacheKey += memoizedPrint(selectionSet);
|
|
87
87
|
}
|
|
88
|
+
const fieldNode = fieldNodes?.[0];
|
|
89
|
+
if (fieldNode?.arguments) {
|
|
90
|
+
cacheKey += fieldNode.arguments.map((arg) => memoizedPrint(arg)).join(",");
|
|
91
|
+
}
|
|
88
92
|
let loader = loaders.get(cacheKey);
|
|
89
93
|
if (loader === void 0) {
|
|
90
94
|
const batchFn = createBatchFn(options);
|
package/dist/index.js
CHANGED
|
@@ -79,6 +79,10 @@ function getLoader(options) {
|
|
|
79
79
|
if (selectionSet != null) {
|
|
80
80
|
cacheKey += memoizedPrint(selectionSet);
|
|
81
81
|
}
|
|
82
|
+
const fieldNode = fieldNodes?.[0];
|
|
83
|
+
if (fieldNode?.arguments) {
|
|
84
|
+
cacheKey += fieldNode.arguments.map((arg) => memoizedPrint(arg)).join(",");
|
|
85
|
+
}
|
|
82
86
|
let loader = loaders.get(cacheKey);
|
|
83
87
|
if (loader === void 0) {
|
|
84
88
|
const batchFn = createBatchFn(options);
|
package/package.json
CHANGED