@graphql-hive/router-runtime 1.5.1 → 1.5.2-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5

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,5 +1,21 @@
1
1
  # @graphql-hive/router-runtime
2
2
 
3
+ ## 1.5.2-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2604](https://github.com/graphql-hive/gateway/pull/2604) [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
9
+
10
+ - Updated dependency [`@graphql-tools/executor@^2.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/2.0.1) (from `^1.4.13`, in `dependencies`)
11
+ - Updated dependency [`@graphql-tools/utils@^12.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/12.0.1) (from `^11.0.0`, in `dependencies`)
12
+ - Updated dependencies [[`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56), [`19e4040`](https://github.com/graphql-hive/gateway/commit/19e404065a9d88215d1530749b43ce5e39262a56)]:
13
+ - @graphql-mesh/fusion-runtime@1.11.11-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
14
+ - @graphql-mesh/transport-common@1.0.22-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
15
+ - @graphql-tools/delegate@12.1.5-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
16
+ - @graphql-tools/executor-common@1.0.7-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
17
+ - @graphql-tools/federation@4.4.16-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5
18
+
3
19
  ## 1.5.1
4
20
  ### Patch Changes
5
21
 
package/dist/index.cjs CHANGED
@@ -125,20 +125,16 @@ function createQueryPlanExecutionContext({
125
125
  operation.variableDefinitions,
126
126
  variableValues || globalEmpty
127
127
  );
128
- if (variableValuesResult.errors?.length) {
128
+ if (variableValuesResult.errors) {
129
129
  if (variableValuesResult.errors.length === 1) {
130
130
  throw variableValuesResult.errors[0];
131
131
  }
132
- if (variableValuesResult.errors.length > 1) {
133
- throw new AggregateError(
134
- variableValuesResult.errors,
135
- "Variable parsing error"
136
- );
137
- }
138
- }
139
- if (variableValuesResult.coerced) {
140
- variableValues = variableValuesResult.coerced;
132
+ throw new AggregateError(
133
+ variableValuesResult.errors,
134
+ "Variable parsing error"
135
+ );
141
136
  }
137
+ variableValues = variableValuesResult.variableValues.coerced;
142
138
  }
143
139
  return {
144
140
  supergraphSchema,
package/dist/index.js CHANGED
@@ -123,20 +123,16 @@ function createQueryPlanExecutionContext({
123
123
  operation.variableDefinitions,
124
124
  variableValues || globalEmpty
125
125
  );
126
- if (variableValuesResult.errors?.length) {
126
+ if (variableValuesResult.errors) {
127
127
  if (variableValuesResult.errors.length === 1) {
128
128
  throw variableValuesResult.errors[0];
129
129
  }
130
- if (variableValuesResult.errors.length > 1) {
131
- throw new AggregateError(
132
- variableValuesResult.errors,
133
- "Variable parsing error"
134
- );
135
- }
136
- }
137
- if (variableValuesResult.coerced) {
138
- variableValues = variableValuesResult.coerced;
130
+ throw new AggregateError(
131
+ variableValuesResult.errors,
132
+ "Variable parsing error"
133
+ );
139
134
  }
135
+ variableValues = variableValuesResult.variableValues.coerced;
140
136
  }
141
137
  return {
142
138
  supergraphSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/router-runtime",
3
- "version": "1.5.1",
3
+ "version": "1.5.2-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,14 +44,14 @@
44
44
  "dependencies": {
45
45
  "@envelop/core": "^5.4.0",
46
46
  "@graphql-hive/router-query-planner": "^0.0.44",
47
- "@graphql-mesh/fusion-runtime": "^1.11.10",
48
- "@graphql-mesh/transport-common": "^1.0.21",
47
+ "@graphql-mesh/fusion-runtime": "1.11.11-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
48
+ "@graphql-mesh/transport-common": "1.0.22-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
49
49
  "@graphql-mesh/utils": "^0.107.1",
50
- "@graphql-tools/delegate": "^12.1.4",
51
- "@graphql-tools/executor": "^1.4.13",
52
- "@graphql-tools/executor-common": "^1.0.6",
53
- "@graphql-tools/federation": "^4.4.15",
54
- "@graphql-tools/utils": "^11.0.0",
50
+ "@graphql-tools/delegate": "12.1.5-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
51
+ "@graphql-tools/executor": "^2.0.1",
52
+ "@graphql-tools/executor-common": "1.0.7-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
53
+ "@graphql-tools/federation": "4.4.16-alpha-8f117bcbea98536ce3233d8bc38febf5e9a2ebe5",
54
+ "@graphql-tools/utils": "^12.0.1",
55
55
  "@whatwg-node/fetch": "^0.10.13",
56
56
  "@whatwg-node/promise-helpers": "^1.3.2"
57
57
  },