@graphql-tools/delegate 10.2.21 → 10.2.22-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99
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 +12 -28
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @graphql-tools/delegate
|
|
2
2
|
|
|
3
|
+
## 10.2.22-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1344](https://github.com/graphql-hive/gateway/pull/1344) [`89d42ec`](https://github.com/graphql-hive/gateway/commit/89d42ec0efc406b96c7a0c909121dbefc352ab99) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
|
8
|
+
- Updated dependency [`@graphql-tools/executor@^1.4.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.4.8) (from `^1.4.7`, in `dependencies`)
|
|
9
|
+
- Updated dependency [`@graphql-tools/schema@^10.0.24` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.24) (from `^10.0.11`, in `dependencies`)
|
|
10
|
+
- Updated dependency [`@graphql-tools/utils@^10.9.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.0) (from `^10.8.1`, in `dependencies`)
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [[`89d42ec`](https://github.com/graphql-hive/gateway/commit/89d42ec0efc406b96c7a0c909121dbefc352ab99)]:
|
|
13
|
+
- @graphql-tools/batch-execute@9.0.18-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99
|
|
14
|
+
|
|
3
15
|
## 10.2.21
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -51,7 +63,6 @@
|
|
|
51
63
|
### Patch Changes
|
|
52
64
|
|
|
53
65
|
- [#532](https://github.com/graphql-hive/gateway/pull/532) [`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
|
54
|
-
|
|
55
66
|
- Updated dependency [`@whatwg-node/promise-helpers@^1.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.3.0) (from `^1.2.5`, in `dependencies`)
|
|
56
67
|
|
|
57
68
|
- Updated dependencies [[`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04)]:
|
|
@@ -62,7 +73,6 @@
|
|
|
62
73
|
### Patch Changes
|
|
63
74
|
|
|
64
75
|
- [#862](https://github.com/graphql-hive/gateway/pull/862) [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
65
|
-
|
|
66
76
|
- Updated dependency [`@whatwg-node/promise-helpers@^1.2.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.2.5) (from `^1.0.0`, in `dependencies`)
|
|
67
77
|
|
|
68
78
|
- Updated dependencies [[`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448)]:
|
|
@@ -73,7 +83,6 @@
|
|
|
73
83
|
### Patch Changes
|
|
74
84
|
|
|
75
85
|
- [#726](https://github.com/graphql-hive/gateway/pull/726) [`6334b2e`](https://github.com/graphql-hive/gateway/commit/6334b2e5d4942693121ab7d44a96fa80408aace1) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
76
|
-
|
|
77
86
|
- Added dependency [`@whatwg-node/promise-helpers@^1.0.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.0.0) (to `dependencies`)
|
|
78
87
|
|
|
79
88
|
- [#742](https://github.com/graphql-hive/gateway/pull/742) [`2a54e85`](https://github.com/graphql-hive/gateway/commit/2a54e85f2848aea7525703ea33918a21db96b26b) Thanks [@kathrynkodama](https://github.com/kathrynkodama)! - Remove the index from the batched error;
|
|
@@ -114,7 +123,6 @@
|
|
|
114
123
|
### Patch Changes
|
|
115
124
|
|
|
116
125
|
- [#620](https://github.com/graphql-hive/gateway/pull/620) [`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
117
|
-
|
|
118
126
|
- Updated dependency [`@graphql-tools/utils@^10.8.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.8.1) (from `^10.7.0`, in `dependencies`)
|
|
119
127
|
|
|
120
128
|
- Updated dependencies [[`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9)]:
|
|
@@ -209,7 +217,6 @@
|
|
|
209
217
|
### Patch Changes
|
|
210
218
|
|
|
211
219
|
- [#373](https://github.com/graphql-hive/gateway/pull/373) [`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
212
|
-
|
|
213
220
|
- Updated dependency [`@graphql-tools/executor@^1.3.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.3.10) (from `^1.3.8`, in `dependencies`)
|
|
214
221
|
- Updated dependency [`@graphql-tools/utils@^10.7.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.7.0) (from `^10.6.2`, in `dependencies`)
|
|
215
222
|
|
|
@@ -221,7 +228,6 @@
|
|
|
221
228
|
### Patch Changes
|
|
222
229
|
|
|
223
230
|
- [#322](https://github.com/graphql-hive/gateway/pull/322) [`23b8987`](https://github.com/graphql-hive/gateway/commit/23b89874fcf10b4cb6b1b941f29fa5f5aecf0ef2) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
224
|
-
|
|
225
231
|
- Updated dependency [`@graphql-tools/executor@^1.3.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.3.8) (from `^1.3.6`, in `dependencies`)
|
|
226
232
|
|
|
227
233
|
## 10.2.7
|
|
@@ -229,7 +235,6 @@
|
|
|
229
235
|
### Patch Changes
|
|
230
236
|
|
|
231
237
|
- [#291](https://github.com/graphql-hive/gateway/pull/291) [`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
232
|
-
|
|
233
238
|
- Updated dependency [`tslib@^2.8.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.1) (from `^2.5.0`, in `dependencies`)
|
|
234
239
|
|
|
235
240
|
- Updated dependencies [[`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151)]:
|
|
@@ -240,11 +245,9 @@
|
|
|
240
245
|
### Patch Changes
|
|
241
246
|
|
|
242
247
|
- [#268](https://github.com/graphql-hive/gateway/pull/268) [`7df2215`](https://github.com/graphql-hive/gateway/commit/7df2215abd309dc1dfd91f4ec91ce975f3982c62) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
243
|
-
|
|
244
248
|
- Updated dependency [`dataloader@^2.2.3` ↗︎](https://www.npmjs.com/package/dataloader/v/2.2.3) (from `^2.2.2`, in `dependencies`)
|
|
245
249
|
|
|
246
250
|
- [#269](https://github.com/graphql-hive/gateway/pull/269) [`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
247
|
-
|
|
248
251
|
- Updated dependency [`@graphql-tools/executor@^1.3.6` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.3.6) (from `^1.3.3`, in `dependencies`)
|
|
249
252
|
- Updated dependency [`@graphql-tools/schema@^10.0.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.11) (from `^10.0.8`, in `dependencies`)
|
|
250
253
|
- Updated dependency [`@graphql-tools/utils@^10.6.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.2) (from `^10.6.0`, in `dependencies`)
|
|
@@ -282,7 +285,6 @@
|
|
|
282
285
|
### Patch Changes
|
|
283
286
|
|
|
284
287
|
- [#164](https://github.com/graphql-hive/gateway/pull/164) [`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
285
|
-
|
|
286
288
|
- Updated dependency [`@graphql-tools/utils@^10.6.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.0) (from `^10.5.6`, in `dependencies`)
|
|
287
289
|
|
|
288
290
|
- Updated dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf), [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b), [`f71366d`](https://github.com/graphql-hive/gateway/commit/f71366d234fe8f30a419814fe1460f1e22663241)]:
|
|
@@ -761,7 +763,6 @@
|
|
|
761
763
|
- [#6420](https://github.com/ardatan/graphql-tools/pull/6420)
|
|
762
764
|
[`a867bbc`](https://github.com/ardatan/graphql-tools/commit/a867bbc9b5b91e89a09447797b4c02e22e47ddb4)
|
|
763
765
|
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
764
|
-
|
|
765
766
|
- Added dependency
|
|
766
767
|
[`@repeaterjs/repeater@^3.0.6` ↗︎](https://www.npmjs.com/package/@repeaterjs/repeater/v/3.0.6)
|
|
767
768
|
(to `dependencies`)
|
|
@@ -873,7 +874,6 @@
|
|
|
873
874
|
Instead of transforming the AggregateError itself to a GraphQL located error.
|
|
874
875
|
|
|
875
876
|
This is because of two reasons:
|
|
876
|
-
|
|
877
877
|
- AggregateError wont lose the instanceof its class
|
|
878
878
|
- Expanding the AggregateError errors will each contain the proper locations
|
|
879
879
|
|
|
@@ -1287,7 +1287,6 @@
|
|
|
1287
1287
|
- [#5913](https://github.com/ardatan/graphql-tools/pull/5913)
|
|
1288
1288
|
[`83c0af0`](https://github.com/ardatan/graphql-tools/commit/83c0af0713ff2ce55ccfb97a1810ecfecfeab703)
|
|
1289
1289
|
Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
|
|
1290
|
-
|
|
1291
1290
|
- Updated dependency
|
|
1292
1291
|
[`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2)
|
|
1293
1292
|
(from `^10.0.0`, in `dependencies`)
|
|
@@ -1323,7 +1322,6 @@
|
|
|
1323
1322
|
- [#5477](https://github.com/ardatan/graphql-tools/pull/5477)
|
|
1324
1323
|
[`cfd47827`](https://github.com/ardatan/graphql-tools/commit/cfd47827c0e625d1b1894e18260342576d6dd71d)
|
|
1325
1324
|
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
1326
|
-
|
|
1327
1325
|
- Removed dependency
|
|
1328
1326
|
[`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from
|
|
1329
1327
|
`dependencies`)
|
|
@@ -1797,7 +1795,6 @@
|
|
|
1797
1795
|
|
|
1798
1796
|
Previously we were applying the transforms multiple times. We needed to introduced some breaking
|
|
1799
1797
|
changes to improve the initial wrapped/stitched schema generation performance;
|
|
1800
|
-
|
|
1801
1798
|
- `Transform.transformSchema` no longer accepts `transformedSchema` which can easily be created
|
|
1802
1799
|
with `applySchemaTransforms(schema, subschemaConfig)` instead.
|
|
1803
1800
|
- Proxying resolver factory function that is passed as `createProxyingResolver` to
|
|
@@ -2278,7 +2275,6 @@
|
|
|
2278
2275
|
Refactor the core delegation transforms into individual functions to modify request and results.
|
|
2279
2276
|
This will improve the performance considerably by reducing the number of visits over the request
|
|
2280
2277
|
document.
|
|
2281
|
-
|
|
2282
2278
|
- Replace `CheckResultAndHandleErrors` with `checkResultAndHandleErrors`
|
|
2283
2279
|
- Remove `delegationBindings`
|
|
2284
2280
|
- Replace `AddArgumentsAsVariables`, `AddSelectionSets`, `AddTypenameToAbstract`,
|
|
@@ -2290,7 +2286,6 @@
|
|
|
2290
2286
|
rootValue property is now a part of the Request type.
|
|
2291
2287
|
|
|
2292
2288
|
When delegating with delegateToSchema, rootValue can be set multiple ways:
|
|
2293
|
-
|
|
2294
2289
|
- when using a custom executor, the custom executor can utilize a rootValue in whichever custom
|
|
2295
2290
|
way it specifies.
|
|
2296
2291
|
- when using the default executor (execute/subscribe from graphql-js): -- rootValue can be passed
|
|
@@ -2301,7 +2296,6 @@
|
|
|
2301
2296
|
function which can pass whatever rootValue it wants to delegateToSchema as above.
|
|
2302
2297
|
|
|
2303
2298
|
- c42e811d: BREAKING CHANGES;
|
|
2304
|
-
|
|
2305
2299
|
- Rename `Request` to `ExecutionRequest`
|
|
2306
2300
|
- Add required `operationType: OperationTypeNode` field in `ExecutionRequest`
|
|
2307
2301
|
- Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema`
|
|
@@ -2312,7 +2306,6 @@
|
|
|
2312
2306
|
> https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38
|
|
2313
2307
|
|
|
2314
2308
|
Improvements;
|
|
2315
|
-
|
|
2316
2309
|
- Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize
|
|
2317
2310
|
`batchingExecutor` correctly.
|
|
2318
2311
|
- And there is no different `defaultExecutor` is created for `subscription` and other operation
|
|
@@ -2420,14 +2413,12 @@
|
|
|
2420
2413
|
|
|
2421
2414
|
These multiple entry points accommodate types with multiple keys across services that rely on a
|
|
2422
2415
|
central service to join them, for example:
|
|
2423
|
-
|
|
2424
2416
|
- Catalog service: `type Product { upc }`
|
|
2425
2417
|
- Vendors service: `type Product { upc id }`
|
|
2426
2418
|
- Reviews service: `type Product { id }`
|
|
2427
2419
|
|
|
2428
2420
|
Given this graph, the possible traversals require the Vendors service to provide entry points for
|
|
2429
2421
|
each unique key format:
|
|
2430
|
-
|
|
2431
2422
|
- `Catalog > Vendors > Reviews`
|
|
2432
2423
|
- `Catalog < Vendors > Reviews`
|
|
2433
2424
|
- `Catalog < Vendors < Reviews`
|
|
@@ -2577,7 +2568,6 @@
|
|
|
2577
2568
|
- be1a1575: ## Breaking Changes:
|
|
2578
2569
|
|
|
2579
2570
|
#### Schema Generation and Decoration API (`@graphql-tools/schema`)
|
|
2580
|
-
|
|
2581
2571
|
- Resolver validation options should now be set to `error`, `warn` or `ignore` rather than `true`
|
|
2582
2572
|
or `false`. In previous versions, some of the validators caused errors to be thrown, while some
|
|
2583
2573
|
issued warnings. This changes brings consistency to validator behavior.
|
|
@@ -2587,7 +2577,6 @@
|
|
|
2587
2577
|
`requireResolversToMatchSchema` is `error`, matching the previous behavior.
|
|
2588
2578
|
|
|
2589
2579
|
#### Schema Delegation (`delegateToSchema` & `@graphql-tools/delegate`)
|
|
2590
|
-
|
|
2591
2580
|
- The `delegateToSchema` return value has matured and been formalized as an `ExternalObject`, in
|
|
2592
2581
|
which all errors are integrated into the GraphQL response, preserving their initial path. Those
|
|
2593
2582
|
advanced users accessing the result directly will note the change in error handling. This also
|
|
@@ -2617,7 +2606,6 @@
|
|
|
2617
2606
|
parameters above.
|
|
2618
2607
|
|
|
2619
2608
|
#### Remote Schemas & Wrapping (`wrapSchema`, `makeRemoteExecutableSchema`, and `@graphql-tools/wrap`)
|
|
2620
|
-
|
|
2621
2609
|
- `wrapSchema` and `generateProxyingResolvers` now only take a single options argument with named
|
|
2622
2610
|
properties of type `SubschemaConfig`. The previously possible shorthand version with first
|
|
2623
2611
|
argument consisting of a `GraphQLSchema` and second argument representing the transforms should
|
|
@@ -2653,7 +2641,6 @@
|
|
|
2653
2641
|
`parseSelectionSet` function from `@graphql-tools/utils`.
|
|
2654
2642
|
|
|
2655
2643
|
#### Schema Stitching (`stitchSchemas` & `@graphql-tools/stitch`)
|
|
2656
|
-
|
|
2657
2644
|
- `stitchSchemas`'s `mergeTypes` option is now true by default! This causes the `onTypeConflict`
|
|
2658
2645
|
option to be ignored by default. To use `onTypeConflict` to select a specific type instead of
|
|
2659
2646
|
simply merging, simply set `mergeTypes` to false.
|
|
@@ -2674,13 +2661,11 @@
|
|
|
2674
2661
|
property name change for `onTypeConflict` from `schema` to `subschema`.
|
|
2675
2662
|
|
|
2676
2663
|
#### Mocking (`addMocksToSchema` and `@graphql-tools/mock`)
|
|
2677
|
-
|
|
2678
2664
|
- Mocks returning objects with fields set as functions are now operating according to upstream
|
|
2679
2665
|
graphql-js convention, i.e. these functions take three arguments, `args`, `context`, and `info`
|
|
2680
2666
|
with `parent` available as `this` rather than as the first argument.
|
|
2681
2667
|
|
|
2682
2668
|
#### Other Utilities (`@graphql-tools/utils`)
|
|
2683
|
-
|
|
2684
2669
|
- `filterSchema`'s `fieldFilter` will now filter _all_ fields across Object, Interface, and Input
|
|
2685
2670
|
types. For the previous Object-only behavior, switch to the `objectFieldFilter` option.
|
|
2686
2671
|
- Unused `fieldNodes` utility functions have been removed.
|
|
@@ -2692,7 +2677,6 @@
|
|
|
2692
2677
|
removed from the `utils` package, as they are implemented elsewhere or no longer necessary.
|
|
2693
2678
|
|
|
2694
2679
|
## Related Issues
|
|
2695
|
-
|
|
2696
2680
|
- proxy all the errors: #1047, #1641
|
|
2697
2681
|
- better error handling for merges #2016, #2062
|
|
2698
2682
|
- fix typings #1614
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/delegate",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.22-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@graphql-tools/batch-execute": "
|
|
42
|
-
"@graphql-tools/executor": "^1.4.
|
|
43
|
-
"@graphql-tools/schema": "^10.0.
|
|
44
|
-
"@graphql-tools/utils": "^10.
|
|
41
|
+
"@graphql-tools/batch-execute": "9.0.18-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99",
|
|
42
|
+
"@graphql-tools/executor": "^1.4.8",
|
|
43
|
+
"@graphql-tools/schema": "^10.0.24",
|
|
44
|
+
"@graphql-tools/utils": "^10.9.0",
|
|
45
45
|
"@repeaterjs/repeater": "^3.0.6",
|
|
46
46
|
"@whatwg-node/promise-helpers": "^1.3.0",
|
|
47
47
|
"dataloader": "^2.2.3",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"tslib": "^2.8.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/lodash": "4.17.
|
|
52
|
+
"@types/lodash": "4.17.20",
|
|
53
53
|
"graphql": "^16.9.0",
|
|
54
|
-
"pkgroll": "2.
|
|
54
|
+
"pkgroll": "2.14.3"
|
|
55
55
|
},
|
|
56
56
|
"sideEffects": false
|
|
57
57
|
}
|