@graphql-tools/wrap 10.1.2 → 10.1.3-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 +11 -22
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @graphql-tools/wrap
|
|
2
2
|
|
|
3
|
+
## 10.1.3-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/schema@^10.0.24` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.24) (from `^10.0.11`, in `dependencies`)
|
|
9
|
+
- 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`)
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`89d42ec`](https://github.com/graphql-hive/gateway/commit/89d42ec0efc406b96c7a0c909121dbefc352ab99)]:
|
|
12
|
+
- @graphql-tools/delegate@10.2.22-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99
|
|
13
|
+
|
|
3
14
|
## 10.1.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -44,7 +55,6 @@
|
|
|
44
55
|
### Patch Changes
|
|
45
56
|
|
|
46
57
|
- [#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:
|
|
47
|
-
|
|
48
58
|
- 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`)
|
|
49
59
|
|
|
50
60
|
- Updated dependencies [[`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04)]:
|
|
@@ -55,7 +65,6 @@
|
|
|
55
65
|
### Patch Changes
|
|
56
66
|
|
|
57
67
|
- [#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:
|
|
58
|
-
|
|
59
68
|
- 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`)
|
|
60
69
|
|
|
61
70
|
- Updated dependencies [[`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448)]:
|
|
@@ -66,7 +75,6 @@
|
|
|
66
75
|
### Patch Changes
|
|
67
76
|
|
|
68
77
|
- [#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:
|
|
69
|
-
|
|
70
78
|
- Added dependency [`@whatwg-node/promise-helpers@^1.0.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/promise-helpers/v/1.0.0) (to `dependencies`)
|
|
71
79
|
|
|
72
80
|
- Updated dependencies [[`6334b2e`](https://github.com/graphql-hive/gateway/commit/6334b2e5d4942693121ab7d44a96fa80408aace1), [`2a54e85`](https://github.com/graphql-hive/gateway/commit/2a54e85f2848aea7525703ea33918a21db96b26b)]:
|
|
@@ -84,7 +92,6 @@
|
|
|
84
92
|
### Patch Changes
|
|
85
93
|
|
|
86
94
|
- [#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:
|
|
87
|
-
|
|
88
95
|
- 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`)
|
|
89
96
|
|
|
90
97
|
- Updated dependencies [[`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9)]:
|
|
@@ -176,7 +183,6 @@
|
|
|
176
183
|
### Patch Changes
|
|
177
184
|
|
|
178
185
|
- [#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:
|
|
179
|
-
|
|
180
186
|
- 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`)
|
|
181
187
|
|
|
182
188
|
- Updated dependencies [[`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2)]:
|
|
@@ -194,7 +200,6 @@
|
|
|
194
200
|
### Patch Changes
|
|
195
201
|
|
|
196
202
|
- [#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:
|
|
197
|
-
|
|
198
203
|
- Updated dependency [`tslib@^2.8.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.1) (from `^2.4.0`, in `dependencies`)
|
|
199
204
|
|
|
200
205
|
- Updated dependencies [[`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151)]:
|
|
@@ -205,7 +210,6 @@
|
|
|
205
210
|
### Patch Changes
|
|
206
211
|
|
|
207
212
|
- [#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:
|
|
208
|
-
|
|
209
213
|
- Updated dependency [`@graphql-tools/schema@^10.0.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.11) (from `^10.0.7`, in `dependencies`)
|
|
210
214
|
- 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`)
|
|
211
215
|
|
|
@@ -245,15 +249,12 @@
|
|
|
245
249
|
### Patch Changes
|
|
246
250
|
|
|
247
251
|
- [#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:
|
|
248
|
-
|
|
249
252
|
- 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`)
|
|
250
253
|
|
|
251
254
|
- [#185](https://github.com/graphql-hive/gateway/pull/185) [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
252
|
-
|
|
253
255
|
- Removed dependency [`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `dependencies`)
|
|
254
256
|
|
|
255
257
|
- [#188](https://github.com/graphql-hive/gateway/pull/188) [`f71366d`](https://github.com/graphql-hive/gateway/commit/f71366d234fe8f30a419814fe1460f1e22663241) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
256
|
-
|
|
257
258
|
- Removed dependency [`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `dependencies`)
|
|
258
259
|
|
|
259
260
|
- Updated dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf)]:
|
|
@@ -863,7 +864,6 @@
|
|
|
863
864
|
- [#4640](https://github.com/ardatan/graphql-tools/pull/4640)
|
|
864
865
|
[`27bdc237`](https://github.com/ardatan/graphql-tools/commit/27bdc23713a5176485ac940fc5431256b4f2de8d)
|
|
865
866
|
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
866
|
-
|
|
867
867
|
- Updated dependency
|
|
868
868
|
[`@graphql-tools/delegate@9.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.3)
|
|
869
869
|
(was `9.0.2`, in `dependencies`)
|
|
@@ -914,7 +914,6 @@
|
|
|
914
914
|
|
|
915
915
|
Previously we were applying the transforms multiple times. We needed to introduced some breaking
|
|
916
916
|
changes to improve the initial wrapped/stitched schema generation performance;
|
|
917
|
-
|
|
918
917
|
- `Transform.transformSchema` no longer accepts `transformedSchema` which can easily be created
|
|
919
918
|
with `applySchemaTransforms(schema, subschemaConfig)` instead.
|
|
920
919
|
- Proxying resolver factory function that is passed as `createProxyingResolver` to
|
|
@@ -1387,7 +1386,6 @@
|
|
|
1387
1386
|
rootValue property is now a part of the Request type.
|
|
1388
1387
|
|
|
1389
1388
|
When delegating with delegateToSchema, rootValue can be set multiple ways:
|
|
1390
|
-
|
|
1391
1389
|
- when using a custom executor, the custom executor can utilize a rootValue in whichever custom
|
|
1392
1390
|
way it specifies.
|
|
1393
1391
|
- when using the default executor (execute/subscribe from graphql-js): -- rootValue can be passed
|
|
@@ -1398,7 +1396,6 @@
|
|
|
1398
1396
|
function which can pass whatever rootValue it wants to delegateToSchema as above.
|
|
1399
1397
|
|
|
1400
1398
|
- c42e811d: BREAKING CHANGES;
|
|
1401
|
-
|
|
1402
1399
|
- Rename `Request` to `ExecutionRequest`
|
|
1403
1400
|
- Add required `operationType: OperationTypeNode` field in `ExecutionRequest`
|
|
1404
1401
|
- Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema`
|
|
@@ -1409,7 +1406,6 @@
|
|
|
1409
1406
|
> https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38
|
|
1410
1407
|
|
|
1411
1408
|
Improvements;
|
|
1412
|
-
|
|
1413
1409
|
- Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize
|
|
1414
1410
|
`batchingExecutor` correctly.
|
|
1415
1411
|
- And there is no different `defaultExecutor` is created for `subscription` and other operation
|
|
@@ -1561,7 +1557,6 @@
|
|
|
1561
1557
|
- be1a1575: ## Breaking Changes:
|
|
1562
1558
|
|
|
1563
1559
|
#### Schema Generation and Decoration API (`@graphql-tools/schema`)
|
|
1564
|
-
|
|
1565
1560
|
- Resolver validation options should now be set to `error`, `warn` or `ignore` rather than `true`
|
|
1566
1561
|
or `false`. In previous versions, some of the validators caused errors to be thrown, while some
|
|
1567
1562
|
issued warnings. This changes brings consistency to validator behavior.
|
|
@@ -1571,7 +1566,6 @@
|
|
|
1571
1566
|
`requireResolversToMatchSchema` is `error`, matching the previous behavior.
|
|
1572
1567
|
|
|
1573
1568
|
#### Schema Delegation (`delegateToSchema` & `@graphql-tools/delegate`)
|
|
1574
|
-
|
|
1575
1569
|
- The `delegateToSchema` return value has matured and been formalized as an `ExternalObject`, in
|
|
1576
1570
|
which all errors are integrated into the GraphQL response, preserving their initial path. Those
|
|
1577
1571
|
advanced users accessing the result directly will note the change in error handling. This also
|
|
@@ -1601,7 +1595,6 @@
|
|
|
1601
1595
|
parameters above.
|
|
1602
1596
|
|
|
1603
1597
|
#### Remote Schemas & Wrapping (`wrapSchema`, `makeRemoteExecutableSchema`, and `@graphql-tools/wrap`)
|
|
1604
|
-
|
|
1605
1598
|
- `wrapSchema` and `generateProxyingResolvers` now only take a single options argument with named
|
|
1606
1599
|
properties of type `SubschemaConfig`. The previously possible shorthand version with first
|
|
1607
1600
|
argument consisting of a `GraphQLSchema` and second argument representing the transforms should
|
|
@@ -1637,7 +1630,6 @@
|
|
|
1637
1630
|
`parseSelectionSet` function from `@graphql-tools/utils`.
|
|
1638
1631
|
|
|
1639
1632
|
#### Schema Stitching (`stitchSchemas` & `@graphql-tools/stitch`)
|
|
1640
|
-
|
|
1641
1633
|
- `stitchSchemas`'s `mergeTypes` option is now true by default! This causes the `onTypeConflict`
|
|
1642
1634
|
option to be ignored by default. To use `onTypeConflict` to select a specific type instead of
|
|
1643
1635
|
simply merging, simply set `mergeTypes` to false.
|
|
@@ -1658,13 +1650,11 @@
|
|
|
1658
1650
|
property name change for `onTypeConflict` from `schema` to `subschema`.
|
|
1659
1651
|
|
|
1660
1652
|
#### Mocking (`addMocksToSchema` and `@graphql-tools/mock`)
|
|
1661
|
-
|
|
1662
1653
|
- Mocks returning objects with fields set as functions are now operating according to upstream
|
|
1663
1654
|
graphql-js convention, i.e. these functions take three arguments, `args`, `context`, and `info`
|
|
1664
1655
|
with `parent` available as `this` rather than as the first argument.
|
|
1665
1656
|
|
|
1666
1657
|
#### Other Utilities (`@graphql-tools/utils`)
|
|
1667
|
-
|
|
1668
1658
|
- `filterSchema`'s `fieldFilter` will now filter _all_ fields across Object, Interface, and Input
|
|
1669
1659
|
types. For the previous Object-only behavior, switch to the `objectFieldFilter` option.
|
|
1670
1660
|
- Unused `fieldNodes` utility functions have been removed.
|
|
@@ -1676,7 +1666,6 @@
|
|
|
1676
1666
|
removed from the `utils` package, as they are implemented elsewhere or no longer necessary.
|
|
1677
1667
|
|
|
1678
1668
|
## Related Issues
|
|
1679
|
-
|
|
1680
1669
|
- proxy all the errors: #1047, #1641
|
|
1681
1670
|
- better error handling for merges #2016, #2062
|
|
1682
1671
|
- fix typings #1614
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/wrap",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
6
6
|
"repository": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@graphql-tools/delegate": "
|
|
42
|
-
"@graphql-tools/schema": "^10.0.
|
|
43
|
-
"@graphql-tools/utils": "^10.
|
|
41
|
+
"@graphql-tools/delegate": "10.2.22-alpha-89d42ec0efc406b96c7a0c909121dbefc352ab99",
|
|
42
|
+
"@graphql-tools/schema": "^10.0.24",
|
|
43
|
+
"@graphql-tools/utils": "^10.9.0",
|
|
44
44
|
"@whatwg-node/promise-helpers": "^1.3.0",
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"graphql": "^16.9.0",
|
|
49
|
-
"pkgroll": "2.
|
|
49
|
+
"pkgroll": "2.14.3"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false
|
|
52
52
|
}
|