Skip to content

Commit

Permalink
chore(release): update monorepo packages versions (#6040)
Browse files Browse the repository at this point in the history
  • Loading branch information
theguild-bot committed Apr 8, 2024
1 parent 02dd9ac commit 1b2e4e1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .changeset/shaggy-doors-collect.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/executor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @graphql-tools/executor

## 1.2.6

### Patch Changes

- [#6038](https://github.com/ardatan/graphql-tools/pull/6038) [`02dd9ac`](https://github.com/ardatan/graphql-tools/commit/02dd9ac2ee92f6e390098a91753c1bcf5ef71cbc) Thanks [@ardatan](https://github.com/ardatan)! - Some libraries like `undici` throw objects that are not `Error` 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 an `Error` instance by taking `message`, `stack`, `name` and `cause` properties.
So the user will get the error correctly.

## 1.2.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/executor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/executor",
"version": "1.2.5",
"version": "1.2.6",
"type": "module",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1b2e4e1

Please sign in to comment.