Skip to content

Commit 89aa142

Browse files
committed
feat: support GraphQL 17
Resolves #155
1 parent b2d88cc commit 89aa142

3 files changed

Lines changed: 29 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ jobs:
3535
run: yarn check:${{ matrix.check }}
3636

3737
test:
38-
name: Test
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
include:
42+
- graphql: 17
43+
node: 24
44+
- graphql: 16
45+
node: 22
46+
name: Test GraphQL ${{ matrix.graphql }} on Node ${{ matrix.node }}
3947
runs-on: ubuntu-latest
4048
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4149
steps:
@@ -44,9 +52,15 @@ jobs:
4452
- name: Set up Node
4553
uses: actions/setup-node@v4
4654
with:
47-
node-version-file: .nvmrc
55+
node-version: ${{ matrix.node }}
4856
cache: yarn
49-
- name: Install
57+
- name: Install GraphQL 17 baseline
58+
if: matrix.graphql == 17
5059
run: yarn install --immutable
60+
- name: Install GraphQL 16 compatibility baseline
61+
if: matrix.graphql == 16
62+
run: yarn add --dev graphql@^16.8.1
63+
- name: Check types
64+
run: yarn check:type
5165
- name: Test
52-
run: yarn test
66+
run: yarn test --run

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"implementations/**/*"
114114
],
115115
"peerDependencies": {
116-
"graphql": ">=0.11 <=16"
116+
"graphql": ">=0.11 <=17"
117117
},
118118
"devDependencies": {
119119
"@cspell/cspell-types": "^8.1.2",
@@ -137,7 +137,7 @@
137137
"express": "^4.18.2",
138138
"fastify": "^4.24.3",
139139
"glob": "^10.3.10",
140-
"graphql": "^16.8.1",
140+
"graphql": "^17.0.0",
141141
"html-validator": "^6.0.1",
142142
"koa": "^2.15.3",
143143
"koa-mount": "^4.0.0",

yarn.lock

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7604,7 +7604,7 @@ __metadata:
76047604
express: "npm:^4.18.2"
76057605
fastify: "npm:^4.24.3"
76067606
glob: "npm:^10.3.10"
7607-
graphql: "npm:^16.8.1"
7607+
graphql: "npm:^17.0.0"
76087608
html-validator: "npm:^6.0.1"
76097609
koa: "npm:^2.15.3"
76107610
koa-mount: "npm:^4.0.0"
@@ -7621,7 +7621,7 @@ __metadata:
76217621
uWebSockets.js: "uNetworking/uWebSockets.js#v20.69.0"
76227622
vitest: "npm:^1.0.1"
76237623
peerDependencies:
7624-
graphql: ">=0.11 <=16"
7624+
graphql: ">=0.11 <=17"
76257625
languageName: unknown
76267626
linkType: soft
76277627

@@ -7738,6 +7738,13 @@ __metadata:
77387738
languageName: node
77397739
linkType: hard
77407740

7741+
"graphql@npm:^17.0.0":
7742+
version: 17.0.2
7743+
resolution: "graphql@npm:17.0.2"
7744+
checksum: e3760187b08cafd0755cc504bf272623cba8a05c29671c9ec5709fe634aaf62011a98e7831f67add3775261a0617e1b0d548da99ab70532b72d6dd5e1f0915ca
7745+
languageName: node
7746+
linkType: hard
7747+
77417748
"handlebars@npm:^4.7.7":
77427749
version: 4.7.8
77437750
resolution: "handlebars@npm:4.7.8"

0 commit comments

Comments
 (0)