@graphql-tools/delegate 11.0.1 → 11.0.2-alpha-bb9905fa22f9cde363771a3d706f7c31a828a1ed

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/delegate
2
2
 
3
+ ## 11.0.2-alpha-bb9905fa22f9cde363771a3d706f7c31a828a1ed
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#1556](https://github.com/graphql-hive/gateway/pull/1556) [`6eaefe7`](https://github.com/graphql-hive/gateway/commit/6eaefe7d808a5f681ef227956aabf83595968cc8) Thanks [@ardatan](https://github.com/ardatan)! - Correct error paths in case of batch delegation with the same error
9
+
3
10
  ## 11.0.1
4
11
  ### Patch Changes
5
12
 
package/dist/index.cjs CHANGED
@@ -399,14 +399,14 @@ function resolveExternalList(type, list, unpathedErrors, subschema, context, inf
399
399
  )
400
400
  );
401
401
  }
402
- const reportedErrors = /* @__PURE__ */ new WeakMap();
402
+ const reportedErrors = /* @__PURE__ */ new WeakSet();
403
403
  function reportUnpathedErrorsViaNull(unpathedErrors) {
404
404
  if (unpathedErrors.length) {
405
405
  const unreportedErrors = [];
406
406
  for (const error of unpathedErrors) {
407
407
  if (!reportedErrors.has(error)) {
408
408
  unreportedErrors.push(error);
409
- reportedErrors.set(error, true);
409
+ reportedErrors.add(error);
410
410
  }
411
411
  }
412
412
  if (unreportedErrors.length) {
package/dist/index.js CHANGED
@@ -399,14 +399,14 @@ function resolveExternalList(type, list, unpathedErrors, subschema, context, inf
399
399
  )
400
400
  );
401
401
  }
402
- const reportedErrors = /* @__PURE__ */ new WeakMap();
402
+ const reportedErrors = /* @__PURE__ */ new WeakSet();
403
403
  function reportUnpathedErrorsViaNull(unpathedErrors) {
404
404
  if (unpathedErrors.length) {
405
405
  const unreportedErrors = [];
406
406
  for (const error of unpathedErrors) {
407
407
  if (!reportedErrors.has(error)) {
408
408
  unreportedErrors.push(error);
409
- reportedErrors.set(error, true);
409
+ reportedErrors.add(error);
410
410
  }
411
411
  }
412
412
  if (unreportedErrors.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/delegate",
3
- "version": "11.0.1",
3
+ "version": "11.0.2-alpha-bb9905fa22f9cde363771a3d706f7c31a828a1ed",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {