@graphql-hive/router-runtime 1.4.17 → 1.4.18
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 +14 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @graphql-hive/router-runtime
|
|
2
2
|
|
|
3
|
+
## 1.4.18
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2473](https://github.com/graphql-hive/gateway/pull/2473) [`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
|
|
9
|
+
|
|
10
|
+
- Updated dependency [`@graphql-mesh/utils@^0.104.38` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.38) (from `^0.104.36`, in `dependencies`)
|
|
11
|
+
- Updated dependencies [[`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc), [`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc), [`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc), [`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc)]:
|
|
12
|
+
- @graphql-mesh/fusion-runtime@1.11.2
|
|
13
|
+
- @graphql-tools/delegate@12.1.0
|
|
14
|
+
- @graphql-mesh/transport-common@1.0.18
|
|
15
|
+
- @graphql-tools/federation@4.4.10
|
|
16
|
+
|
|
3
17
|
## 1.4.17
|
|
4
18
|
### Patch Changes
|
|
5
19
|
|
package/dist/index.cjs
CHANGED
|
@@ -1527,6 +1527,7 @@ function resolvePubsubOperationRootField(opts, responseKey, resolverOpts) {
|
|
|
1527
1527
|
),
|
|
1528
1528
|
(root) => pubsubOperationResolver.resolve(
|
|
1529
1529
|
root,
|
|
1530
|
+
// @ts-expect-error in case the resolve takes in more args, doesnt hurt to keep passing them
|
|
1530
1531
|
resolverOpts.args,
|
|
1531
1532
|
resolverOpts.context,
|
|
1532
1533
|
void 0
|
package/dist/index.d.cts
CHANGED
|
@@ -116,7 +116,9 @@ type TopicDataMap = {
|
|
|
116
116
|
[topic: string]: any;
|
|
117
117
|
};
|
|
118
118
|
type PubSubListener<Data extends TopicDataMap, Topic extends keyof Data> = (data: Data[Topic]) => void;
|
|
119
|
-
interface PubSub<M extends TopicDataMap = TopicDataMap
|
|
119
|
+
interface PubSub<M extends TopicDataMap = TopicDataMap, SubscribeOptions extends {
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
} = never> {
|
|
120
122
|
/**
|
|
121
123
|
* Publish {@link data} for a {@link topic}.
|
|
122
124
|
* @returns `void` or a `Promise` that resolves when the data has been successfully published
|
|
@@ -139,7 +141,7 @@ interface PubSub<M extends TopicDataMap = TopicDataMap> {
|
|
|
139
141
|
*
|
|
140
142
|
* @returns an `AsyncIterable` that yields data for the given {@link topic}
|
|
141
143
|
*/
|
|
142
|
-
subscribe<Topic extends keyof M>(topic: Topic): AsyncIterable<M[Topic]>;
|
|
144
|
+
subscribe<Topic extends keyof M>(topic: Topic, ...options: [SubscribeOptions] extends [never] ? [] : [options: SubscribeOptions]): AsyncIterable<M[Topic]>;
|
|
143
145
|
subscribe<Topic extends keyof M>(topic: Topic, listener: PubSubListener<M, Topic>): MaybePromise<() => MaybePromise<void>>;
|
|
144
146
|
/**
|
|
145
147
|
* Closes active subscriptions and disposes of all resources. Publishing and subscribing after disposal
|
package/dist/index.d.ts
CHANGED
|
@@ -116,7 +116,9 @@ type TopicDataMap = {
|
|
|
116
116
|
[topic: string]: any;
|
|
117
117
|
};
|
|
118
118
|
type PubSubListener<Data extends TopicDataMap, Topic extends keyof Data> = (data: Data[Topic]) => void;
|
|
119
|
-
interface PubSub<M extends TopicDataMap = TopicDataMap
|
|
119
|
+
interface PubSub<M extends TopicDataMap = TopicDataMap, SubscribeOptions extends {
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
} = never> {
|
|
120
122
|
/**
|
|
121
123
|
* Publish {@link data} for a {@link topic}.
|
|
122
124
|
* @returns `void` or a `Promise` that resolves when the data has been successfully published
|
|
@@ -139,7 +141,7 @@ interface PubSub<M extends TopicDataMap = TopicDataMap> {
|
|
|
139
141
|
*
|
|
140
142
|
* @returns an `AsyncIterable` that yields data for the given {@link topic}
|
|
141
143
|
*/
|
|
142
|
-
subscribe<Topic extends keyof M>(topic: Topic): AsyncIterable<M[Topic]>;
|
|
144
|
+
subscribe<Topic extends keyof M>(topic: Topic, ...options: [SubscribeOptions] extends [never] ? [] : [options: SubscribeOptions]): AsyncIterable<M[Topic]>;
|
|
143
145
|
subscribe<Topic extends keyof M>(topic: Topic, listener: PubSubListener<M, Topic>): MaybePromise<() => MaybePromise<void>>;
|
|
144
146
|
/**
|
|
145
147
|
* Closes active subscriptions and disposes of all resources. Publishing and subscribing after disposal
|
package/dist/index.js
CHANGED
|
@@ -1525,6 +1525,7 @@ function resolvePubsubOperationRootField(opts, responseKey, resolverOpts) {
|
|
|
1525
1525
|
),
|
|
1526
1526
|
(root) => pubsubOperationResolver.resolve(
|
|
1527
1527
|
root,
|
|
1528
|
+
// @ts-expect-error in case the resolve takes in more args, doesnt hurt to keep passing them
|
|
1528
1529
|
resolverOpts.args,
|
|
1529
1530
|
resolverOpts.context,
|
|
1530
1531
|
void 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/router-runtime",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@envelop/core": "^5.4.0",
|
|
46
46
|
"@graphql-hive/router-query-planner": "^0.0.38",
|
|
47
|
-
"@graphql-mesh/fusion-runtime": "^1.11.
|
|
48
|
-
"@graphql-mesh/transport-common": "^1.0.
|
|
49
|
-
"@graphql-mesh/utils": "^0.104.
|
|
50
|
-
"@graphql-tools/delegate": "^12.0
|
|
47
|
+
"@graphql-mesh/fusion-runtime": "^1.11.2",
|
|
48
|
+
"@graphql-mesh/transport-common": "^1.0.18",
|
|
49
|
+
"@graphql-mesh/utils": "^0.104.38",
|
|
50
|
+
"@graphql-tools/delegate": "^12.1.0",
|
|
51
51
|
"@graphql-tools/executor": "^1.4.13",
|
|
52
52
|
"@graphql-tools/executor-common": "^1.0.6",
|
|
53
|
-
"@graphql-tools/federation": "^4.4.
|
|
53
|
+
"@graphql-tools/federation": "^4.4.10",
|
|
54
54
|
"@graphql-tools/utils": "^11.0.0",
|
|
55
55
|
"@whatwg-node/promise-helpers": "^1.3.2"
|
|
56
56
|
},
|