UNPKG

@graphql-tools/wrap

Version:

A set of utils for faster development of GraphQL tools

1,558 lines (1,047 loc) 56.5 kB
# @graphql-tools/wrap ## 10.0.35-alpha-da3ad60bd5595c273b81e55eea65bde564632356 ### Patch Changes - Updated dependencies [[`c7ea2c5`](https://github.com/graphql-hive/gateway/commit/c7ea2c5ae71b6b338ef22edd927a3fc93803965f)]: - @graphql-tools/delegate@10.2.17-alpha-da3ad60bd5595c273b81e55eea65bde564632356 ## 10.0.34 ### Patch Changes - [#532](https://github.com/graphql-hive/gateway/pull/532) [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@whatwg-node/promise-helpers@^1.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.3.0) (from `^1.2.5`, in `dependencies`) - Updated dependencies [[`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04)]: - @graphql-tools/delegate@10.2.16 ## 10.0.33 ### Patch Changes - [#862](https://github.com/graphql-hive/gateway/pull/862) [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@whatwg-node/promise-helpers@^1.2.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.2.5) (from `^1.0.0`, in `dependencies`) - Updated dependencies [[`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448)]: - @graphql-tools/delegate@10.2.15 ## 10.0.32 ### Patch Changes - [#726](https://github.com/graphql-hive/gateway/pull/726) [`6334b2e`](https://github.com/graphql-hive/gateway/commit/6334b2e5d4942693121ab7d44a96fa80408aace1) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@whatwg-node/promise-helpers@^1.0.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.0.0) (to `dependencies`) - Updated dependencies [[`6334b2e`](https://github.com/graphql-hive/gateway/commit/6334b2e5d4942693121ab7d44a96fa80408aace1), [`2a54e85`](https://github.com/graphql-hive/gateway/commit/2a54e85f2848aea7525703ea33918a21db96b26b)]: - @graphql-tools/delegate@10.2.14 ## 10.0.31 ### Patch Changes - Updated dependencies [[`2318393`](https://github.com/graphql-hive/gateway/commit/2318393bc7b3aca7f53806a44b59277cd176702d)]: - @graphql-tools/delegate@10.2.13 ## 10.0.30 ### Patch Changes - [#620](https://github.com/graphql-hive/gateway/pull/620) [`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.8.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.8.1) (from `^10.7.0`, in `dependencies`) - Updated dependencies [[`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9)]: - @graphql-tools/delegate@10.2.12 ## 10.0.29 ### Patch Changes - Updated dependencies [[`9144222`](https://github.com/graphql-hive/gateway/commit/91442220b2242a0fa082d4b544d03621572eecd0)]: - @graphql-tools/delegate@10.2.11 ## 10.0.28 ### Patch Changes - [#472](https://github.com/graphql-hive/gateway/pull/472) [`e9f78cd`](https://github.com/graphql-hive/gateway/commit/e9f78cd29681ca9b4371e12953a31d2b8f5e4c17) Thanks [@ardatan](https://github.com/ardatan)! - `RenameObjectFieldArguments` should transform the passed `args` in `delegationContext`. When a subschema's a root field argument is renamed, the passed arguments should be also transformed; ```graphql type Query { # This is the original field book(book_id: ID): [Book] } type Book { id: ID title: String } ``` When the subschema above is transformed to; ```graphql type Query { # This is the transformed field book(bookId: ID): [Book] } type Book { id: ID title: String } ``` The following call should be transformed; ```ts delegateToSchema({ schema: { schema, transforms: [ new RenameObjectFieldArguments((typeName, fieldName, argName) => { if ( typeName === 'Query' && fieldName === 'book' && argName === 'book_id' ) { return 'bookId'; } return argName; }), ], }, operation: 'query', fieldName: 'book', args: { bookId: '1', }, }); ``` To this query; ```graphql { book(book_id: "1") { # ... } } ``` - Updated dependencies [[`18682e6`](https://github.com/graphql-hive/gateway/commit/18682e6873091afe63f09414f02f93649a4da141)]: - @graphql-tools/delegate@10.2.10 ## 10.0.27 ### Patch Changes - [#373](https://github.com/graphql-hive/gateway/pull/373) [`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.7.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.7.0) (from `^10.6.2`, in `dependencies`) - Updated dependencies [[`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2)]: - @graphql-tools/delegate@10.2.9 ## 10.0.26 ### Patch Changes - Updated dependencies [[`23b8987`](https://github.com/graphql-hive/gateway/commit/23b89874fcf10b4cb6b1b941f29fa5f5aecf0ef2)]: - @graphql-tools/delegate@10.2.8 ## 10.0.25 ### Patch Changes - [#291](https://github.com/graphql-hive/gateway/pull/291) [`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`tslib@^2.8.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.1) (from `^2.4.0`, in `dependencies`) - Updated dependencies [[`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151)]: - @graphql-tools/delegate@10.2.7 ## 10.0.24 ### Patch Changes - [#269](https://github.com/graphql-hive/gateway/pull/269) [`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/schema@^10.0.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.11) (from `^10.0.7`, in `dependencies`) - 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`) - Updated dependencies [[`7df2215`](https://github.com/graphql-hive/gateway/commit/7df2215abd309dc1dfd91f4ec91ce975f3982c62), [`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4)]: - @graphql-tools/delegate@10.2.6 ## 10.0.23 ### Patch Changes - Updated dependencies [[`9ce705c`](https://github.com/graphql-hive/gateway/commit/9ce705c5ccc5e6f4ac26af6e6471a6d2f4e995db)]: - @graphql-tools/delegate@10.2.5 ## 10.0.22 ### Patch Changes - Updated dependencies []: - @graphql-tools/delegate@10.2.4 ## 10.0.21 ### Patch Changes - Updated dependencies [[`7ca0ff3`](https://github.com/graphql-hive/gateway/commit/7ca0ff331e42c133c4218a8086bbf0a7607f45d0)]: - @graphql-tools/delegate@10.2.3 ## 10.0.20 ### Patch Changes - Updated dependencies [[`2e0add3`](https://github.com/graphql-hive/gateway/commit/2e0add3ea9b237ad385d5b5cd4c12eeeb847805a)]: - @graphql-tools/delegate@10.2.2 ## 10.0.19 ### Patch Changes - [#164](https://github.com/graphql-hive/gateway/pull/164) [`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.6.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.0) (from `^10.5.6`, in `dependencies`) - [#185](https://github.com/graphql-hive/gateway/pull/185) [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Removed dependency [`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `dependencies`) - [#188](https://github.com/graphql-hive/gateway/pull/188) [`f71366d`](https://github.com/graphql-hive/gateway/commit/f71366d234fe8f30a419814fe1460f1e22663241) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Removed dependency [`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `dependencies`) - Updated dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf)]: - @graphql-tools/delegate@10.2.1 ## 10.0.18 ### Patch Changes - Updated dependencies [[`f32cb2a`](https://github.com/graphql-hive/gateway/commit/f32cb2a0289aa32e4811ced5dc1aac3efb0674f1)]: - @graphql-tools/delegate@10.2.0 ## 10.0.17 ### Patch Changes - [`19bc6a4`](https://github.com/graphql-hive/gateway/commit/19bc6a4c222ff157553785ea16760888cdfe10bb) Thanks [@enisdenjo](https://github.com/enisdenjo)! - `onError` and `onEnd` callbacks when mapping async iterators are invoked only once regardless of how many times throw/return was called on the iterator - Updated dependencies [[`73c621d`](https://github.com/graphql-hive/gateway/commit/73c621d98a4e6ca134527e349bc71223c03d06db)]: - @graphql-tools/delegate@10.1.3 ## 10.0.15 ### Patch Changes - Updated dependencies [[`342e044`](https://github.com/ardatan/graphql-tools/commit/342e044c7da74aaf5df6a90ce68973c525c9aa10)]: - @graphql-tools/delegate@10.1.1 ## 10.0.14 ### Patch Changes - Updated dependencies [[`e9906eb`](https://github.com/ardatan/graphql-tools/commit/e9906eb311132ab902720e75bc787228d67c0e34)]: - @graphql-tools/delegate@10.1.0 ## 10.0.13 ### Patch Changes - Updated dependencies [[`da1de08`](https://github.com/ardatan/graphql-tools/commit/da1de08c269a4cb3ed8240bf191833f7e75a6b01)]: - @graphql-tools/delegate@10.0.29 ## 10.0.12 ### Patch Changes - Updated dependencies [[`f470f49`](https://github.com/ardatan/graphql-tools/commit/f470f49f7d8445801a2983f14532124588f9f59e)]: - @graphql-tools/delegate@10.0.28 ## 10.0.11 ### Patch Changes - Updated dependencies [[`180f3f0`](https://github.com/ardatan/graphql-tools/commit/180f3f0c8362613eb3013ff12f2d5405cd987903)]: - @graphql-tools/delegate@10.0.27 ## 10.0.10 ### Patch Changes - Updated dependencies [[`8effad4`](https://github.com/ardatan/graphql-tools/commit/8effad4ffb9be1bca098b8cb6ce41b84ac7d9b6b)]: - @graphql-tools/delegate@10.0.26 ## 10.0.9 ### Patch Changes - Updated dependencies [[`8a16b01`](https://github.com/ardatan/graphql-tools/commit/8a16b01296457bdcfbb111e02b6f6569ef8b04aa)]: - @graphql-tools/delegate@10.0.25 ## 10.0.8 ### Patch Changes - Updated dependencies [[`4cdb462`](https://github.com/ardatan/graphql-tools/commit/4cdb46248774f2d5ae2757d40e1d55e83d7413b3)]: - @graphql-tools/delegate@10.0.24 ## 10.0.7 ### Patch Changes - Updated dependencies [[`7e2938d`](https://github.com/ardatan/graphql-tools/commit/7e2938d45c6d0a6eb6b18b89f9f80e9b5b5c08db)]: - @graphql-tools/delegate@10.0.23 ## 10.0.6 ### Patch Changes - Updated dependencies [[`cf2ce5e`](https://github.com/ardatan/graphql-tools/commit/cf2ce5ed4773087cc324599f2812f4fb91398b21)]: - @graphql-tools/utils@10.5.5 - @graphql-tools/delegate@10.0.22 - @graphql-tools/schema@10.0.7 ## 10.0.5 ### Patch Changes - [`807491e`](https://github.com/ardatan/graphql-tools/commit/807491ea259a4af6be10edb9c720be6fe65177ad) Thanks [@ardatan](https://github.com/ardatan)! - Skip fragments in TransformQuery ## 10.0.4 ### Patch Changes - [`69181f6`](https://github.com/ardatan/graphql-tools/commit/69181f6795fb750433e81c9a1c299ca3f6d03e00) Thanks [@ardatan](https://github.com/ardatan)! - MapLeafValues: fallback to `astFromValueUntyped` if `astFromValue` fails ## 10.0.3 ### Patch Changes - [#5963](https://github.com/ardatan/graphql-tools/pull/5963) [`8199416`](https://github.com/ardatan/graphql-tools/commit/81994160488aad1114b0d130083bcf694fe13aba) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Fix missing `__typename` field when it is already present but aliased. - Updated dependencies [[`baf3c28`](https://github.com/ardatan/graphql-tools/commit/baf3c28f43dcfafffd15386daeb153bc2895c1b3)]: - @graphql-tools/utils@10.1.1 ## 10.0.2 ### Patch Changes - [#5913](https://github.com/ardatan/graphql-tools/pull/5913) [`83c0af0`](https://github.com/ardatan/graphql-tools/commit/83c0af0713ff2ce55ccfb97a1810ecfecfeab703) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`) - Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`) - Updated dependencies [[`83c0af0`](https://github.com/ardatan/graphql-tools/commit/83c0af0713ff2ce55ccfb97a1810ecfecfeab703), [`83c0af0`](https://github.com/ardatan/graphql-tools/commit/83c0af0713ff2ce55ccfb97a1810ecfecfeab703), [`83c0af0`](https://github.com/ardatan/graphql-tools/commit/83c0af0713ff2ce55ccfb97a1810ecfecfeab703)]: - @graphql-tools/delegate@10.0.4 - @graphql-tools/schema@10.0.3 ## 10.0.1 ### Patch Changes - [#5572](https://github.com/ardatan/graphql-tools/pull/5572) [`aadb591f`](https://github.com/ardatan/graphql-tools/commit/aadb591f8cd99560d7adba3d66a193434425b47d) Thanks [@ardatan](https://github.com/ardatan)! - Fix for wrapping subscription types - Updated dependencies [[`aadb591f`](https://github.com/ardatan/graphql-tools/commit/aadb591f8cd99560d7adba3d66a193434425b47d)]: - @graphql-tools/delegate@10.0.3 ## 10.0.0 ### Major Changes - [#5274](https://github.com/ardatan/graphql-tools/pull/5274) [`944a68e8`](https://github.com/ardatan/graphql-tools/commit/944a68e8becf9c86b4c97fd17c372d98a285b955) Thanks [@ardatan](https://github.com/ardatan)! - Drop Node 14 support. Require Node.js `>= 16` - [#5274](https://github.com/ardatan/graphql-tools/pull/5274) [`944a68e8`](https://github.com/ardatan/graphql-tools/commit/944a68e8becf9c86b4c97fd17c372d98a285b955) Thanks [@ardatan](https://github.com/ardatan)! - `introspectSchema` has been removed, use `schemaFromExecutor` instead ### Patch Changes - Updated dependencies [[`8fba6cc1`](https://github.com/ardatan/graphql-tools/commit/8fba6cc1876e914d587f5b253332aaedbcaa65e6), [`944a68e8`](https://github.com/ardatan/graphql-tools/commit/944a68e8becf9c86b4c97fd17c372d98a285b955), [`944a68e8`](https://github.com/ardatan/graphql-tools/commit/944a68e8becf9c86b4c97fd17c372d98a285b955)]: - @graphql-tools/delegate@10.0.0 - @graphql-tools/schema@10.0.0 - @graphql-tools/utils@10.0.0 ## 9.4.2 ### Patch Changes - [`1c95368a`](https://github.com/ardatan/graphql-tools/commit/1c95368aea868be537d956ba5e994cde58dfee41) Thanks [@ardatan](https://github.com/ardatan)! - Use ranged versions for dependencies - Updated dependencies [[`1c95368a`](https://github.com/ardatan/graphql-tools/commit/1c95368aea868be537d956ba5e994cde58dfee41)]: - @graphql-tools/schema@9.0.18 - @graphql-tools/delegate@9.0.31 ## 9.4.1 ### Patch Changes - [`c8d5e0df`](https://github.com/ardatan/graphql-tools/commit/c8d5e0dfccdfc40d2a586650b56c124f3e4c5d42) Thanks [@ardatan](https://github.com/ardatan)! - Fix GraphQL v14 support - Updated dependencies []: - @graphql-tools/delegate@9.0.30 ## 9.4.0 ### Minor Changes - [`68c158d2`](https://github.com/ardatan/graphql-tools/commit/68c158d2b4e0f8bdd94daafd63ea6b3efb29d7eb) Thanks [@ardatan](https://github.com/ardatan)! - New transform `MoveRootField` ## 9.3.9 ### Patch Changes - Updated dependencies [[`f26392a6`](https://github.com/ardatan/graphql-tools/commit/f26392a66299956da1e66253b181f85332c93db5)]: - @graphql-tools/delegate@9.0.29 ## 9.3.8 ### Patch Changes - Updated dependencies []: - @graphql-tools/schema@9.0.17 ## 9.3.7 ### Patch Changes - Updated dependencies [[`492220cb`](https://github.com/ardatan/graphql-tools/commit/492220cbdf240e7abde23af0aabcb8cbc6fd3656)]: - @graphql-tools/delegate@9.0.28 ## 9.3.6 ### Patch Changes - Updated dependencies [[`30bd4d0c`](https://github.com/ardatan/graphql-tools/commit/30bd4d0c10f59147faba925dc0941c731b0532a9)]: - @graphql-tools/delegate@9.0.27 ## 9.3.5 ### Patch Changes - [#5023](https://github.com/ardatan/graphql-tools/pull/5023) [`85659bca`](https://github.com/ardatan/graphql-tools/commit/85659bca1bdbd6d4a9a6e875acfbf9bb36056ea6) Thanks [@SimenB](https://github.com/SimenB)! - Only warn about deprecated `introspectSchema` once - Updated dependencies [[`b09ea282`](https://github.com/ardatan/graphql-tools/commit/b09ea282f0945fb19f354af57aabddcd23b2a155), [`b5c8f640`](https://github.com/ardatan/graphql-tools/commit/b5c8f6407b74466ed0d2989000458cb59239e9af)]: - @graphql-tools/delegate@9.0.26 - @graphql-tools/utils@9.2.1 - @graphql-tools/schema@9.0.16 ## 9.3.4 ### Patch Changes - Updated dependencies [[`a94217e9`](https://github.com/ardatan/graphql-tools/commit/a94217e920c5d6237471ab6ad4d96cf230984177), [`62d074be`](https://github.com/ardatan/graphql-tools/commit/62d074be48779b1e096e056ca1233822c421dc99)]: - @graphql-tools/utils@9.2.0 - @graphql-tools/delegate@9.0.25 - @graphql-tools/schema@9.0.15 ## 9.3.3 ### Patch Changes - Updated dependencies [[`772b948a`](https://github.com/ardatan/graphql-tools/commit/772b948ae536ac23520e704b33f450c94252f113)]: - @graphql-tools/delegate@9.0.24 ## 9.3.2 ### Patch Changes - Updated dependencies []: - @graphql-tools/schema@9.0.14 - @graphql-tools/delegate@9.0.23 ## 9.3.1 ### Patch Changes - [`fdb3e4c4`](https://github.com/ardatan/graphql-tools/commit/fdb3e4c4bbd004c92b52c55a0733793339822639) Thanks [@ardatan](https://github.com/ardatan)! - Fix enum value transformation with `stitchSchemas` ## 9.3.0 ### Minor Changes - [#4960](https://github.com/ardatan/graphql-tools/pull/4960) [`499365aa`](https://github.com/ardatan/graphql-tools/commit/499365aa3f33148a47e708351416b6a54c17655a) Thanks [@ardatan](https://github.com/ardatan)! - Deprecate \`introspectSchema\` in favor of the new \`schemaFromExecutor\` ### Patch Changes - [#4943](https://github.com/ardatan/graphql-tools/pull/4943) [`a4d36fcc`](https://github.com/ardatan/graphql-tools/commit/a4d36fccce6113843a55b77c96328727f4c748bc) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`value-or-promise@1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `1.0.11`, in `dependencies`) - Updated dependencies [[`a4d36fcc`](https://github.com/ardatan/graphql-tools/commit/a4d36fccce6113843a55b77c96328727f4c748bc), [`a4d36fcc`](https://github.com/ardatan/graphql-tools/commit/a4d36fccce6113843a55b77c96328727f4c748bc), [`e3ec35ed`](https://github.com/ardatan/graphql-tools/commit/e3ec35ed27d4a329739c8da6be06ce74c8f25591)]: - @graphql-tools/delegate@9.0.22 - @graphql-tools/schema@9.0.13 - @graphql-tools/utils@9.1.4 ## 9.2.23 ### Patch Changes - Updated dependencies [[`13177794`](https://github.com/ardatan/graphql-tools/commit/131777947d111e6a952d9e0e581fd651664101a1)]: - @graphql-tools/delegate@9.0.21 ## 9.2.22 ### Patch Changes - [#4915](https://github.com/ardatan/graphql-tools/pull/4915) [`55e24643`](https://github.com/ardatan/graphql-tools/commit/55e24643fac7eb25b7e4a6fefb15bd48ee562593) Thanks [@ardatan](https://github.com/ardatan)! - Transform provided args correctly during delegation ## 9.2.21 ### Patch Changes - [#4890](https://github.com/ardatan/graphql-tools/pull/4890) [`eb6cd8b6`](https://github.com/ardatan/graphql-tools/commit/eb6cd8b65dc72434348c259538b233e57a58eb1a) Thanks [@ardatan](https://github.com/ardatan)! - Transform provided argument values properly - [#4890](https://github.com/ardatan/graphql-tools/pull/4890) [`eb6cd8b6`](https://github.com/ardatan/graphql-tools/commit/eb6cd8b65dc72434348c259538b233e57a58eb1a) Thanks [@ardatan](https://github.com/ardatan)! - Handle argument definitions correctly during delegation and transformations - Updated dependencies [[`eb6cd8b6`](https://github.com/ardatan/graphql-tools/commit/eb6cd8b65dc72434348c259538b233e57a58eb1a), [`eb6cd8b6`](https://github.com/ardatan/graphql-tools/commit/eb6cd8b65dc72434348c259538b233e57a58eb1a)]: - @graphql-tools/delegate@9.0.20 ## 9.2.20 ### Patch Changes - Updated dependencies [[`904fe770`](https://github.com/ardatan/graphql-tools/commit/904fe770a355ee3d79464c3bbf0375d2dcd64759), [`904fe770`](https://github.com/ardatan/graphql-tools/commit/904fe770a355ee3d79464c3bbf0375d2dcd64759)]: - @graphql-tools/utils@9.1.3 - @graphql-tools/delegate@9.0.19 - @graphql-tools/schema@9.0.12 ## 9.2.19 ### Patch Changes - Updated dependencies [[`13c24883`](https://github.com/ardatan/graphql-tools/commit/13c24883004d5330f7402cb20566e37535c5729b), [`b5e6459f`](https://github.com/ardatan/graphql-tools/commit/b5e6459f87cd8720457ce9bff38f3dfa0cb3c150)]: - @graphql-tools/delegate@9.0.18 - @graphql-tools/utils@9.1.2 - @graphql-tools/schema@9.0.11 ## 9.2.18 ### Patch Changes - [`02126e63`](https://github.com/ardatan/graphql-tools/commit/02126e631b103617e0f07b90e157d5be5678ef84) Thanks [@ardatan](https://github.com/ardatan)! - Fix handling nested list fields in HoistField ## 9.2.17 ### Patch Changes - [#4874](https://github.com/ardatan/graphql-tools/pull/4874) [`7aa610ae`](https://github.com/ardatan/graphql-tools/commit/7aa610ae01d63eebab92b0677650457338e73827) Thanks [@ardatan](https://github.com/ardatan)! - Support nested list fields in HoistField transform ## 9.2.16 ### Patch Changes - [`5bd8c0dc`](https://github.com/ardatan/graphql-tools/commit/5bd8c0dc565ec46b3ae2b507ed3f039e96a63ddb) Thanks [@ardatan](https://github.com/ardatan)! - Restore the old schema visiting behavior ## 9.2.15 ### Patch Changes - [`e3f81ea5`](https://github.com/ardatan/graphql-tools/commit/e3f81ea5bf449dafee45d6f770f88af8354aeffc) Thanks [@ardatan](https://github.com/ardatan)! - Select the original schema correctly ## 9.2.14 ### Patch Changes - [`df81034c`](https://github.com/ardatan/graphql-tools/commit/df81034c48b49ed5690f0c8cc61dc8dc47830bf8) Thanks [@ardatan](https://github.com/ardatan)! - Replace internal values with the external ones while wrapping schemas ## 9.2.13 ### Patch Changes - Updated dependencies [[`7411a5e7`](https://github.com/ardatan/graphql-tools/commit/7411a5e71a8138d9ccfe907b1fb01e62fcbb0cdb)]: - @graphql-tools/utils@9.1.1 - @graphql-tools/delegate@9.0.17 - @graphql-tools/schema@9.0.10 ## 9.2.12 ### Patch Changes - Updated dependencies []: - @graphql-tools/delegate@9.0.16 ## 9.2.11 ### Patch Changes - [#4825](https://github.com/ardatan/graphql-tools/pull/4825) [`1270b75a`](https://github.com/ardatan/graphql-tools/commit/1270b75a01ffca0d3f301bb809a572e0ee7b1c88) Thanks [@NullScope](https://github.com/NullScope)! - Fixed \_\_typename being added more than once in TransformCompositeFields - Updated dependencies [[`c0639dd0`](https://github.com/ardatan/graphql-tools/commit/c0639dd0065db1b5bcedaabf58b11945714bab8d)]: - @graphql-tools/utils@9.1.0 - @graphql-tools/delegate@9.0.15 - @graphql-tools/schema@9.0.9 ## 9.2.10 ### Patch Changes - [#4823](https://github.com/ardatan/graphql-tools/pull/4823) [`a58cd6d3`](https://github.com/ardatan/graphql-tools/commit/a58cd6d38d7856edbf9404a3694d592cd1c383d1) Thanks [@ardatan](https://github.com/ardatan)! - Fix the bug when an optional argument's value is not provided with MapLeafValues transform ## 9.2.9 ### Patch Changes - Updated dependencies [[`d83b1960`](https://github.com/ardatan/graphql-tools/commit/d83b19605be71481ccf8effd80d5254423ea811a)]: - @graphql-tools/utils@9.0.1 - @graphql-tools/delegate@9.0.14 - @graphql-tools/schema@9.0.8 ## 9.2.8 ### Patch Changes - Updated dependencies []: - @graphql-tools/delegate@9.0.13 ## 9.2.7 ### Patch Changes - Updated dependencies []: - @graphql-tools/delegate@9.0.12 ## 9.2.6 ### Patch Changes - Updated dependencies [[`80836fa7`](https://github.com/ardatan/graphql-tools/commit/80836fa78af3c6e61c61fe4d3bc52831b2c58931), [`8f6d3efc`](https://github.com/ardatan/graphql-tools/commit/8f6d3efc92b25236f5a3a761ea7ba2f0a7c7f550), [`80836fa7`](https://github.com/ardatan/graphql-tools/commit/80836fa78af3c6e61c61fe4d3bc52831b2c58931), [`80836fa7`](https://github.com/ardatan/graphql-tools/commit/80836fa78af3c6e61c61fe4d3bc52831b2c58931), [`80836fa7`](https://github.com/ardatan/graphql-tools/commit/80836fa78af3c6e61c61fe4d3bc52831b2c58931)]: - @graphql-tools/utils@9.0.0 - @graphql-tools/delegate@9.0.11 - @graphql-tools/schema@9.0.7 ## 9.2.5 ### Patch Changes - [`c1d01f3d`](https://github.com/ardatan/graphql-tools/commit/c1d01f3dd19b35dae4d4838af7f27490655549c6) Thanks [@ardatan](https://github.com/ardatan)! - Do not transform request if there is no value transformed during the schema transformation - Updated dependencies [[`f7daf777`](https://github.com/ardatan/graphql-tools/commit/f7daf7777cc214801886e4a45c0389bc5837d175)]: - @graphql-tools/utils@8.13.1 - @graphql-tools/delegate@9.0.10 - @graphql-tools/schema@9.0.6 ## 9.2.4 ### Patch Changes - Updated dependencies [[`df5848b8`](https://github.com/ardatan/graphql-tools/commit/df5848b85102827f004f23aded7cf802cdcde00f), [`df5848b8`](https://github.com/ardatan/graphql-tools/commit/df5848b85102827f004f23aded7cf802cdcde00f), [`df5848b8`](https://github.com/ardatan/graphql-tools/commit/df5848b85102827f004f23aded7cf802cdcde00f), [`df5848b8`](https://github.com/ardatan/graphql-tools/commit/df5848b85102827f004f23aded7cf802cdcde00f)]: - @graphql-tools/delegate@9.0.9 - @graphql-tools/utils@8.13.0 - @graphql-tools/schema@9.0.5 ## 9.2.3 ### Patch Changes - Updated dependencies [[`0402894d`](https://github.com/ardatan/graphql-tools/commit/0402894d0b2747ae5d98d28df9b39d6a06cc5f2a)]: - @graphql-tools/delegate@9.0.8 ## 9.2.2 ### Patch Changes - Updated dependencies [[`00c4a1a4`](https://github.com/ardatan/graphql-tools/commit/00c4a1a44e14b9950f44d56f44967ab7a0121706)]: - @graphql-tools/delegate@9.0.7 ## 9.2.1 ### Patch Changes - [#4713](https://github.com/ardatan/graphql-tools/pull/4713) [`c21a895a`](https://github.com/ardatan/graphql-tools/commit/c21a895a19721f73037d43e664aa8346f59356e8) Thanks [@ardatan](https://github.com/ardatan)! - Just rename the existing variable instead of creating a new one ## 9.2.0 ### Minor Changes - [#4706](https://github.com/ardatan/graphql-tools/pull/4706) [`43c736bd`](https://github.com/ardatan/graphql-tools/commit/43c736bd1865c00898966a7ed14060496c9e6a0c) Thanks [@ardatan](https://github.com/ardatan)! - RenameTypes: do not rename type if the new name already exists in the schema ### Patch Changes - Updated dependencies [[`43c736bd`](https://github.com/ardatan/graphql-tools/commit/43c736bd1865c00898966a7ed14060496c9e6a0c)]: - @graphql-tools/utils@8.12.0 - @graphql-tools/delegate@9.0.6 - @graphql-tools/schema@9.0.4 ## 9.1.0 ### Minor Changes - [#4703](https://github.com/ardatan/graphql-tools/pull/4703) [`dd8886d1`](https://github.com/ardatan/graphql-tools/commit/dd8886d1534fdf73b7cfb6d54b13a3db5812b38b) Thanks [@ardatan](https://github.com/ardatan)! - Better error handling for introspectSchema ## 9.0.6 ### Patch Changes - Updated dependencies [[`71cb4fae`](https://github.com/ardatan/graphql-tools/commit/71cb4faeb0833a228520a7bc2beed8ac7274443f), [`403ed450`](https://github.com/ardatan/graphql-tools/commit/403ed4507eff7cd509f410f7542a702da72e1a9a)]: - @graphql-tools/utils@8.11.0 - @graphql-tools/delegate@9.0.5 - @graphql-tools/schema@9.0.3 ## 9.0.5 ### Patch Changes - [#4673](https://github.com/ardatan/graphql-tools/pull/4673) [`4fe3d9c0`](https://github.com/ardatan/graphql-tools/commit/4fe3d9c037e9c138bd8a9b04b3977d74eba32c97) Thanks [@thgreasi](https://github.com/thgreasi)! - Fix typings for TypeScript 4.8 * [#4676](https://github.com/ardatan/graphql-tools/pull/4676) [`4e4fac0a`](https://github.com/ardatan/graphql-tools/commit/4e4fac0a8a46b5498a30a81932ef28d1f788efaa) Thanks [@NullScope](https://github.com/NullScope)! - Fix transforming/renaming Wrapped GraphQL Arguments * Updated dependencies [[`4fe3d9c0`](https://github.com/ardatan/graphql-tools/commit/4fe3d9c037e9c138bd8a9b04b3977d74eba32c97)]: - @graphql-tools/utils@8.10.1 - @graphql-tools/delegate@9.0.4 - @graphql-tools/schema@9.0.2 ## 9.0.4 ### Patch Changes - [#4640](https://github.com/ardatan/graphql-tools/pull/4640) [`27bdc237`](https://github.com/ardatan/graphql-tools/commit/27bdc23713a5176485ac940fc5431256b4f2de8d) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/delegate@9.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.3) (was `9.0.2`, in `dependencies`) ## 9.0.3 ### Patch Changes - [`0555a972`](https://github.com/ardatan/graphql-tools/commit/0555a972f010d2b3ca93b9164b26474a78d0b20b) Thanks [@ardatan](https://github.com/ardatan)! - Bump versions - Updated dependencies [[`0555a972`](https://github.com/ardatan/graphql-tools/commit/0555a972f010d2b3ca93b9164b26474a78d0b20b)]: - @graphql-tools/delegate@9.0.3 ## 9.0.2 ### Patch Changes - [#4648](https://github.com/ardatan/graphql-tools/pull/4648) [`29ee7542`](https://github.com/ardatan/graphql-tools/commit/29ee7542649e9c938bdb9c751bd3a2f56d17cb55) Thanks [@ardatan](https://github.com/ardatan)! - Do not call `Transform.transformSchema` more than once - Updated dependencies [[`29ee7542`](https://github.com/ardatan/graphql-tools/commit/29ee7542649e9c938bdb9c751bd3a2f56d17cb55)]: - @graphql-tools/delegate@9.0.2 ## 9.0.1 ### Patch Changes - Updated dependencies [[`2609d71f`](https://github.com/ardatan/graphql-tools/commit/2609d71f7c3a0ef2b381c51d9ce60b0de49f9b27)]: - @graphql-tools/utils@8.10.0 - @graphql-tools/schema@9.0.1 - @graphql-tools/delegate@9.0.1 ## 9.0.0 ### Major Changes - [#4566](https://github.com/ardatan/graphql-tools/pull/4566) [`d8dc67aa`](https://github.com/ardatan/graphql-tools/commit/d8dc67aa6cb05bf10f5f16e90690e5ccc87b3426) Thanks [@ardatan](https://github.com/ardatan)! - ## Breaking changes **Schema generation optimization by removing `transfomedSchema` parameter** Previously we were applying the transforms multiple times. We needed to introduced some breaking changes to improve the initial wrapped/stitched schema generation performance; - `Transform.transformSchema` no longer accepts `transformedSchema` which can easily be created with `applySchemaTransforms(schema, subschemaConfig)` instead. - Proxying resolver factory function that is passed as `createProxyingResolver` to `SubschemaConfig` no longer takes `transformedSchema` which can easily be created with `applySchemaTransforms(schema, subschemaConfig)` instead. **`stitchSchemas` doesn't take nested arrays of subschemas** `stitchSchemas` no longer accepts an array of arrays of subschema configuration objects. Instead, it accepts an array of subschema configuration objects or schema objects directly. **`stitchSchemas` no longer prunes the schema with `pruningOptions`** You can use `pruneSchema` from `@graphql-tools/utils` to prune the schema instead. **`stitchSchemas` no longer respect "@computed" directive if stitchingDirectivesTransformer isn't applied** Also `@graphql-tools/stitch` no longer exports `computedDirectiveTransformer` and `defaultSubschemaConfigTransforms`. Instead, use `@graphql-tools/stitching-directives` package for `@computed` directive. [Learn more about setting it up](https://www.graphql-tools.com/docs/schema-stitching/stitch-directives-sdl#directives-glossary) **`computedFields` has been removed from the merged type configuration** `MergeTypeConfig.computedFields` setting has been removed in favor of new computed field configuration written as: ```js merge: { MyType: { fields: { myComputedField: { selectionSet: '{ weight }', computed: true, } } } } ``` A field-level `selectionSet` specifies field dependencies while the `computed` setting structures the field in a way that assures it is always selected with this data provided. The `selectionSet` is intentionally generic to support possible future uses. This new pattern organizes all field-level configuration (including `canonical`) into a single structure. ### Patch Changes - [#4624](https://github.com/ardatan/graphql-tools/pull/4624) [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext` - Updated dependencies [[`8cc8721f`](https://github.com/ardatan/graphql-tools/commit/8cc8721fbbff3c978fd67d162df833d6973c1860), [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67), [`d8dc67aa`](https://github.com/ardatan/graphql-tools/commit/d8dc67aa6cb05bf10f5f16e90690e5ccc87b3426)]: - @graphql-tools/schema@9.0.0 - @graphql-tools/delegate@9.0.0 - @graphql-tools/utils@8.9.1 ## 8.5.1 ### Patch Changes - Updated dependencies [2a3b45e3] - @graphql-tools/utils@8.9.0 - @graphql-tools/delegate@8.8.1 - @graphql-tools/schema@8.5.1 ## 8.5.0 ### Minor Changes - d76a299c: Support TypeScript module resolution. ### Patch Changes - Updated dependencies [a0abbbcd] - Updated dependencies [d76a299c] - @graphql-tools/utils@8.8.0 - @graphql-tools/delegate@8.8.0 - @graphql-tools/schema@8.5.0 ## 8.4.21 ### Patch Changes - Updated dependencies [6df204de] - Updated dependencies [4914970b] - @graphql-tools/delegate@8.7.12 - @graphql-tools/schema@8.4.0 - @graphql-tools/utils@8.7.0 ## 8.4.20 ### Patch Changes - 041c5ba1: Use caret range for the tslib dependency - Updated dependencies [041c5ba1] - @graphql-tools/delegate@8.7.11 - @graphql-tools/schema@8.3.14 - @graphql-tools/utils@8.6.13 ## 8.4.19 ### Patch Changes - 7c3b2797: fix(wrap): wrapped types and fields should be non null - Updated dependencies [da7ad43b] - @graphql-tools/utils@8.6.12 - @graphql-tools/delegate@8.7.10 - @graphql-tools/schema@8.3.13 ## 8.4.18 ### Patch Changes - Updated dependencies [c0762ee3] - @graphql-tools/utils@8.6.11 - @graphql-tools/delegate@8.7.9 - @graphql-tools/schema@8.3.12 ## 8.4.17 ### Patch Changes - Updated dependencies [0fc510cb] - @graphql-tools/utils@8.6.10 - @graphql-tools/delegate@8.7.8 - @graphql-tools/schema@8.3.11 ## 8.4.16 ### Patch Changes - Updated dependencies [31a33e2b] - @graphql-tools/utils@8.6.9 - @graphql-tools/delegate@8.7.7 - @graphql-tools/schema@8.3.10 ## 8.4.15 ### Patch Changes - Updated dependencies [26e4b464] - @graphql-tools/delegate@8.7.6 ## 8.4.14 ### Patch Changes - Updated dependencies [cb238877] - @graphql-tools/utils@8.6.8 - @graphql-tools/delegate@8.7.5 - @graphql-tools/schema@8.3.9 ## 8.4.13 ### Patch Changes - 0bbb1769: Refine generic typings using `extends X` when appropriate Typescript 4.7 has stricter requirements around generics which is explained well in the related PR: https://github.com/microsoft/TypeScript/pull/48366 These changes resolve the errors that these packages will face when attempting to upgrade to TS 4.7 (still in beta at the time of writing this). Landing these changes now will allow other TS libraries which depend on these packages to experiment with TS 4.7 in the meantime. - Updated dependencies [0bbb1769] - @graphql-tools/delegate@8.7.4 - @graphql-tools/utils@8.6.7 - @graphql-tools/schema@8.3.8 ## 8.4.12 ### Patch Changes - Updated dependencies [fe9402af] - @graphql-tools/delegate@8.7.3 ## 8.4.11 ### Patch Changes - Updated dependencies [904c0847] - @graphql-tools/utils@8.6.6 - @graphql-tools/delegate@8.7.2 - @graphql-tools/schema@8.3.7 ## 8.4.10 ### Patch Changes - Updated dependencies [722abad7] - @graphql-tools/schema@8.3.6 - @graphql-tools/delegate@8.7.1 ## 8.4.9 ### Patch Changes - Updated dependencies [d8fd6b94] - @graphql-tools/delegate@8.7.0 ## 8.4.8 ### Patch Changes - Updated dependencies [be2c02d7] - @graphql-tools/utils@8.6.5 - @graphql-tools/delegate@8.6.1 - @graphql-tools/schema@8.3.5 ## 8.4.7 ### Patch Changes - Updated dependencies [c40e801f] - Updated dependencies [d36d530b] - @graphql-tools/delegate@8.6.0 - @graphql-tools/utils@8.6.4 - @graphql-tools/schema@8.3.4 ## 8.4.6 ### Patch Changes - 0c0c6857: fix - align versions - Updated dependencies [0c0c6857] - @graphql-tools/delegate@8.5.4 - @graphql-tools/schema@8.3.3 ## 8.4.5 ### Patch Changes - 3da3d66c: fix - align versions - Updated dependencies [3da3d66c] - @graphql-tools/utils@8.6.3 ## 8.4.4 ### Patch Changes - c84840cd: fix(url-loader): get dynamic endpoint value correctly ## 8.4.3 ### Patch Changes - 304da972: feat(wrap): RenameObjectFieldArguments transform ## 8.4.2 ### Patch Changes - 18341363: feat(visitResult): ignore if field not present in visited object - Updated dependencies [18341363] - @graphql-tools/delegate@8.5.1 - @graphql-tools/schema@8.3.2 - @graphql-tools/utils@8.6.2 ## 8.4.1 ### Patch Changes - 639c1133: fix(wrap): return if transformed field node isn't in the schema ## 8.4.0 ### Minor Changes - 081b97e8: Add better type support for stitchSchemas using subschema transformations ### Patch Changes - Updated dependencies [081b97e8] - @graphql-tools/delegate@8.5.0 ## 8.3.3 ### Patch Changes - 5642b20e: fix(wrap): fix input type transformation ## 8.3.2 ### Patch Changes - 960e178a: fix: isAsyncIterable should check if it is an object with iterator factory function - Updated dependencies [960e178a] - Updated dependencies [947a3fe0] - @graphql-tools/delegate@8.4.2 - @graphql-tools/utils@8.5.3 ## 8.3.1 ### Patch Changes - 981eef80: enhance: remove isPromise and cleanup file-upload handling - 4bfb3428: enhance: use ^ for tslib dependency - Updated dependencies [4bfb3428] - @graphql-tools/delegate@8.4.1 - @graphql-tools/schema@8.3.1 - @graphql-tools/utils@8.5.1 ## 8.3.0 ### Minor Changes - ad04dc79: enhance: make operationType optional ### Patch Changes - Updated dependencies [ad04dc79] - @graphql-tools/delegate@8.4.0 - @graphql-tools/utils@8.5.0 ## 8.2.0 ### Minor Changes - 149afddb: fix: getting ready for GraphQL v16 ### Patch Changes - Updated dependencies [149afddb] - @graphql-tools/delegate@8.3.0 - @graphql-tools/schema@8.3.0 - @graphql-tools/utils@8.4.0 ## 8.1.1 ### Patch Changes - d88a85a4: fix(wrap): fixing variables missing on wrap/MapLeafValues transform ## 8.1.0 ### Minor Changes - c5b0719c: feat: GraphQL v16 support ### Patch Changes - Updated dependencies [c5b0719c] - Updated dependencies [c5b0719c] - Updated dependencies [c5b0719c] - Updated dependencies [c5b0719c] - Updated dependencies [c5b0719c] - @graphql-tools/delegate@8.2.0 - @graphql-tools/utils@8.2.0 - @graphql-tools/schema@8.2.0 ## 8.0.13 ### Patch Changes - e50852e6: use version ranges instead of a fixed version for the graphql-tools package versions - Updated dependencies [631b11bd] - Updated dependencies [e50852e6] - @graphql-tools/delegate@8.1.0 - @graphql-tools/schema@8.1.2 ## 8.0.12 ### Patch Changes - Updated dependencies [2c807ddb] - @graphql-tools/utils@8.1.1 - @graphql-tools/delegate@8.0.10 - @graphql-tools/schema@8.1.1 ## 8.0.11 ### Patch Changes - Updated dependencies [9a13357c] - @graphql-tools/delegate@8.0.9 ## 8.0.10 ### Patch Changes - Updated dependencies [b9684631] - Updated dependencies [9ede806a] - Updated dependencies [67691b78] - @graphql-tools/utils@8.1.0 - @graphql-tools/schema@8.1.0 - @graphql-tools/delegate@8.0.8 ## 8.0.9 ### Patch Changes - a7dee807: fix(wrap): handle non nullable input variables correctly ## 8.0.8 ### Patch Changes - 343e697e: Fix TransformQuery for path longer than 1 ## 8.0.7 ### Patch Changes - Updated dependencies [d47dcf42] - @graphql-tools/delegate@8.0.7 ## 8.0.6 ### Patch Changes - Updated dependencies [ded29f3d] - @graphql-tools/delegate@8.0.6 ## 8.0.5 ### Patch Changes - Updated dependencies [7fdef335] - @graphql-tools/delegate@8.0.5 ## 8.0.4 ### Patch Changes - Updated dependencies [04830049] - @graphql-tools/utils@8.0.2 - @graphql-tools/delegate@8.0.4 - @graphql-tools/schema@8.0.2 ## 8.0.3 ### Patch Changes - Updated dependencies [b823dbaf] - @graphql-tools/utils@8.0.1 - @graphql-tools/delegate@8.0.3 - @graphql-tools/schema@8.0.1 ## 8.0.2 ### Patch Changes - Updated dependencies [d93945fa] - @graphql-tools/delegate@8.0.2 ## 8.0.1 ### Patch Changes - c36defbe: fix(delegate): fix ESM import - Updated dependencies [c36defbe] - @graphql-tools/delegate@8.0.1 ## 8.0.0 ### Major Changes - 7d3e3006: BREAKING CHANGE - `makeRemoteExecutableSchema` has been removed. - - You can use [`wrapSchema`](https://www.graphql-tools.com/docs/remote-schemas#creating-an-executor) instead - dae6dc7b: refactor: ExecutionParams type replaced by Request type rootValue property is now a part of the Request type. When delegating with delegateToSchema, rootValue can be set multiple ways: - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. - when using the default executor (execute/subscribe from graphql-js): -- rootValue can be passed to delegateToSchema via a named option -- rootValue can be included within a subschemaConfig -- otherwise, rootValue is inferred from the originating schema When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. - c42e811d: BREAKING CHANGES; - Rename `Request` to `ExecutionRequest` - Add required `operationType: OperationTypeNode` field in `ExecutionRequest` - Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` > It doesn't rely on info.operation.operationType to allow the user to call an operation from > different root type. And it doesn't call getOperationAST again and again to get operation type > from the document/operation because we have it in Request and ExecutionParams > https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 Improvements; - Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. - And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. > Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize > the default executor so this memoization wasn't working correctly on `batch-execute` side. > https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 - 7d3e3006: BREAKING CHANGE - Now it uses the native [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) implementation. The major difference is the individual errors are kept under `errors` property instead of the object itself with `Symbol.iterator`. ```js // From; for (const error of aggregateError) // To; for (const error of aggregateError.errors) ``` - c0ca3190: BREAKING CHANGE - Remove unnecessary `introspectSchemaSync`, `introspectSchema` already handles sync execution - 74581cf3: fix(getDirectives): preserve order around repeatable directives BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of `name` and `args` properties. New useful function `getDirective` returns an array of objects representing any args for each use of a single directive (returning the empty object `{}` when a directive is used without arguments). Note: The `getDirective` function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive! When specifying directives in extensions, one can use either the old or new format. - c0ca3190: BREAKING CHANGE - Remove Subscriber and use only Executor - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries ### Patch Changes - Updated dependencies [af9a78de] - Updated dependencies [7d3e3006] - Updated dependencies [9c26b847] - Updated dependencies [7d3e3006] - Updated dependencies [d53e3be5] - Updated dependencies [7d3e3006] - Updated dependencies [dae6dc7b] - Updated dependencies [6877b913] - Updated dependencies [7d3e3006] - Updated dependencies [c42e811d] - Updated dependencies [7d3e3006] - Updated dependencies [8c8d4fc0] - Updated dependencies [7d3e3006] - Updated dependencies [7d3e3006] - Updated dependencies [aa43054d] - Updated dependencies [7d3e3006] - Updated dependencies [74581cf3] - Updated dependencies [c0ca3190] - Updated dependencies [7d3e3006] - Updated dependencies [982c8f53] - Updated dependencies [7d3e3006] - Updated dependencies [7d3e3006] - Updated dependencies [7d3e3006] - @graphql-tools/utils@8.0.0 - @graphql-tools/delegate@8.0.0 - @graphql-tools/schema@8.0.0 ## 7.0.8 ### Patch Changes - 22a9f3da: fix(deps): follow package conventions on when to pin - Updated dependencies [22a9f3da] - @graphql-tools/delegate@7.1.5 - @graphql-tools/schema@7.1.5 ## 7.0.7 ### Patch Changes - 36f19ddb: fix(TransformQuery): pass delegation context to query and result transformers for required flexibility - Updated dependencies [dbdb78e0] - @graphql-tools/utils@7.8.1 ## 7.0.6 ### Patch Changes - 61da3e82: use value-or-promise to streamline working with sync values or async promises - Updated dependencies [61da3e82] - @graphql-tools/delegate@7.1.4 - @graphql-tools/schema@7.1.4 ## 7.0.5 ### Patch Changes - 270046a1: fix(TransformInputObjectFields): transform variables #2353 - Updated dependencies [270046a1] - @graphql-tools/utils@7.2.1 ## 7.0.4 ### Patch Changes - 4240a959: enhance(wrap): use introspectSchema for both sync and async executors - Updated dependencies [4240a959] - @graphql-tools/utils@7.1.4 ## 7.0.3 ### Patch Changes - 21da6904: fix release - Updated dependencies [21da6904] - @graphql-tools/schema@7.1.2 - @graphql-tools/utils@7.1.2 ## 7.0.2 ### Patch Changes - 9f60cad6: fix(transforms): don't add \_\_typename to subscriptions see: https://github.com/ardatan/graphql-tools/issues/2282 https://github.com/graphql/graphql-js/pull/2861 https://github.com/graphql/graphql-spec/pull/776 - Updated dependencies [1b730f80] - Updated dependencies [29ead57c] - @graphql-tools/delegate@7.0.7 ## 7.0.1 ### Patch Changes - 51e387c3: transformedSchema argument within transformSchema method of transforms should be optional. The HoistField transform incorrectly set it to non-optional, breaking Typescript builds -- presumably when used with strict compilation. ## 7.0.0 ### Major Changes - be1a1575: ## Breaking Changes: #### Schema Generation and Decoration API (`@graphql-tools/schema`) - Resolver validation options should now be set to `error`, `warn` or `ignore` rather than `true` or `false`. In previous versions, some of the validators caused errors to be thrown, while some issued warnings. This changes brings consistency to validator behavior. - The `allowResolversNotInSchema` has been renamed to `requireResolversToMatchSchema`, to harmonize the naming convention of all the validators. The default setting of `requireResolversToMatchSchema` is `error`, matching the previous behavior. #### Schema Delegation (`delegateToSchema` & `@graphql-tools/delegate`) - The `delegateToSchema` return value has matured and been formalized as an `ExternalObject`, in which all errors are integrated into the GraphQL response, preserving their initial path. Those advanced users accessing the result directly will note the change in error handling. This also allows for the deprecation of unnecessary helper functions including `slicedError`, `getErrors`, `getErrorsByPathSegment` functions. Only external errors with missing or invalid paths must still be preserved by annotating the remote object with special properties. The new `getUnpathedErrors` function is therefore necessary for retrieving only these errors. Note also the new `annotateExternalObject` and `mergeExternalObjects` functions, as well as the renaming of `handleResult` to `resolveExternalValue`. - Transform types and the `applySchemaTransforms` are now relocated to the `delegate` package; `applyRequestTransforms`/`applyResultTransforms` functions have been deprecated, however, as this functionality has been replaced since v6 by the `Transformer` abstraction. - The `transformRequest`/`transformResult` methods are now provided additional `delegationContext` and `transformationContext