Skip to content

Commit 533c716

Browse files
chore(release): update monorepo packages versions
1 parent 2118a80 commit 533c716

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+374
-116
lines changed

.changeset/@graphql-tools_graphql-file-loader-7588-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/@graphql-tools_import-7588-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/@graphql-tools_import-7721-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/@graphql-tools_node-require-7588-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/floppy-women-poke.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/executor/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# @graphql-tools/executor
22

3+
## 1.5.0
4+
5+
### Minor Changes
6+
7+
- [#7588](https://github.com/ardatan/graphql-tools/pull/7588)
8+
[`2118a80`](https://github.com/ardatan/graphql-tools/commit/2118a80e2658076745ef314fc10e2030d7148394)
9+
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Add optional schema coordinate in error
10+
extensions. This extension allows to precisely identify the source of the error by automated tools
11+
like tracing or monitoring.
12+
13+
This new feature is opt-in, you have to enable it using `schemaCoordinateInErrors` executor
14+
option.
15+
16+
**Caution:** This feature, when enabled, will expose information about your schema. If you need to
17+
keep your schema private and secret, you should strip this attribute at serialization time before
18+
sending errors to the client.
19+
20+
```ts
21+
import { parse } from 'graphql'
22+
import { normalizedExecutor } from '@graphql-tools/executor'
23+
import { getSchemaCoordinate } from '@graphql-tools/utils'
24+
import schema from './schema'
25+
26+
const result = await normalizedExecutor({
27+
schema,
28+
document: parse(`...`),
29+
schemaCoordinateInErrors: true // enable adding schema coordinate to graphql errors
30+
})
31+
32+
if (result.errors) {
33+
for (const error of result.errors) {
34+
console.log('Error in resolver ', error.coordinate, ':', error.message)
35+
// or with `getSchemaCoordinate` util, to workaround types if needed
36+
console.log('Error in resolver', getSchemaCoordinate(error), ':', error.message)
37+
}
38+
}
39+
```
40+
41+
### Patch Changes
42+
43+
- Updated dependencies
44+
[[`2118a80`](https://github.com/ardatan/graphql-tools/commit/2118a80e2658076745ef314fc10e2030d7148394)]:
45+
- @graphql-tools/utils@10.11.0
46+
347
## 1.4.13
448

549
### Patch Changes

packages/executor/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/executor",
3-
"version": "1.4.13",
3+
"version": "1.5.0",
44
"type": "module",
55
"repository": {
66
"type": "git",
@@ -55,7 +55,7 @@
5555
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
5656
},
5757
"dependencies": {
58-
"@graphql-tools/utils": "^10.10.3",
58+
"@graphql-tools/utils": "^10.11.0",
5959
"@graphql-typed-document-node/core": "^3.2.0",
6060
"@repeaterjs/repeater": "^3.0.4",
6161
"@whatwg-node/disposablestack": "^0.0.6",

packages/executors/apollo-link/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @graphql-tools/executor-apollo-link
22

3+
## 2.0.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`2118a80`](https://github.com/ardatan/graphql-tools/commit/2118a80e2658076745ef314fc10e2030d7148394)]:
9+
- @graphql-tools/utils@10.11.0
10+
311
## 2.0.4
412

513
### Patch Changes

packages/executors/apollo-link/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/executor-apollo-link",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"type": "module",
55
"description": "A set of utils for faster development of GraphQL tools",
66
"repository": {
@@ -52,7 +52,7 @@
5252
"graphql": "^15.2.0 || ^16.0.0"
5353
},
5454
"dependencies": {
55-
"@graphql-tools/utils": "^10.10.3",
55+
"@graphql-tools/utils": "^10.11.0",
5656
"tslib": "^2.3.1"
5757
},
5858
"devDependencies": {

packages/executors/envelop/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @graphql-tools/executor-envelop
22

3+
## 4.0.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`2118a80`](https://github.com/ardatan/graphql-tools/commit/2118a80e2658076745ef314fc10e2030d7148394)]:
9+
- @graphql-tools/utils@10.11.0
10+
311
## 4.0.4
412

513
### Patch Changes

0 commit comments

Comments
 (0)