@graphql-mesh/fusion-runtime 1.13.2 → 1.13.3-alpha-d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9
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 +11 -0
- package/dist/index.cjs +11 -2
- package/dist/index.js +11 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @graphql-mesh/fusion-runtime
|
|
2
2
|
|
|
3
|
+
## 1.13.3-alpha-d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2717](https://github.com/graphql-hive/gateway/pull/2717) [`d7cadbb`](https://github.com/graphql-hive/gateway/commit/d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Create a single transport executor per subgraph when concurrent requests arrive before the transport is loaded
|
|
9
|
+
|
|
10
|
+
Concurrent first requests to a subgraph share the same pending transport executor so that features scoped to the executor, like inflight request deduplication, apply to them as well.
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @graphql-tools/federation@4.6.3-alpha-d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9
|
|
13
|
+
|
|
3
14
|
## 1.13.2
|
|
4
15
|
### Patch Changes
|
|
5
16
|
|
package/dist/index.cjs
CHANGED
|
@@ -1071,8 +1071,9 @@ function getOnSubgraphExecute({
|
|
|
1071
1071
|
transportContext.log = log;
|
|
1072
1072
|
log.debug("Initializing executor");
|
|
1073
1073
|
}
|
|
1074
|
+
let loadingExecutor$;
|
|
1074
1075
|
executor = function lazyExecutor(subgraphExecReq) {
|
|
1075
|
-
|
|
1076
|
+
loadingExecutor$ ||= require$$3.handleMaybePromise(
|
|
1076
1077
|
() => (
|
|
1077
1078
|
// Gets the transport executor for the given subgraph
|
|
1078
1079
|
getTransportExecutor({
|
|
@@ -1102,9 +1103,17 @@ function getOnSubgraphExecute({
|
|
|
1102
1103
|
instrumentation
|
|
1103
1104
|
});
|
|
1104
1105
|
subgraphExecutorMap.set(subgraphName, executor);
|
|
1105
|
-
return executor
|
|
1106
|
+
return executor;
|
|
1107
|
+
},
|
|
1108
|
+
(err) => {
|
|
1109
|
+
loadingExecutor$ = void 0;
|
|
1110
|
+
throw err;
|
|
1106
1111
|
}
|
|
1107
1112
|
);
|
|
1113
|
+
return require$$3.handleMaybePromise(
|
|
1114
|
+
() => loadingExecutor$,
|
|
1115
|
+
(executor_) => executor_(subgraphExecReq)
|
|
1116
|
+
);
|
|
1108
1117
|
};
|
|
1109
1118
|
subgraphExecutorMap.set(subgraphName, executor);
|
|
1110
1119
|
}
|
package/dist/index.js
CHANGED
|
@@ -1069,8 +1069,9 @@ function getOnSubgraphExecute({
|
|
|
1069
1069
|
transportContext.log = log;
|
|
1070
1070
|
log.debug("Initializing executor");
|
|
1071
1071
|
}
|
|
1072
|
+
let loadingExecutor$;
|
|
1072
1073
|
executor = function lazyExecutor(subgraphExecReq) {
|
|
1073
|
-
|
|
1074
|
+
loadingExecutor$ ||= handleMaybePromise(
|
|
1074
1075
|
() => (
|
|
1075
1076
|
// Gets the transport executor for the given subgraph
|
|
1076
1077
|
getTransportExecutor({
|
|
@@ -1100,9 +1101,17 @@ function getOnSubgraphExecute({
|
|
|
1100
1101
|
instrumentation
|
|
1101
1102
|
});
|
|
1102
1103
|
subgraphExecutorMap.set(subgraphName, executor);
|
|
1103
|
-
return executor
|
|
1104
|
+
return executor;
|
|
1105
|
+
},
|
|
1106
|
+
(err) => {
|
|
1107
|
+
loadingExecutor$ = void 0;
|
|
1108
|
+
throw err;
|
|
1104
1109
|
}
|
|
1105
1110
|
);
|
|
1111
|
+
return handleMaybePromise(
|
|
1112
|
+
() => loadingExecutor$,
|
|
1113
|
+
(executor_) => executor_(subgraphExecReq)
|
|
1114
|
+
);
|
|
1106
1115
|
};
|
|
1107
1116
|
subgraphExecutorMap.set(subgraphName, executor);
|
|
1108
1117
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/fusion-runtime",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3-alpha-d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Runtime for GraphQL Mesh Fusion Supergraph",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@graphql-tools/batch-execute": "^10.3.1",
|
|
54
54
|
"@graphql-tools/delegate": "^12.3.2",
|
|
55
55
|
"@graphql-tools/executor": "^2.0.1",
|
|
56
|
-
"@graphql-tools/federation": "
|
|
56
|
+
"@graphql-tools/federation": "4.6.3-alpha-d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9",
|
|
57
57
|
"@graphql-tools/merge": "^9.2.4",
|
|
58
58
|
"@graphql-tools/stitch": "^10.4.2",
|
|
59
59
|
"@graphql-tools/stitching-directives": "^4.1.4",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"tslib": "^2.8.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@graphql-hive/router-runtime": "
|
|
68
|
+
"@graphql-hive/router-runtime": "1.6.9-alpha-d7cadbb925fcf97eb0ed4c6e5944987654d5ecd9",
|
|
69
69
|
"change-case": "^5.4.4",
|
|
70
70
|
"graphql": "^16.12.0",
|
|
71
71
|
"pkgroll": "2.27.1"
|