@graphql-tools/federation 4.4.8-alpha-14a4e85c81dd57d1bf167c8400c225508072e334 → 4.4.8
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 +6 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @graphql-tools/federation
|
|
2
2
|
|
|
3
|
-
## 4.4.8
|
|
3
|
+
## 4.4.8
|
|
4
4
|
### Patch Changes
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
- [#2351](https://github.com/graphql-hive/gateway/pull/2351) [`
|
|
8
|
+
- [#2351](https://github.com/graphql-hive/gateway/pull/2351) [`0bbdbbc`](https://github.com/graphql-hive/gateway/commit/0bbdbbc22b75d9705a77f96144af002c796a695d) Thanks [@ardatan](https://github.com/ardatan)! - Fix `@provides` so the gateway only requests the provided fields the client actually selected, and stops delegating to the owner subgraph when `@provides` already covers the request.
|
|
9
9
|
|
|
10
10
|
Previously, when a subgraph declared `@provides(fields: "...")` on a field, the gateway would still:
|
|
11
11
|
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
- Fragment spreads in the client query are correctly handled when selecting nested `@provides`-covered fields. Previously, using a fragment spread (e.g. `...MyFrag`) for nested `@external` fields could cause an unnecessary delegation to the owner because selection subtraction compared only the spread name with the explicit `@provides` fields. The planner now resolves fragment spreads before subtracting provided selections, while preserving the fragment type condition and directives when only part of a fragment remains.
|
|
37
37
|
|
|
38
38
|
Aliases, direct field selections, fragments, fragment spreads, `@include`/`@skip` directives wrapping a `@provides` field, and nested `@provides` selections are preserved without unnecessary owner delegations.
|
|
39
|
-
- Updated dependencies [[`
|
|
40
|
-
- @graphql-tools/delegate@12.0.19
|
|
41
|
-
- @graphql-tools/stitch@10.1.24
|
|
42
|
-
- @graphql-tools/wrap@11.1.18
|
|
39
|
+
- Updated dependencies [[`0bbdbbc`](https://github.com/graphql-hive/gateway/commit/0bbdbbc22b75d9705a77f96144af002c796a695d)]:
|
|
40
|
+
- @graphql-tools/delegate@12.0.19
|
|
41
|
+
- @graphql-tools/stitch@10.1.24
|
|
42
|
+
- @graphql-tools/wrap@11.1.18
|
|
43
43
|
|
|
44
44
|
## 4.4.7
|
|
45
45
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/federation",
|
|
3
|
-
"version": "4.4.8
|
|
3
|
+
"version": "4.4.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Useful tools to create and manipulate GraphQL schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@graphql-tools/delegate": "12.0.19
|
|
41
|
+
"@graphql-tools/delegate": "^12.0.19",
|
|
42
42
|
"@graphql-tools/executor": "^1.4.13",
|
|
43
43
|
"@graphql-tools/executor-http": "^3.3.0",
|
|
44
44
|
"@graphql-tools/merge": "^9.1.5",
|
|
45
45
|
"@graphql-tools/schema": "^10.0.29",
|
|
46
|
-
"@graphql-tools/stitch": "10.1.24
|
|
46
|
+
"@graphql-tools/stitch": "^10.1.24",
|
|
47
47
|
"@graphql-tools/utils": "^11.0.0",
|
|
48
|
-
"@graphql-tools/wrap": "11.1.18
|
|
48
|
+
"@graphql-tools/wrap": "^11.1.18",
|
|
49
49
|
"@graphql-yoga/typed-event-target": "^3.0.2",
|
|
50
50
|
"@whatwg-node/disposablestack": "^0.0.6",
|
|
51
51
|
"@whatwg-node/events": "^0.1.2",
|