Skip to content

Commit 8f3c301

Browse files
committed
Merge branch 'main' into next
2 parents 9396c0d + 99f2f8a commit 8f3c301

22 files changed

+492
-408
lines changed

.changeset/brave-masks-lick.md

-6
This file was deleted.

.changeset/friendly-lies-protect.md

-8
This file was deleted.

.changeset/olive-bees-build.md

-8
This file was deleted.

.changeset/rotten-ants-clean.md

-10
This file was deleted.

.changeset/stale-birds-think.md

-7
This file was deleted.

.changeset/violet-rice-cheer.md

-9
This file was deleted.

composition-js/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# CHANGELOG for `@apollo/composition`
22

3+
## 2.4.9
4+
### Patch Changes
5+
6+
- Updated dependencies [[`7ac83456`](https://github.com/apollographql/federation/commit/7ac834568d57a9b9e63002353543d32f6e97b4a5), [`d60349b3`](https://github.com/apollographql/federation/commit/d60349b3fa7e5ba1f64c1727d88dc6faec21a38a), [`1bb7c512`](https://github.com/apollographql/federation/commit/1bb7c5129c7b07627ea33684b538fda8a83b8da8), [`02eab3ac`](https://github.com/apollographql/federation/commit/02eab3ac4a0514bef8f9253a9e43418ba1c17843), [`fd4545c2`](https://github.com/apollographql/federation/commit/fd4545c27ef343ad14436f9541f539ef80bacafa)]:
7+
- @apollo/query-graphs@2.4.9
8+
- @apollo/federation-internals@2.4.9
9+
310
## 2.4.8
411
### Patch Changes
512

composition-js/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/composition",
3-
"version": "2.4.8",
3+
"version": "2.4.9",
44
"description": "Apollo Federation composition utilities",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -27,8 +27,8 @@
2727
"access": "public"
2828
},
2929
"dependencies": {
30-
"@apollo/federation-internals": "2.4.8",
31-
"@apollo/query-graphs": "2.4.8"
30+
"@apollo/federation-internals": "2.4.9",
31+
"@apollo/query-graphs": "2.4.9"
3232
},
3333
"peerDependencies": {
3434
"graphql": "^16.5.0"

federation-integration-testsuite-js/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CHANGELOG for `federation-integration-testsuite-js`
22

3+
## 2.4.9
4+
35
## 2.4.8
46

57
## 2.4.7

federation-integration-testsuite-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "apollo-federation-integration-testsuite",
33
"private": true,
4-
"version": "2.4.8",
4+
"version": "2.4.9",
55
"description": "Apollo Federation Integrations / Test Fixtures",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",

gateway-js/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# CHANGELOG for `@apollo/gateway`
22

3+
## 2.4.9
4+
### Patch Changes
5+
6+
7+
- Try reusing named fragments in subgraph fetches even if those fragment only apply partially to the subgraph. Before this change, only named fragments that were applying entirely to a subgraph were tried, leading to less reuse that expected. Concretely, this change can sometimes allow the generation of smaller subgraph fetches. ([#2639](https://github.com/apollographql/federation/pull/2639))
8+
9+
- Updated dependencies [[`7ac83456`](https://github.com/apollographql/federation/commit/7ac834568d57a9b9e63002353543d32f6e97b4a5), [`d60349b3`](https://github.com/apollographql/federation/commit/d60349b3fa7e5ba1f64c1727d88dc6faec21a38a), [`1bb7c512`](https://github.com/apollographql/federation/commit/1bb7c5129c7b07627ea33684b538fda8a83b8da8), [`02eab3ac`](https://github.com/apollographql/federation/commit/02eab3ac4a0514bef8f9253a9e43418ba1c17843), [`fd4545c2`](https://github.com/apollographql/federation/commit/fd4545c27ef343ad14436f9541f539ef80bacafa)]:
10+
- @apollo/query-planner@2.4.9
11+
- @apollo/federation-internals@2.4.9
12+
- @apollo/composition@2.4.9
13+
314
## 2.4.8
415
### Patch Changes
516

gateway-js/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/gateway",
3-
"version": "2.4.8",
3+
"version": "2.4.9",
44
"description": "Apollo Gateway",
55
"author": "Apollo <[email protected]>",
66
"main": "dist/index.js",
@@ -25,9 +25,9 @@
2525
"access": "public"
2626
},
2727
"dependencies": {
28-
"@apollo/composition": "2.4.8",
29-
"@apollo/federation-internals": "2.4.8",
30-
"@apollo/query-planner": "2.4.8",
28+
"@apollo/composition": "2.4.9",
29+
"@apollo/federation-internals": "2.4.9",
30+
"@apollo/query-planner": "2.4.9",
3131
"@apollo/server-gateway-interface": "^1.1.0",
3232
"@apollo/usage-reporting-protobuf": "^4.1.0",
3333
"@apollo/utils.createhash": "^2.0.0",

internals-js/CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# CHANGELOG for `@apollo/federation-internals`
22

3+
## 2.4.9
4+
### Patch Changes
5+
6+
7+
- Improves query planning time in some situations where entities use multiple keys. ([#2610](https://github.com/apollographql/federation/pull/2610))
8+
9+
10+
- Try reusing named fragments in subgraph fetches even if those fragment only apply partially to the subgraph. Before this change, only named fragments that were applying entirely to a subgraph were tried, leading to less reuse that expected. Concretely, this change can sometimes allow the generation of smaller subgraph fetches. ([#2639](https://github.com/apollographql/federation/pull/2639))
11+
12+
13+
- Fix issue in the code to reuse fragments that, in some rare circumstances, could led to invalid queries where a named ([#2659](https://github.com/apollographql/federation/pull/2659))
14+
spread was use in an invalid position. If triggered, this resulted in an subgraph fetch whereby a named spread was
15+
used inside a sub-selection even though the spread condition did not intersect the parent type (the exact error message
16+
would depend on the client library used to handle subgraph fetches, but with GraphQL-js, the error message had the
17+
form "Fragment <F> cannot be spread here as objects of type <X> can never be of type <Y>").
18+
19+
- Fix regression in named fragment reuse introduced by 2.4.8 that caused fragments that were only used by other fragments ([#2648](https://github.com/apollographql/federation/pull/2648))
20+
to not be reused, even if they are making the overall query smaller and thus should be reused.
21+
22+
- Fix unnecessary busy work in the code extracting subgraphs from supergraphs. This code is executing when a new ([#2654](https://github.com/apollographql/federation/pull/2654))
23+
supergraph is deployed, and can impact gateway clients when it runs. This is often not a problem, but for
24+
large supergraphs with lots of subgraphs, an obvious inefficiency could make the code take much longer than
25+
it should have.
26+
327
## 2.4.8
428
### Patch Changes
529

internals-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/federation-internals",
3-
"version": "2.4.8",
3+
"version": "2.4.9",
44
"description": "Apollo Federation internal utilities",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)