@graphql-hive/plugin-deduplicate-request 2.0.3 → 2.0.4-alpha-c5328c567de809a3d87a7c469253ee8beb38e591
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 +9 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @graphql-hive/plugin-deduplicate-request
|
|
2
2
|
|
|
3
|
+
## 2.0.4-alpha-c5328c567de809a3d87a7c469253ee8beb38e591
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#1637](https://github.com/graphql-hive/gateway/pull/1637) [`d53e1af`](https://github.com/graphql-hive/gateway/commit/d53e1af0c0e090aea7bced47a30bad8b8e5ebb3a) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
|
9
|
+
|
|
10
|
+
- Updated dependency [`@graphql-mesh/utils@^0.104.14` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.14) (from `^0.104.13`, in `dependencies`)
|
|
11
|
+
|
|
3
12
|
## 2.0.3
|
|
4
13
|
### Patch Changes
|
|
5
14
|
|
package/dist/index.d.cts
CHANGED
|
@@ -203,11 +203,13 @@ interface MergedTypeResolverOptions<K = any, V = any> {
|
|
|
203
203
|
valuesFromResults?: (results: any, keys: ReadonlyArray<K>) => Array<V>;
|
|
204
204
|
dataLoaderOptions?: DataLoader.Options<K, V>;
|
|
205
205
|
}
|
|
206
|
+
type OverrideHandler = (context: any, info: GraphQLResolveInfo) => boolean;
|
|
206
207
|
interface MergedFieldConfig {
|
|
207
208
|
selectionSet?: string;
|
|
208
209
|
computed?: boolean;
|
|
209
210
|
canonical?: boolean;
|
|
210
211
|
provides?: SelectionSetNode;
|
|
212
|
+
override?: OverrideHandler;
|
|
211
213
|
}
|
|
212
214
|
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;
|
|
213
215
|
|
|
@@ -229,6 +231,12 @@ declare class Subschema<K = any, V = any, C = K, TContext = Record<string, any>>
|
|
|
229
231
|
set transformedSchema(value: GraphQLSchema);
|
|
230
232
|
}
|
|
231
233
|
|
|
234
|
+
declare module '@graphql-tools/utils' {
|
|
235
|
+
interface IFieldResolverOptions<TSource = any, TContext = any, TArgs = any> {
|
|
236
|
+
selectionSet?: string | ((node: FieldNode) => SelectionSetNode);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
232
240
|
type Instrumentation$1 = {
|
|
233
241
|
/**
|
|
234
242
|
* Wrap each subgraph execution request. This can happen multiple time for the same graphql operation.
|
package/dist/index.d.ts
CHANGED
|
@@ -203,11 +203,13 @@ interface MergedTypeResolverOptions<K = any, V = any> {
|
|
|
203
203
|
valuesFromResults?: (results: any, keys: ReadonlyArray<K>) => Array<V>;
|
|
204
204
|
dataLoaderOptions?: DataLoader.Options<K, V>;
|
|
205
205
|
}
|
|
206
|
+
type OverrideHandler = (context: any, info: GraphQLResolveInfo) => boolean;
|
|
206
207
|
interface MergedFieldConfig {
|
|
207
208
|
selectionSet?: string;
|
|
208
209
|
computed?: boolean;
|
|
209
210
|
canonical?: boolean;
|
|
210
211
|
provides?: SelectionSetNode;
|
|
212
|
+
override?: OverrideHandler;
|
|
211
213
|
}
|
|
212
214
|
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;
|
|
213
215
|
|
|
@@ -229,6 +231,12 @@ declare class Subschema<K = any, V = any, C = K, TContext = Record<string, any>>
|
|
|
229
231
|
set transformedSchema(value: GraphQLSchema);
|
|
230
232
|
}
|
|
231
233
|
|
|
234
|
+
declare module '@graphql-tools/utils' {
|
|
235
|
+
interface IFieldResolverOptions<TSource = any, TContext = any, TArgs = any> {
|
|
236
|
+
selectionSet?: string | ((node: FieldNode) => SelectionSetNode);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
232
240
|
type Instrumentation$1 = {
|
|
233
241
|
/**
|
|
234
242
|
* Wrap each subgraph execution request. This can happen multiple time for the same graphql operation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/plugin-deduplicate-request",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4-alpha-c5328c567de809a3d87a7c469253ee8beb38e591",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"graphql": "^16.9.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@graphql-mesh/utils": "^0.104.
|
|
45
|
+
"@graphql-mesh/utils": "^0.104.14",
|
|
46
46
|
"@graphql-tools/utils": "^10.9.1",
|
|
47
47
|
"@whatwg-node/promise-helpers": "^1.3.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@graphql-hive/gateway-runtime": "2.1
|
|
51
|
-
"@graphql-mesh/types": "^0.104.
|
|
52
|
-
"@whatwg-node/fetch": "^0.10.
|
|
50
|
+
"@graphql-hive/gateway-runtime": "2.2.1-alpha-c5328c567de809a3d87a7c469253ee8beb38e591",
|
|
51
|
+
"@graphql-mesh/types": "^0.104.14",
|
|
52
|
+
"@whatwg-node/fetch": "^0.10.11",
|
|
53
53
|
"graphql": "^16.9.0",
|
|
54
|
-
"pkgroll": "2.
|
|
54
|
+
"pkgroll": "2.20.1"
|
|
55
55
|
},
|
|
56
56
|
"sideEffects": false
|
|
57
57
|
}
|