Skip to content

Commit 51c5737

Browse files
release: on branch version-2.11 (preview) (#3334)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to version-2.11, this PR will be updated. ⚠️⚠️⚠️⚠️⚠️⚠️ `version-2.11` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `version-2.11`. ⚠️⚠️⚠️⚠️⚠️⚠️ # Releases ## @apollo/[email protected] ### Patch Changes - Fixed access control verification of transitive requirements (through `@requires` and/or `@fromContext`) to ensure it works with chains of transitive dependencies. ([#3333](#3333)) - Allow interface object fields to specify access control ([#3333](#3333)) Update composition logic to allow specifying access control directives (`@authenticated`, `@requiresScopes` and `@policy`) on `@interfaceObject` fields. While we disallow access control on interface types and fields, we decided to support it on `@interfaceObject` as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of `@interfaceObject`. This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields. - Updated dependencies \[[`e1c58611c3c996b4fff98a54e49f00549ff2115d`](e1c5861)]: - @apollo/[email protected] - @apollo/[email protected] ## @apollo/[email protected] ### Patch Changes - Updated dependencies \[[`5ee4d966487e714ae6bc6445bf53d75ccbbaf6ae`](5ee4d96), [`e1c58611c3c996b4fff98a54e49f00549ff2115d`](e1c5861)]: - @apollo/[email protected] - @apollo/[email protected] - @apollo/[email protected] ## @apollo/[email protected] ### Patch Changes - Allow interface object fields to specify access control ([#3333](#3333)) Update composition logic to allow specifying access control directives (`@authenticated`, `@requiresScopes` and `@policy`) on `@interfaceObject` fields. While we disallow access control on interface types and fields, we decided to support it on `@interfaceObject` as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of `@interfaceObject`. This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields. ## @apollo/[email protected] ### Patch Changes - Updated dependencies \[[`e1c58611c3c996b4fff98a54e49f00549ff2115d`](e1c5861)]: - @apollo/[email protected] ## @apollo/[email protected] ### Patch Changes - Updated dependencies \[[`e1c58611c3c996b4fff98a54e49f00549ff2115d`](e1c5861)]: - @apollo/[email protected] - @apollo/[email protected] ## @apollo/[email protected] ### Patch Changes - Updated dependencies \[[`e1c58611c3c996b4fff98a54e49f00549ff2115d`](e1c5861)]: - @apollo/[email protected] ## [email protected] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fa26c11 commit 51c5737

File tree

16 files changed

+95
-33
lines changed

16 files changed

+95
-33
lines changed

.changeset/pre.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
"@apollo/query-planner": "2.11.5",
1111
"@apollo/subgraph": "2.11.5"
1212
},
13-
"changesets": []
13+
"changesets": [
14+
"orange-yaks-double",
15+
"shaggy-adults-help"
16+
]
1417
}

composition-js/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# CHANGELOG for `@apollo/composition`
22

3+
## 2.11.5-preview.0
4+
5+
### Patch Changes
6+
7+
- Fixed access control verification of transitive requirements (through `@requires` and/or `@fromContext`) to ensure it works with chains of transitive dependencies. ([#3333](https://github.com/apollographql/federation/pull/3333))
8+
9+
- Allow interface object fields to specify access control ([#3333](https://github.com/apollographql/federation/pull/3333))
10+
11+
Update composition logic to allow specifying access control directives (`@authenticated`, `@requiresScopes` and `@policy`) on `@interfaceObject` fields. While we disallow access control on interface types and fields, we decided to support it on `@interfaceObject` as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of `@interfaceObject`.
12+
13+
This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields.
14+
15+
- Updated dependencies [[`e1c58611c3c996b4fff98a54e49f00549ff2115d`](https://github.com/apollographql/federation/commit/e1c58611c3c996b4fff98a54e49f00549ff2115d)]:
16+
- @apollo/federation-internals@2.11.5-preview.0
17+
- @apollo/query-graphs@2.11.5-preview.0
18+
319
## 2.11.4
420

521
### Patch Changes

composition-js/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/composition",
3-
"version": "2.11.4",
3+
"version": "2.11.5-preview.0",
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.11.4",
31-
"@apollo/query-graphs": "2.11.4"
30+
"@apollo/federation-internals": "2.11.5-preview.0",
31+
"@apollo/query-graphs": "2.11.5-preview.0"
3232
},
3333
"peerDependencies": {
3434
"graphql": "^16.5.0"

federation-integration-testsuite-js/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CHANGELOG for `federation-integration-testsuite-js`
22

3+
## 2.11.5-preview.0
4+
35
## 2.11.4
46

57
## 2.11.3

federation-integration-testsuite-js/package.json

Lines changed: 1 addition & 1 deletion
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.11.4",
4+
"version": "2.11.5-preview.0",
55
"description": "Apollo Federation Integrations / Test Fixtures",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",

gateway-js/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# CHANGELOG for `@apollo/gateway`
22

3+
## 2.11.5-preview.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`5ee4d966487e714ae6bc6445bf53d75ccbbaf6ae`](https://github.com/apollographql/federation/commit/5ee4d966487e714ae6bc6445bf53d75ccbbaf6ae), [`e1c58611c3c996b4fff98a54e49f00549ff2115d`](https://github.com/apollographql/federation/commit/e1c58611c3c996b4fff98a54e49f00549ff2115d)]:
8+
- @apollo/composition@2.11.5-preview.0
9+
- @apollo/federation-internals@2.11.5-preview.0
10+
- @apollo/query-planner@2.11.5-preview.0
11+
312
## 2.11.4
413

514
### Patch Changes

gateway-js/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/gateway",
3-
"version": "2.11.4",
3+
"version": "2.11.5-preview.0",
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.11.4",
29-
"@apollo/federation-internals": "2.11.4",
30-
"@apollo/query-planner": "2.11.4",
28+
"@apollo/composition": "2.11.5-preview.0",
29+
"@apollo/federation-internals": "2.11.5-preview.0",
30+
"@apollo/query-planner": "2.11.5-preview.0",
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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# CHANGELOG for `@apollo/federation-internals`
22

3+
## 2.11.5-preview.0
4+
5+
### Patch Changes
6+
7+
- Allow interface object fields to specify access control ([#3333](https://github.com/apollographql/federation/pull/3333))
8+
9+
Update composition logic to allow specifying access control directives (`@authenticated`, `@requiresScopes` and `@policy`) on `@interfaceObject` fields. While we disallow access control on interface types and fields, we decided to support it on `@interfaceObject` as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of `@interfaceObject`.
10+
11+
This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields.
12+
313
## 2.11.4
414

515
### Patch Changes

internals-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/federation-internals",
3-
"version": "2.11.4",
3+
"version": "2.11.5-preview.0",
44
"description": "Apollo Federation internal utilities",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)