@graphql-tools/federation 4.4.15 → 4.4.16-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5

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,22 @@
1
1
  # @graphql-tools/federation
2
2
 
3
+ ## 4.4.16-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2604](https://github.com/graphql-hive/gateway/pull/2604) [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
9
+
10
+ - Updated dependency [`@graphql-tools/executor@^2.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/2.0.1) (from `^1.4.13`, in `dependencies`)
11
+ - Updated dependency [`@graphql-tools/merge@^9.2.4` ↗︎](https://www.npmjs.com/package/@graphql-tools/merge/v/9.2.4) (from `^9.1.5`, in `dependencies`)
12
+ - Updated dependency [`@graphql-tools/schema@^10.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.1.1) (from `^10.0.29`, in `dependencies`)
13
+ - Updated dependency [`@graphql-tools/utils@^12.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/12.0.1) (from `^11.0.0`, in `dependencies`)
14
+ - Updated dependencies [[`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56)]:
15
+ - @graphql-tools/delegate@12.1.5-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
16
+ - @graphql-tools/executor-http@3.3.1-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
17
+ - @graphql-tools/stitch@10.2.6-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
18
+ - @graphql-tools/wrap@11.1.25-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
19
+
3
20
  ## 4.4.15
4
21
  ### Patch Changes
5
22
 
package/dist/index.cjs CHANGED
@@ -138,7 +138,7 @@ function projectDataSelectionSet(data, selectionSet) {
138
138
  data[responseKey],
139
139
  selection.selectionSet
140
140
  );
141
- if (Object.prototype.hasOwnProperty.call(projectedData, fieldName) && projectedData[fieldName]) {
141
+ if (projectedData[fieldName]) {
142
142
  if (projectedKeyData != null && !(projectedKeyData instanceof Error)) {
143
143
  projectedData[fieldName] = utils.mergeDeep(
144
144
  [projectedData[fieldName], projectedKeyData],
@@ -2320,7 +2320,7 @@ function mergeResults(results, getFieldNames) {
2320
2320
  } else if (result instanceof Error) {
2321
2321
  errors.push(result);
2322
2322
  } else if (result != null) {
2323
- datas.push(delegate.removePrototypePollutingKeys(result));
2323
+ datas.push(result);
2324
2324
  }
2325
2325
  }
2326
2326
  if (datas.length) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getTypeInfo, handleOverrideByDelegation, extractUnavailableFieldsFromSelectionSet, subtractSelectionSets, delegateToSchema, removePrototypePollutingKeys, OBJECT_SUBSCHEMA_SYMBOL, FIELD_SUBSCHEMA_MAP_SYMBOL, UNPATHED_ERRORS_SYMBOL, isExternalObject, createDefaultExecutor } from '@graphql-tools/delegate';
1
+ import { getTypeInfo, handleOverrideByDelegation, extractUnavailableFieldsFromSelectionSet, subtractSelectionSets, delegateToSchema, OBJECT_SUBSCHEMA_SYMBOL, FIELD_SUBSCHEMA_MAP_SYMBOL, UNPATHED_ERRORS_SYMBOL, isExternalObject, createDefaultExecutor } from '@graphql-tools/delegate';
2
2
  import { mapSchema, MapperKind, memoize1, parseSelectionSet, mergeDeep, getDirectiveExtensions, createGraphQLError, fakePromise } from '@graphql-tools/utils';
3
3
  import { DisposableSymbols } from '@whatwg-node/disposablestack';
4
4
  import { CustomEvent } from '@whatwg-node/events';
@@ -136,7 +136,7 @@ function projectDataSelectionSet(data, selectionSet) {
136
136
  data[responseKey],
137
137
  selection.selectionSet
138
138
  );
139
- if (Object.prototype.hasOwnProperty.call(projectedData, fieldName) && projectedData[fieldName]) {
139
+ if (projectedData[fieldName]) {
140
140
  if (projectedKeyData != null && !(projectedKeyData instanceof Error)) {
141
141
  projectedData[fieldName] = mergeDeep(
142
142
  [projectedData[fieldName], projectedKeyData],
@@ -2318,7 +2318,7 @@ function mergeResults(results, getFieldNames) {
2318
2318
  } else if (result instanceof Error) {
2319
2319
  errors.push(result);
2320
2320
  } else if (result != null) {
2321
- datas.push(removePrototypePollutingKeys(result));
2321
+ datas.push(result);
2322
2322
  }
2323
2323
  }
2324
2324
  if (datas.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/federation",
3
- "version": "4.4.15",
3
+ "version": "4.4.16-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
4
4
  "type": "module",
5
5
  "description": "Useful tools to create and manipulate GraphQL schemas.",
6
6
  "repository": {
@@ -38,14 +38,14 @@
38
38
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@graphql-tools/delegate": "^12.1.4",
42
- "@graphql-tools/executor": "^1.4.13",
43
- "@graphql-tools/executor-http": "^3.3.0",
44
- "@graphql-tools/merge": "^9.1.5",
45
- "@graphql-tools/schema": "^10.0.29",
46
- "@graphql-tools/stitch": "^10.2.5",
47
- "@graphql-tools/utils": "^11.0.0",
48
- "@graphql-tools/wrap": "^11.1.24",
41
+ "@graphql-tools/delegate": "12.1.5-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
42
+ "@graphql-tools/executor": "^2.0.1",
43
+ "@graphql-tools/executor-http": "3.3.1-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
44
+ "@graphql-tools/merge": "^9.2.4",
45
+ "@graphql-tools/schema": "^10.1.1",
46
+ "@graphql-tools/stitch": "10.2.6-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
47
+ "@graphql-tools/utils": "^12.0.1",
48
+ "@graphql-tools/wrap": "11.1.25-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
49
49
  "@graphql-yoga/typed-event-target": "^3.0.2",
50
50
  "@whatwg-node/disposablestack": "^0.0.6",
51
51
  "@whatwg-node/events": "^0.1.2",