@graphql-hive/plugin-deduplicate-request 2.0.11 → 2.0.12-alpha-567d943557ff784d1c0b818129dfbe36ae69e959

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,14 @@
1
1
  # @graphql-hive/plugin-deduplicate-request
2
2
 
3
+ ## 2.0.12-alpha-567d943557ff784d1c0b818129dfbe36ae69e959
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2473](https://github.com/graphql-hive/gateway/pull/2473) [`567d943`](https://github.com/graphql-hive/gateway/commit/567d943557ff784d1c0b818129dfbe36ae69e959) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
9
+
10
+ - Updated dependency [`@graphql-mesh/utils@0.104.38-alpha-20260720145753-a9bbec477ec07ad5e973ae3f68460fab8d0cd183` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.38) (from `^0.104.36`, in `dependencies`)
11
+
3
12
  ## 2.0.11
4
13
  ### Patch Changes
5
14
 
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
@@ -227,7 +229,7 @@ interface MergedFieldConfig {
227
229
  provides?: SelectionSetNode;
228
230
  override?: OverrideHandler;
229
231
  }
230
- type MergedTypeResolver<TContext = Record<string, any>> = (originalResult: any, context: TContext, info: GraphQLResolveInfo, subschema: Subschema<any, any, any, TContext>, selectionSet: SelectionSetNode, key: any | undefined, type: GraphQLOutputType) => any;
232
+ type MergedTypeResolver<TContext = Record<string, any>> = (originalResult: any, context: TContext, info: GraphQLResolveInfo, subschema: Subschema<any, any, any, TContext>, selectionSet: SelectionSetNode, key: any | undefined, type: GraphQLOutputType, skipTypeMerging?: boolean) => any;
231
233
 
232
234
  interface ISubschema<K = any, V = any, C = K, TContext = Record<string, any>> extends SubschemaConfig<K, V, C, TContext> {
233
235
  transformedSchema: GraphQLSchema;
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
@@ -227,7 +229,7 @@ interface MergedFieldConfig {
227
229
  provides?: SelectionSetNode;
228
230
  override?: OverrideHandler;
229
231
  }
230
- type MergedTypeResolver<TContext = Record<string, any>> = (originalResult: any, context: TContext, info: GraphQLResolveInfo, subschema: Subschema<any, any, any, TContext>, selectionSet: SelectionSetNode, key: any | undefined, type: GraphQLOutputType) => any;
232
+ type MergedTypeResolver<TContext = Record<string, any>> = (originalResult: any, context: TContext, info: GraphQLResolveInfo, subschema: Subschema<any, any, any, TContext>, selectionSet: SelectionSetNode, key: any | undefined, type: GraphQLOutputType, skipTypeMerging?: boolean) => any;
231
233
 
232
234
  interface ISubschema<K = any, V = any, C = K, TContext = Record<string, any>> extends SubschemaConfig<K, V, C, TContext> {
233
235
  transformedSchema: GraphQLSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/plugin-deduplicate-request",
3
- "version": "2.0.11",
3
+ "version": "2.0.12-alpha-567d943557ff784d1c0b818129dfbe36ae69e959",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,16 +42,16 @@
42
42
  "graphql": "^16.12.0"
43
43
  },
44
44
  "dependencies": {
45
- "@graphql-mesh/utils": "^0.104.36",
45
+ "@graphql-mesh/utils": "0.104.38-alpha-20260720145753-a9bbec477ec07ad5e973ae3f68460fab8d0cd183",
46
46
  "@graphql-tools/utils": "^11.0.0",
47
47
  "@whatwg-node/promise-helpers": "^1.3.2"
48
48
  },
49
49
  "devDependencies": {
50
- "@graphql-hive/gateway-runtime": "2.8.10",
50
+ "@graphql-hive/gateway-runtime": "2.10.1-alpha-567d943557ff784d1c0b818129dfbe36ae69e959",
51
51
  "@graphql-mesh/types": "^0.104.27",
52
52
  "@whatwg-node/fetch": "^0.10.13",
53
53
  "graphql": "^16.12.0",
54
- "pkgroll": "2.27.0"
54
+ "pkgroll": "2.27.1"
55
55
  },
56
56
  "sideEffects": false
57
57
  }