Skip to content

Commit b633147

Browse files
committed
Upgrade graphql-js to v17 alpha
Update graphql dependency from ^16.11.0 to 17.0.0-alpha.11 across the root package, all example projects, and the website. Code changes for v17 API compatibility: - Replace `instanceof` checks with type guard functions (isScalarType, isObjectType, isInterfaceType, isInputObjectType) - Move ConstDirectiveNode import from graphql/language to graphql - Update arg.defaultValue to arg.default (v17 API change) - Update test snapshots for v17 output differences
1 parent 3c3fc6a commit b633147

19 files changed

Lines changed: 161 additions & 188 deletions

File tree

examples/apollo-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@apollo/server": "^5.0.0",
3131
"@types/node": "^20.8.10",
32-
"graphql": "16.11.0"
32+
"graphql": "17.0.0-alpha.11"
3333
},
3434
"devDependencies": {
3535
"grats": "workspace:*",

examples/express-graphql-http/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@types/express": "^4.17.20",
3232
"@types/node": "^20.8.10",
3333
"express": "^4.18.2",
34-
"graphql": "16.8.1",
34+
"graphql": "17.0.0-alpha.11",
3535
"graphql-http": "^1.22.0"
3636
},
3737
"devDependencies": {

examples/incremental-migration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@faker-js/faker": "^8.4.1",
3535
"@graphql-tools/schema": "^10.0.3",
3636
"@pothos/core": "^3.41.1",
37-
"graphql": "16.8.1",
37+
"graphql": "17.0.0-alpha.11",
3838
"graphql-yoga": "^5.0.0",
3939
"typescript": "^5.5.4"
4040
},

examples/next-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"homepage": "https://github.com/captbaritone/grats#readme",
3232
"dependencies": {
33-
"graphql": "^16.8.1",
33+
"graphql": "17.0.0-alpha.11",
3434
"graphql-yoga": "^5.0.0",
3535
"next": "14.0.3",
3636
"react": "^18",

examples/production-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@graphql-tools/utils": "^9.2.1",
3535
"@graphql-yoga/plugin-defer-stream": "^3.1.1",
3636
"dataloader": "^2.2.2",
37-
"graphql": "16.11.0",
37+
"graphql": "17.0.0-alpha.11",
3838
"graphql-relay": "^0.10.0",
3939
"graphql-yoga": "^5.16.0",
4040
"typescript": "^5.5.4"

examples/strict-semantic-nullability/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"homepage": "https://github.com/captbaritone/grats#readme",
3030
"dependencies": {
31-
"graphql": "16.8.1",
31+
"graphql": "17.0.0-alpha.11",
3232
"graphql-yoga": "^5.0.0",
3333
"typescript": "^5.5.4"
3434
},

examples/yoga/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"homepage": "https://github.com/captbaritone/grats#readme",
3030
"dependencies": {
31-
"graphql": "16.8.1",
31+
"graphql": "17.0.0-alpha.11",
3232
"graphql-yoga": "^5.0.0",
3333
"typescript": "^5.5.4"
3434
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"commander": "^14.0.1",
24-
"graphql": "^16.11.0",
24+
"graphql": "17.0.0-alpha.11",
2525
"semver": "^7.7.2",
2626
"typescript": "5.9.2"
2727
},

0 commit comments

Comments
 (0)