Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/graphql-17-peer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apollo/subgraph': minor
---

Allow `graphql` v17 as a peer dependency (`^16.11.0 || ^17.0.0`). CI now runs the test suite against both v16 and v17.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
fail-fast: false
matrix:
node-version: ['22', '24', 'latest']
graphql-version: ['16', '17']

steps:
- uses: actions/checkout@v7
Expand All @@ -24,6 +25,17 @@ jobs:
- name: Install dependencies
run: npm ci

# The root devDependency is graphql v16 so that the compatibility suite in
# compatibility/ (which runs this package inside Apollo Server v5, a
# graphql v16 consumer) uses a single copy of graphql. The library also
# supports graphql v17, so swap it in here to run the unit tests against
# it. Note that this only covers the unit tests, typecheck and build: the
# compatibility suite itself still runs only on v16 (see
# compatibility.yml) until an Apollo Server release accepts graphql v17.
- name: Use graphql ${{ matrix.graphql-version }}
if: matrix.graphql-version != '16'
run: npm install --no-save graphql@${{ matrix.graphql-version }}

- name: Check formatting
run: npm run format:check

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@graphql-tools/utils": "^12.0.0"
},
"peerDependencies": {
"graphql": "^16.11.0"
"graphql": "^16.11.0 || ^17.0.0"
},
"devDependencies": {
"@changesets/changelog-github": "^1.0.0",
Expand Down
Loading