@graphql-tools/stitching-directives 3.1.21-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac → 3.1.21-alpha-7a96d09867625855c68239102abbae78fbab840d

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,15 +1,11 @@
1
1
  # @graphql-tools/stitching-directives
2
2
 
3
- ## 3.1.21-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac
3
+ ## 3.1.21-alpha-7a96d09867625855c68239102abbae78fbab840d
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [#269](https://github.com/graphql-hive/gateway/pull/269) [`03024b7`](https://github.com/graphql-hive/gateway/commit/03024b74fd203ca91aeaf6c0b4011efd1bd7e68a) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
8
-
9
- - Updated dependency [`@graphql-tools/utils@^10.6.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.2) (from `^10.6.0`, in `dependencies`)
10
-
11
- - Updated dependencies [[`7df2215`](https://github.com/graphql-hive/gateway/commit/7df2215abd309dc1dfd91f4ec91ce975f3982c62), [`03024b7`](https://github.com/graphql-hive/gateway/commit/03024b74fd203ca91aeaf6c0b4011efd1bd7e68a)]:
12
- - @graphql-tools/delegate@10.2.6-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac
7
+ - Updated dependencies [[`7df2215`](https://github.com/graphql-hive/gateway/commit/7df2215abd309dc1dfd91f4ec91ce975f3982c62)]:
8
+ - @graphql-tools/delegate@10.2.6-alpha-7a96d09867625855c68239102abbae78fbab840d
13
9
 
14
10
  ## 3.1.20
15
11
 
package/dist/index.cjs CHANGED
@@ -756,13 +756,13 @@ function generateKeyFn(mergedTypeResolverInfo) {
756
756
  function generateArgsFromKeysFn(mergedTypeResolverInfo) {
757
757
  const { expansions, args } = mergedTypeResolverInfo;
758
758
  return function generateArgsFromKeys(keys) {
759
- const newArgs = { ...args };
759
+ const newArgs = utils.mergeDeep([{}, args]);
760
760
  if (expansions) {
761
761
  for (const expansion of expansions) {
762
762
  const mappingInstructions = expansion.mappingInstructions;
763
763
  const expanded = [];
764
764
  for (const key of keys) {
765
- let newValue = {};
765
+ let newValue = utils.mergeDeep([{}, expansion.valuePath]);
766
766
  for (const { destinationPath, sourcePath } of mappingInstructions) {
767
767
  if (destinationPath.length) {
768
768
  addProperty(
@@ -785,7 +785,7 @@ function generateArgsFromKeysFn(mergedTypeResolverInfo) {
785
785
  function generateArgsFn(mergedTypeResolverInfo) {
786
786
  const { mappingInstructions, args, usedProperties } = mergedTypeResolverInfo;
787
787
  return function generateArgs(originalResult) {
788
- const newArgs = { ...args };
788
+ const newArgs = utils.mergeDeep([{}, args]);
789
789
  const filteredResult = getProperties(originalResult, usedProperties);
790
790
  if (mappingInstructions) {
791
791
  for (const mappingInstruction of mappingInstructions) {
package/dist/index.js CHANGED
@@ -754,13 +754,13 @@ function generateKeyFn(mergedTypeResolverInfo) {
754
754
  function generateArgsFromKeysFn(mergedTypeResolverInfo) {
755
755
  const { expansions, args } = mergedTypeResolverInfo;
756
756
  return function generateArgsFromKeys(keys) {
757
- const newArgs = { ...args };
757
+ const newArgs = mergeDeep([{}, args]);
758
758
  if (expansions) {
759
759
  for (const expansion of expansions) {
760
760
  const mappingInstructions = expansion.mappingInstructions;
761
761
  const expanded = [];
762
762
  for (const key of keys) {
763
- let newValue = {};
763
+ let newValue = mergeDeep([{}, expansion.valuePath]);
764
764
  for (const { destinationPath, sourcePath } of mappingInstructions) {
765
765
  if (destinationPath.length) {
766
766
  addProperty(
@@ -783,7 +783,7 @@ function generateArgsFromKeysFn(mergedTypeResolverInfo) {
783
783
  function generateArgsFn(mergedTypeResolverInfo) {
784
784
  const { mappingInstructions, args, usedProperties } = mergedTypeResolverInfo;
785
785
  return function generateArgs(originalResult) {
786
- const newArgs = { ...args };
786
+ const newArgs = mergeDeep([{}, args]);
787
787
  const filteredResult = getProperties(originalResult, usedProperties);
788
788
  if (mappingInstructions) {
789
789
  for (const mappingInstruction of mappingInstructions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/stitching-directives",
3
- "version": "3.1.21-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac",
3
+ "version": "3.1.21-alpha-7a96d09867625855c68239102abbae78fbab840d",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {
@@ -38,12 +38,12 @@
38
38
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@graphql-tools/delegate": "10.2.6-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac",
42
- "@graphql-tools/utils": "^10.6.2",
41
+ "@graphql-tools/delegate": "10.2.6-alpha-7a96d09867625855c68239102abbae78fbab840d",
42
+ "@graphql-tools/utils": "^10.6.0",
43
43
  "tslib": "^2.4.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@graphql-tools/schema": "^10.0.11",
46
+ "@graphql-tools/schema": "^10.0.8",
47
47
  "graphql": "^16.9.0",
48
48
  "pkgroll": "2.5.1"
49
49
  },