Skip to content

Commit

Permalink
federation 2.10.0 (#3215)
Browse files Browse the repository at this point in the history
  • Loading branch information
lennyburdette authored Feb 13, 2025
1 parent bc18709 commit 8927e31
Show file tree
Hide file tree
Showing 32 changed files with 837 additions and 1,583 deletions.
11 changes: 11 additions & 0 deletions .changeset/five-ways-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"apollo-federation-integration-testsuite": minor
"@apollo/query-planner": minor
"@apollo/query-graphs": minor
"@apollo/composition": minor
"@apollo/federation-internals": minor
"@apollo/subgraph": minor
"@apollo/gateway": minor
---

Adds the ability to compose and serialize directives for [Apollo Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors, compose your supergraphs using [GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management) or [rover](https://www.apollographql.com/docs/rover/commands/dev), and run your supergraph in [Apollo Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or higher.
18 changes: 18 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"mode": "exit",
"tag": "alpha",
"initialVersions": {
"@apollo/composition": "2.9.0",
"apollo-federation-integration-testsuite": "2.9.0",
"@apollo/gateway": "2.9.0",
"@apollo/federation-internals": "2.9.0",
"@apollo/query-graphs": "2.9.0",
"@apollo/query-planner": "2.9.0",
"@apollo/subgraph": "2.9.0"
},
"changesets": [
"twenty-parents-wait",
"warm-moles-jog",
"young-pigs-crash"
]
}
5 changes: 5 additions & 0 deletions .changeset/twenty-parents-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/federation-internals": patch
---

Incorporate changes from v2.9.3
5 changes: 5 additions & 0 deletions .changeset/young-pigs-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/subgraph": patch
---

When resolving references, skip type resolution if the reference resolves to null.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
type: string
docker:
- image: cimg/base:stable
resource_class: large
steps:
- checkout
- node/install:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:

- name: Install Dependencies
run: npm i

- name: Set env
run: echo "FEDERATION_VERSION=$(npm --prefix ./internals-js version --json |jq -r '.["@apollo/federation-internals"]')" >> $GITHUB_ENV

- name: Create Release Pull Request
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
Expand All @@ -41,7 +41,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Sleep for 20 seconds (arbitrary, give NPM time to populate new `latest` versions)
if: steps.changesets.outputs.published == 'true'
run: sleep 20
Expand All @@ -58,15 +58,15 @@ jobs:
repo: 'federation-rs',
workflow_id: '.github/workflows/release.yml',
ref: 'main',
inputs: {
inputs: {
version: "${{ env.FEDERATION_VERSION }}"
}
})
- name: Write token to the NPM rc file (login)
if: steps.changesets.outputs.published == 'true'
# write token to the NPM rc file (npm login)
run: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > ~/.npmrc

- name: Update next tags if appropriate
if: steps.changesets.outputs.published == 'true'
run: node scripts/update-next-tags.mjs
6 changes: 3 additions & 3 deletions composition-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/composition",
"version": "2.9.3",
"version": "2.10.0-alpha.4",
"description": "Apollo Federation composition utilities",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -27,8 +27,8 @@
"access": "public"
},
"dependencies": {
"@apollo/federation-internals": "2.9.3",
"@apollo/query-graphs": "2.9.3"
"@apollo/federation-internals": "2.10.0-alpha.4",
"@apollo/query-graphs": "2.10.0-alpha.4"
},
"peerDependencies": {
"graphql": "^16.5.0"
Expand Down
Loading

0 comments on commit 8927e31

Please sign in to comment.