Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

federation 2.10.0 #3215

Merged
merged 15 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/warm-moles-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/gateway": minor
---

Add request parameter to didEncounterError method
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.
16 changes: 1 addition & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: 2.1

orbs:
node: circleci/node@5.1.0
secops: apollo/circleci-secops-orb@2.0.7

jobs:
# Unfortunately cimg/node doesn't tag its images with major only, you have to specify a minor version.
Expand All @@ -14,6 +13,7 @@ jobs:
type: string
docker:
- image: cimg/base:stable
resource_class: large
steps:
- checkout
- node/install:
Expand Down Expand Up @@ -59,17 +59,3 @@ workflows:
- node/run:
name: Check Prettier (tests)
npm-run: prettier:check
security-scans:
jobs:
- secops/gitleaks:
context:
- platform-docker-ro
- github-orb
- secops-oidc
git-base-revision: <<#pipeline.git.base_revision>><<pipeline.git.base_revision>><</pipeline.git.base_revision >>
git-revision: << pipeline.git.revision >>
- secops/semgrep:
context:
- secops-oidc
- github-orb
git-base-revision: <<#pipeline.git.base_revision>><<pipeline.git.base_revision>><</pipeline.git.base_revision >>
1 change: 1 addition & 0 deletions .cspell/cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ overrides:
ignoreRegExpList:
- "\\]\\([^)]+\\)"
- "youTubeID=.+/>"
- "WistiaId=.+/>"
# Ignore user and repo names in GitHub links to supported subgraph libraries.
- filename: '**/compatible-subgraphs.md'
ignoreRegExpList:
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