@graphql-hive/router-runtime 1.1.0-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 → 1.1.0-alpha-87494333844fec1477a68aa50f3c513fb3df89a3
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 +6 -6
- package/dist/index.cjs +6 -0
- package/dist/index.js +7 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @graphql-hive/router-runtime
|
|
2
2
|
|
|
3
|
-
## 1.1.0-alpha-
|
|
3
|
+
## 1.1.0-alpha-87494333844fec1477a68aa50f3c513fb3df89a3
|
|
4
4
|
### Minor Changes
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
- [#1708](https://github.com/graphql-hive/gateway/pull/1708) [`
|
|
8
|
+
- [#1708](https://github.com/graphql-hive/gateway/pull/1708) [`bc6cddd`](https://github.com/graphql-hive/gateway/commit/bc6cddd1c53a012dd02a1d8a7217a28e65cc6ae9) Thanks [@ardatan](https://github.com/ardatan)! - Support Stitching transforms (w/ Mesh directives)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Patch Changes
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
- Updated dependency [`@graphql-hive/router-query-planner@^0.0.4` ↗︎](https://www.npmjs.com/package/@graphql-hive/router-query-planner/v/0.0.4) (from `^0.0.3`, in `dependencies`)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
- [#1708](https://github.com/graphql-hive/gateway/pull/1708) [`
|
|
20
|
+
- [#1708](https://github.com/graphql-hive/gateway/pull/1708) [`bc6cddd`](https://github.com/graphql-hive/gateway/commit/bc6cddd1c53a012dd02a1d8a7217a28e65cc6ae9) Thanks [@ardatan](https://github.com/ardatan)! - Handle listed enum values correctly
|
|
21
21
|
Previously when a field like `[MyEnum!]!` is projected, it was projecting it like it is `MyEnum`.
|
|
22
|
-
- Updated dependencies [[`
|
|
23
|
-
- @graphql-mesh/fusion-runtime@1.6.0-alpha-
|
|
24
|
-
- @graphql-tools/federation@4.2.4-alpha-
|
|
22
|
+
- Updated dependencies [[`bc6cddd`](https://github.com/graphql-hive/gateway/commit/bc6cddd1c53a012dd02a1d8a7217a28e65cc6ae9)]:
|
|
23
|
+
- @graphql-mesh/fusion-runtime@1.6.0-alpha-87494333844fec1477a68aa50f3c513fb3df89a3
|
|
24
|
+
- @graphql-tools/federation@4.2.4-alpha-87494333844fec1477a68aa50f3c513fb3df89a3
|
|
25
25
|
|
|
26
26
|
## 1.0.1
|
|
27
27
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -888,6 +888,12 @@ function projectSelectionSet(data, selectionSet, type, executionContext) {
|
|
|
888
888
|
const enumValue = enumType.getValue(value);
|
|
889
889
|
if (enumValue == null) {
|
|
890
890
|
return null;
|
|
891
|
+
} else if (utils.getDirective(
|
|
892
|
+
executionContext.supergraphSchema,
|
|
893
|
+
enumValue,
|
|
894
|
+
"inaccessible"
|
|
895
|
+
)?.length) {
|
|
896
|
+
return null;
|
|
891
897
|
}
|
|
892
898
|
return value;
|
|
893
899
|
};
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { handleFederationSupergraph } from '@graphql-mesh/fusion-runtime';
|
|
|
2
2
|
import { createDefaultExecutor } from '@graphql-mesh/transport-common';
|
|
3
3
|
import { defaultPrintFn } from '@graphql-tools/executor-common';
|
|
4
4
|
import { filterInternalFieldsAndTypes } from '@graphql-tools/federation';
|
|
5
|
-
import { isAsyncIterable, getOperationASTFromRequest, memoize1, mergeDeep, getOperationASTFromDocument, relocatedError } from '@graphql-tools/utils';
|
|
5
|
+
import { isAsyncIterable, getOperationASTFromRequest, memoize1, mergeDeep, getOperationASTFromDocument, relocatedError, getDirective } from '@graphql-tools/utils';
|
|
6
6
|
import { handleMaybePromise, mapAsyncIterator, isPromise } from '@whatwg-node/promise-helpers';
|
|
7
7
|
import { isObjectType, isAbstractType, Kind, parse, isInterfaceType, TypeNameMetaFieldDef, getNamedType, isEnumType, isNonNullType, isOutputType, visit, BREAK } from 'graphql';
|
|
8
8
|
import { documentStringMap } from '@envelop/core';
|
|
@@ -886,6 +886,12 @@ function projectSelectionSet(data, selectionSet, type, executionContext) {
|
|
|
886
886
|
const enumValue = enumType.getValue(value);
|
|
887
887
|
if (enumValue == null) {
|
|
888
888
|
return null;
|
|
889
|
+
} else if (getDirective(
|
|
890
|
+
executionContext.supergraphSchema,
|
|
891
|
+
enumValue,
|
|
892
|
+
"inaccessible"
|
|
893
|
+
)?.length) {
|
|
894
|
+
return null;
|
|
889
895
|
}
|
|
890
896
|
return value;
|
|
891
897
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/router-runtime",
|
|
3
|
-
"version": "1.1.0-alpha-
|
|
3
|
+
"version": "1.1.0-alpha-87494333844fec1477a68aa50f3c513fb3df89a3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@envelop/core": "^5.4.0",
|
|
46
46
|
"@graphql-hive/router-query-planner": "^0.0.4",
|
|
47
|
-
"@graphql-mesh/fusion-runtime": "1.6.0-alpha-
|
|
47
|
+
"@graphql-mesh/fusion-runtime": "1.6.0-alpha-87494333844fec1477a68aa50f3c513fb3df89a3",
|
|
48
48
|
"@graphql-mesh/transport-common": "^1.0.12",
|
|
49
49
|
"@graphql-tools/executor": "^1.4.13",
|
|
50
50
|
"@graphql-tools/executor-common": "^1.0.5",
|
|
51
|
-
"@graphql-tools/federation": "4.2.4-alpha-
|
|
51
|
+
"@graphql-tools/federation": "4.2.4-alpha-87494333844fec1477a68aa50f3c513fb3df89a3",
|
|
52
52
|
"@graphql-tools/utils": "^10.10.3",
|
|
53
53
|
"@whatwg-node/promise-helpers": "^1.3.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"graphql": "^16.9.0",
|
|
57
|
-
"pkgroll": "2.
|
|
57
|
+
"pkgroll": "2.21.3"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false
|
|
60
60
|
}
|