@graphql-hive/plugin-aws-sigv4 2.0.55 → 2.0.56

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,11 @@
1
1
  # @graphql-hive/plugin-aws-sigv4
2
2
 
3
+ ## 2.0.56
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [[`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc), [`6f2c3b6`](https://github.com/graphql-hive/gateway/commit/6f2c3b64b05f6ba17928fd098915c2167f3daedc)]:
7
+ - @graphql-mesh/fusion-runtime@1.11.2
8
+
3
9
  ## 2.0.55
4
10
  ### Patch Changes
5
11
 
package/dist/index.d.cts CHANGED
@@ -114,7 +114,9 @@ type TopicDataMap = {
114
114
  [topic: string]: any;
115
115
  };
116
116
  type PubSubListener<Data extends TopicDataMap, Topic extends keyof Data> = (data: Data[Topic]) => void;
117
- interface PubSub<M extends TopicDataMap = TopicDataMap> {
117
+ interface PubSub<M extends TopicDataMap = TopicDataMap, SubscribeOptions extends {
118
+ [key: string]: unknown;
119
+ } = never> {
118
120
  /**
119
121
  * Publish {@link data} for a {@link topic}.
120
122
  * @returns `void` or a `Promise` that resolves when the data has been successfully published
@@ -137,7 +139,7 @@ interface PubSub<M extends TopicDataMap = TopicDataMap> {
137
139
  *
138
140
  * @returns an `AsyncIterable` that yields data for the given {@link topic}
139
141
  */
140
- subscribe<Topic extends keyof M>(topic: Topic): AsyncIterable<M[Topic]>;
142
+ subscribe<Topic extends keyof M>(topic: Topic, ...options: [SubscribeOptions] extends [never] ? [] : [options: SubscribeOptions]): AsyncIterable<M[Topic]>;
141
143
  subscribe<Topic extends keyof M>(topic: Topic, listener: PubSubListener<M, Topic>): MaybePromise<() => MaybePromise<void>>;
142
144
  /**
143
145
  * Closes active subscriptions and disposes of all resources. Publishing and subscribing after disposal
package/dist/index.d.ts CHANGED
@@ -114,7 +114,9 @@ type TopicDataMap = {
114
114
  [topic: string]: any;
115
115
  };
116
116
  type PubSubListener<Data extends TopicDataMap, Topic extends keyof Data> = (data: Data[Topic]) => void;
117
- interface PubSub<M extends TopicDataMap = TopicDataMap> {
117
+ interface PubSub<M extends TopicDataMap = TopicDataMap, SubscribeOptions extends {
118
+ [key: string]: unknown;
119
+ } = never> {
118
120
  /**
119
121
  * Publish {@link data} for a {@link topic}.
120
122
  * @returns `void` or a `Promise` that resolves when the data has been successfully published
@@ -137,7 +139,7 @@ interface PubSub<M extends TopicDataMap = TopicDataMap> {
137
139
  *
138
140
  * @returns an `AsyncIterable` that yields data for the given {@link topic}
139
141
  */
140
- subscribe<Topic extends keyof M>(topic: Topic): AsyncIterable<M[Topic]>;
142
+ subscribe<Topic extends keyof M>(topic: Topic, ...options: [SubscribeOptions] extends [never] ? [] : [options: SubscribeOptions]): AsyncIterable<M[Topic]>;
141
143
  subscribe<Topic extends keyof M>(topic: Topic, listener: PubSubListener<M, Topic>): MaybePromise<() => MaybePromise<void>>;
142
144
  /**
143
145
  * Closes active subscriptions and disposes of all resources. Publishing and subscribing after disposal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/plugin-aws-sigv4",
3
- "version": "2.0.55",
3
+ "version": "2.0.56",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,14 +43,14 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@aws-sdk/client-sts": "^3.995.0",
46
- "@graphql-mesh/fusion-runtime": "^1.11.1",
46
+ "@graphql-mesh/fusion-runtime": "^1.11.2",
47
47
  "@whatwg-node/promise-helpers": "^1.3.2",
48
48
  "aws4": "1.13.2",
49
49
  "tslib": "^2.8.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@apollo/subgraph": "^2.13.3",
53
- "@graphql-hive/gateway-runtime": "2.10.1",
53
+ "@graphql-hive/gateway-runtime": "2.10.2",
54
54
  "@types/aws4": "^1.11.6",
55
55
  "graphql": "^16.12.0",
56
56
  "graphql-yoga": "^5.21.1",