@graphql-hive/gateway-runtime 2.5.0-alpha-890e2341fd5496d95ff75411a0fd8c717d6639ed → 2.5.0-alpha-010855415407aa2674fe372e266c8e9d0e009810

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-hive/gateway-runtime
2
2
 
3
- ## 2.5.0-alpha-890e2341fd5496d95ff75411a0fd8c717d6639ed
3
+ ## 2.5.0-alpha-010855415407aa2674fe372e266c8e9d0e009810
4
4
  ### Minor Changes
5
5
 
6
6
 
@@ -8,10 +8,34 @@
8
8
  - [#1786](https://github.com/graphql-hive/gateway/pull/1786) [`abd350b`](https://github.com/graphql-hive/gateway/commit/abd350b913c8938cf173a4a5e25b3ba6c04016fc) Thanks [@ardatan](https://github.com/ardatan)! - Respect both \`graphql-client-name\` and \`x-graphql-client-name\` for client name header, and both \`graphql-client-version\` and \`x-graphql-client-version\` for client version header by default if not configured otherwise.
9
9
 
10
10
 
11
+
12
+ - [#1636](https://github.com/graphql-hive/gateway/pull/1636) [`bdb8517`](https://github.com/graphql-hive/gateway/commit/bdb8517788aa416d7de441d90f849b181c2d11d8) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Expose GraphQLError as OpenTelemetry Events.
13
+
14
+ Errors contains in the result of a graphql operation are now reported as standalone OpenTelemetry
15
+ Events (name `graphql.error`) instead of OpenTelemetry Exceptions.
16
+
17
+ This is aligned with the guidance of the Graphql OpenTelemetry working group.
18
+
19
+ It allows to add more graphql specific attributes to errors reported in a response:
20
+
21
+ - `message`: The error message
22
+ - `path`: The path in the operation document from which the error originated
23
+ - `locations`: The list of related locations in the document source
24
+ - `coordinate`: The schema coordinate of the resolver which is the source of the error
25
+
26
+ This brings the experimental support of the `coordinate` error attribute in the Yoga Runtime. For
27
+ security reason, this attribute is purposefully not serialized, to avoid leaking schema information
28
+ to clients.
29
+
11
30
  ### Patch Changes
12
31
 
13
32
 
14
33
 
34
+ - [#1636](https://github.com/graphql-hive/gateway/pull/1636) [`31fe4be`](https://github.com/graphql-hive/gateway/commit/31fe4be41532db18a66b30eeb9272a6e536d8a89) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
35
+
36
+ - Updated dependency [`graphql-yoga@^5.17.0` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.17.0) (from `^5.16.2`, in `dependencies`)
37
+
38
+
15
39
  - [#1784](https://github.com/graphql-hive/gateway/pull/1784) [`15b9e50`](https://github.com/graphql-hive/gateway/commit/15b9e5037fa74f8c1a8e662e196268a88642c27d) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
16
40
 
17
41
  - Updated dependency [`@types/node@^25.0.0` ↗︎](https://www.npmjs.com/package/@types/node/v/25.0.0) (from `^24.10.1`, in `dependencies`)
@@ -19,9 +43,9 @@
19
43
 
20
44
  - [#1787](https://github.com/graphql-hive/gateway/pull/1787) [`a50d93a`](https://github.com/graphql-hive/gateway/commit/a50d93a0bc8f3c67de7449ad9102d3f3b60ea96a) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Usage reporting clientInfo context inherits Hive Gateway context
21
45
 
22
- - Updated dependencies []:
46
+ - Updated dependencies [[`31fe4be`](https://github.com/graphql-hive/gateway/commit/31fe4be41532db18a66b30eeb9272a6e536d8a89)]:
47
+ - @graphql-mesh/fusion-runtime@1.6.3-alpha-010855415407aa2674fe372e266c8e9d0e009810
23
48
  - @graphql-mesh/hmac-upstream-signature@2.0.8
24
- - @graphql-mesh/fusion-runtime@1.6.2
25
49
 
26
50
  ## 2.4.1
27
51
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -132,7 +132,8 @@ const getExecuteFnFromExecutor = utils.memoize1(
132
132
  operationName: args.operationName ?? void 0,
133
133
  rootValue: args.rootValue,
134
134
  context: args.contextValue,
135
- signal: args.signal
135
+ signal: args.signal,
136
+ schemaCoordinateInErrors: args.schemaCoordinateInErrors
136
137
  });
137
138
  };
138
139
  }
package/dist/index.js CHANGED
@@ -131,7 +131,8 @@ const getExecuteFnFromExecutor = memoize1(
131
131
  operationName: args.operationName ?? void 0,
132
132
  rootValue: args.rootValue,
133
133
  context: args.contextValue,
134
- signal: args.signal
134
+ signal: args.signal,
135
+ schemaCoordinateInErrors: args.schemaCoordinateInErrors
135
136
  });
136
137
  };
137
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway-runtime",
3
- "version": "2.5.0-alpha-890e2341fd5496d95ff75411a0fd8c717d6639ed",
3
+ "version": "2.5.0-alpha-010855415407aa2674fe372e266c8e9d0e009810",
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": "^1.6.2",
58
+ "@graphql-mesh/fusion-runtime": "1.6.3-alpha-010855415407aa2674fe372e266c8e9d0e009810",
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.16.2",
82
+ "graphql-yoga": "^5.17.0",
83
83
  "tslib": "^2.8.1"
84
84
  },
85
85
  "devDependencies": {