@graphql-hive/gateway-runtime 2.4.0 → 2.5.0-alpha-ff27151c46b94b3541c690c3ca8802e8f17b9701
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 +34 -0
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @graphql-hive/gateway-runtime
|
|
2
2
|
|
|
3
|
+
## 2.5.0-alpha-ff27151c46b94b3541c690c3ca8802e8f17b9701
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#1636](https://github.com/graphql-hive/gateway/pull/1636) [`cf1bd7a`](https://github.com/graphql-hive/gateway/commit/cf1bd7a5a8afea1bc66df1442b1b0bd93c64c5a4) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Expose GraphQLError as OpenTelemetry Events.
|
|
9
|
+
|
|
10
|
+
Errors contains in the result of a graphql operation are now reported as standalone OpenTelemetry
|
|
11
|
+
Events (name `graphql.error`) instead of OpenTelemetry Exceptions.
|
|
12
|
+
|
|
13
|
+
This is aligned with the guidance of the Graphql OpenTelemetry working group.
|
|
14
|
+
|
|
15
|
+
It allows to add more graphql specific attributes to errors reported in a response:
|
|
16
|
+
|
|
17
|
+
- `message`: The error message
|
|
18
|
+
- `path`: The path in the operation document from which the error originated
|
|
19
|
+
- `locations`: The list of related locations in the document source
|
|
20
|
+
- `coordinate`: The schema coordinate of the resolver which is the source of the error
|
|
21
|
+
|
|
22
|
+
This brings the experimental support of the `coordinate` error attribute in the Yoga Runtime. For
|
|
23
|
+
security reason, this attribute is purposefully not serialized, to avoid leaking schema information
|
|
24
|
+
to clients.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
- [#1636](https://github.com/graphql-hive/gateway/pull/1636) [`ae8afc5`](https://github.com/graphql-hive/gateway/commit/ae8afc56e410e47dd61809209f6f0a8aa09e7fa6) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
|
31
|
+
|
|
32
|
+
- Updated dependency [`graphql-yoga@^5.17.0` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.17.0) (from `^5.16.2`, in `dependencies`)
|
|
33
|
+
- Updated dependencies [[`ae8afc5`](https://github.com/graphql-hive/gateway/commit/ae8afc56e410e47dd61809209f6f0a8aa09e7fa6)]:
|
|
34
|
+
- @graphql-mesh/fusion-runtime@1.6.3-alpha-ff27151c46b94b3541c690c3ca8802e8f17b9701
|
|
35
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.8
|
|
36
|
+
|
|
3
37
|
## 2.4.0
|
|
4
38
|
### Minor Changes
|
|
5
39
|
|
package/dist/index.cjs
CHANGED
|
@@ -143,7 +143,8 @@ const getExecuteFnFromExecutor = utils.memoize1(
|
|
|
143
143
|
operationName: args.operationName ?? void 0,
|
|
144
144
|
rootValue: args.rootValue,
|
|
145
145
|
context: args.contextValue,
|
|
146
|
-
signal: args.signal
|
|
146
|
+
signal: args.signal,
|
|
147
|
+
schemaCoordinateInErrors: args.schemaCoordinateInErrors
|
|
147
148
|
});
|
|
148
149
|
};
|
|
149
150
|
}
|
package/dist/index.js
CHANGED
|
@@ -142,7 +142,8 @@ const getExecuteFnFromExecutor = memoize1(
|
|
|
142
142
|
operationName: args.operationName ?? void 0,
|
|
143
143
|
rootValue: args.rootValue,
|
|
144
144
|
context: args.contextValue,
|
|
145
|
-
signal: args.signal
|
|
145
|
+
signal: args.signal,
|
|
146
|
+
schemaCoordinateInErrors: args.schemaCoordinateInErrors
|
|
146
147
|
});
|
|
147
148
|
};
|
|
148
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/gateway-runtime",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-alpha-ff27151c46b94b3541c690c3ca8802e8f17b9701",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@graphql-hive/signal": "^2.0.0",
|
|
56
56
|
"@graphql-hive/yoga": "^0.46.0",
|
|
57
57
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
58
|
-
"@graphql-mesh/fusion-runtime": "
|
|
58
|
+
"@graphql-mesh/fusion-runtime": "1.6.3-alpha-ff27151c46b94b3541c690c3ca8802e8f17b9701",
|
|
59
59
|
"@graphql-mesh/hmac-upstream-signature": "^2.0.8",
|
|
60
60
|
"@graphql-mesh/plugin-response-cache": "^0.104.18",
|
|
61
61
|
"@graphql-mesh/transport-common": "^1.0.12",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@whatwg-node/server": "^0.10.17",
|
|
80
80
|
"@whatwg-node/server-plugin-cookies": "^1.0.5",
|
|
81
81
|
"graphql-ws": "^6.0.6",
|
|
82
|
-
"graphql-yoga": "^5.
|
|
82
|
+
"graphql-yoga": "^5.17.0",
|
|
83
83
|
"tslib": "^2.8.1"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|