Releases: ardatan/graphql-tools
Releases · ardatan/graphql-tools
April 08, 2024
@graphql-tools/executor@1.2.6
Patch Changes
-
#6038
02dd9ac
Thanks @ardatan! - Some libraries likeundici
throw objects that are notError
instances when the response is tried to parse as JSON but failed.
In that case, executor prints an error like below;NonErrorThrown: Unexpected error value: {...} at toError (/usr/src/app/node_modules/graphql/jsutils/toError.js:16:7) at locatedError (/usr/src/app/node_modules/graphql/error/locatedError.js:20:46) at /usr/src/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:330:58 at processTicksAndRejections (node:internal/process/task_queues:95:5) at async /usr/src/app/node_modules/@graphql-tools/executor/cjs/execution/promiseForObject.js:18:35 at async Promise.all (index 0)
But actually the shape of the object matches the
Error
interface.
In that case, the executor now coerces the object to anError
instance by takingmessage
,stack
,name
andcause
properties.
So the user will get the error correctly.
April 08, 2024
@graphql-tools/executor-urql-exchange@1.0.2
Patch Changes
- #6023
cfe7727
Thanks @renovate! - dependencies updates:- Updated dependency
@urql/core@^3.0.0 || ^4.0.0 || ^5.0.0
↗︎ (from^3.0.0 || ^4.0.0
, inpeerDependencies
)
- Updated dependency
@graphql-tools/stitch@9.1.0
Minor Changes
- #5162
27b6f49
Thanks @asodeur! - Adding the ability to return non-scalar types from computed fields. Computed fields can now return
object types (local or stitched), interfaces, unions, or enums.