@graphql-mesh/fusion-runtime 1.11.7 → 1.11.8-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
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 +15 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @graphql-mesh/fusion-runtime
|
|
2
2
|
|
|
3
|
+
## 1.11.8-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2542](https://github.com/graphql-hive/gateway/pull/2542) [`f4b339f`](https://github.com/graphql-hive/gateway/commit/f4b339f544aa71cb3151987856d5bd4ce776eec8) Thanks [@dotansimha](https://github.com/dotansimha)! - ### Expose `cache` instance to unified graph handler
|
|
9
|
+
|
|
10
|
+
The gateway `UnifiedGraphHandlerOpts` now includes an optinal `cache` instance that can be passed to the handler from the gateway.
|
|
11
|
+
- Updated dependencies [[`eb6569b`](https://github.com/graphql-hive/gateway/commit/eb6569b3ee21bdc16c67c6d356101e66e206d520)]:
|
|
12
|
+
- @graphql-tools/federation@4.4.14-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
|
|
13
|
+
- @graphql-tools/delegate@12.1.3-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
|
|
14
|
+
- @graphql-tools/stitch@10.2.4-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
|
|
15
|
+
- @graphql-tools/stitching-directives@4.0.29-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
|
|
16
|
+
- @graphql-tools/wrap@11.1.23-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e
|
|
17
|
+
|
|
3
18
|
## 1.11.7
|
|
4
19
|
### Patch Changes
|
|
5
20
|
|
package/dist/index.cjs
CHANGED
|
@@ -1588,6 +1588,7 @@ class UnifiedGraphManager {
|
|
|
1588
1588
|
onDelegateHooks: this.opts.onDelegateHooks,
|
|
1589
1589
|
batchDelegateOptions: this.opts.batchDelegateOptions,
|
|
1590
1590
|
log: this.opts.transportContext?.log,
|
|
1591
|
+
cache: this.opts.transportContext?.cache,
|
|
1591
1592
|
handleProgressiveOverride: this.opts.handleProgressiveOverride ? (label, context) => {
|
|
1592
1593
|
const labels = this.overrideLabelsByContext.get(context);
|
|
1593
1594
|
if (labels?.has(label)) {
|
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ export { TransportEntry, TransportGetSubgraphExecutor, TransportGetSubgraphExecu
|
|
|
6
6
|
import { DelegationPlanBuilder, Subschema, MergedTypeResolver, SubschemaConfig } from '@graphql-tools/delegate';
|
|
7
7
|
import { GraphQLSchema, DocumentNode, ExecutionResult, GraphQLError, FragmentDefinitionNode, SelectionNode, SelectionSetNode } from 'graphql';
|
|
8
8
|
import { GraphQLResolveInfo, GraphQLOutputType } from 'graphql/type';
|
|
9
|
-
import { OnDelegateHook } from '@graphql-mesh/types';
|
|
9
|
+
import { OnDelegateHook, KeyValueCache } from '@graphql-mesh/types';
|
|
10
10
|
import { DisposableSymbols } from '@whatwg-node/disposablestack';
|
|
11
11
|
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
12
12
|
import { getBatchingExecutor } from '@graphql-tools/batch-execute';
|
|
@@ -41,6 +41,8 @@ interface UnifiedGraphHandlerOpts {
|
|
|
41
41
|
*/
|
|
42
42
|
batchDelegateOptions?: BatchDelegateOptions;
|
|
43
43
|
log?: Logger;
|
|
44
|
+
/** Shared cache instance (e.g. Redis), used by handlers that support cross-process caching. */
|
|
45
|
+
cache?: KeyValueCache;
|
|
44
46
|
}
|
|
45
47
|
interface UnifiedGraphHandlerResult {
|
|
46
48
|
unifiedGraph: GraphQLSchema;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { TransportEntry, TransportGetSubgraphExecutor, TransportGetSubgraphExecu
|
|
|
6
6
|
import { DelegationPlanBuilder, Subschema, MergedTypeResolver, SubschemaConfig } from '@graphql-tools/delegate';
|
|
7
7
|
import { GraphQLSchema, DocumentNode, ExecutionResult, GraphQLError, FragmentDefinitionNode, SelectionNode, SelectionSetNode } from 'graphql';
|
|
8
8
|
import { GraphQLResolveInfo, GraphQLOutputType } from 'graphql/type';
|
|
9
|
-
import { OnDelegateHook } from '@graphql-mesh/types';
|
|
9
|
+
import { OnDelegateHook, KeyValueCache } from '@graphql-mesh/types';
|
|
10
10
|
import { DisposableSymbols } from '@whatwg-node/disposablestack';
|
|
11
11
|
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
12
12
|
import { getBatchingExecutor } from '@graphql-tools/batch-execute';
|
|
@@ -41,6 +41,8 @@ interface UnifiedGraphHandlerOpts {
|
|
|
41
41
|
*/
|
|
42
42
|
batchDelegateOptions?: BatchDelegateOptions;
|
|
43
43
|
log?: Logger;
|
|
44
|
+
/** Shared cache instance (e.g. Redis), used by handlers that support cross-process caching. */
|
|
45
|
+
cache?: KeyValueCache;
|
|
44
46
|
}
|
|
45
47
|
interface UnifiedGraphHandlerResult {
|
|
46
48
|
unifiedGraph: GraphQLSchema;
|
package/dist/index.js
CHANGED
|
@@ -1586,6 +1586,7 @@ class UnifiedGraphManager {
|
|
|
1586
1586
|
onDelegateHooks: this.opts.onDelegateHooks,
|
|
1587
1587
|
batchDelegateOptions: this.opts.batchDelegateOptions,
|
|
1588
1588
|
log: this.opts.transportContext?.log,
|
|
1589
|
+
cache: this.opts.transportContext?.cache,
|
|
1589
1590
|
handleProgressiveOverride: this.opts.handleProgressiveOverride ? (label, context) => {
|
|
1590
1591
|
const labels = this.overrideLabelsByContext.get(context);
|
|
1591
1592
|
if (labels?.has(label)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/fusion-runtime",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.8-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Runtime for GraphQL Mesh Fusion Supergraph",
|
|
6
6
|
"repository": {
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
"@graphql-mesh/types": "^0.107.1",
|
|
52
52
|
"@graphql-mesh/utils": "^0.107.1",
|
|
53
53
|
"@graphql-tools/batch-execute": "^10.0.9",
|
|
54
|
-
"@graphql-tools/delegate": "
|
|
54
|
+
"@graphql-tools/delegate": "12.1.3-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
55
55
|
"@graphql-tools/executor": "^1.4.13",
|
|
56
|
-
"@graphql-tools/federation": "
|
|
56
|
+
"@graphql-tools/federation": "4.4.14-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
57
57
|
"@graphql-tools/merge": "^9.1.5",
|
|
58
|
-
"@graphql-tools/stitch": "
|
|
59
|
-
"@graphql-tools/stitching-directives": "
|
|
58
|
+
"@graphql-tools/stitch": "10.2.4-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
59
|
+
"@graphql-tools/stitching-directives": "4.0.29-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
60
60
|
"@graphql-tools/utils": "^11.0.0",
|
|
61
|
-
"@graphql-tools/wrap": "
|
|
61
|
+
"@graphql-tools/wrap": "11.1.23-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
62
62
|
"@whatwg-node/disposablestack": "^0.0.6",
|
|
63
63
|
"@whatwg-node/promise-helpers": "^1.3.2",
|
|
64
64
|
"graphql-yoga": "^5.21.1",
|
|
65
65
|
"tslib": "^2.8.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@graphql-hive/router-runtime": "
|
|
68
|
+
"@graphql-hive/router-runtime": "1.5.0-alpha-74e000ce5c1ebfc3438baa2e0630d99fe85d266e",
|
|
69
69
|
"change-case": "^5.4.4",
|
|
70
70
|
"graphql": "^16.12.0",
|
|
71
71
|
"pkgroll": "2.27.1"
|