Skip to content

Commit 6b88593

Browse files
authored
deprecate graphql@15 support (#3782)
1 parent 53c4b2c commit 6b88593

File tree

13 files changed

+33
-12
lines changed

13 files changed

+33
-12
lines changed

.changeset/neat-houses-explode.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'graphql-language-service-server': minor
3+
'@graphiql/plugin-code-exporter': minor
4+
'graphql-language-service-cli': minor
5+
'@graphiql/plugin-explorer': minor
6+
'graphql-language-service': minor
7+
'codemirror-graphql': minor
8+
'@graphiql/toolkit': minor
9+
'@graphiql/react': minor
10+
'monaco-graphql': minor
11+
'cm6-graphql': minor
12+
'graphiql': minor
13+
---
14+
15+
officially deprecate graphql@15 support, as our types and other runtime capabilities ceased to be compatible in 2022 or 2023, but the regression tests were disabled
16+
`graphql-language-service` is where the bug is, which is used by all of the libraries and applications in `graphiql` monorepo.

.github/workflows/pr-graphql-compat-check.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
strategy:
2525
matrix:
2626
release:
27-
['15.5.3', '^15.8.0', '16.1.0', '16.2.0', '16.3.0', '17.0.0-alpha.7']
27+
# test against the latest 16.x version, which might be newer than what we have
28+
- '^16'
29+
# test against the oldest version we support
30+
- '^16.0.0'
31+
# test against the latest alpha
32+
- '^17.0.0-alpha'
2833
steps:
2934
- name: Checkout Code
3035
uses: actions/checkout@v4

packages/cm6-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@codemirror/state": "^6.0.0",
4545
"@codemirror/view": "^6.0.0",
4646
"@lezer/highlight": "^1.0.0",
47-
"graphql": "^16.5.0 || ^17.0.0-alpha.2"
47+
"graphql": "^16.5.0"
4848
},
4949
"license": "MIT"
5050
}

packages/codemirror-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"peerDependencies": {
4141
"@codemirror/language": "6.0.0",
4242
"codemirror": "^5.65.3",
43-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2"
43+
"graphql": "^16.0.0"
4444
},
4545
"// TEMPORARILY PINNED until we fix graphql 15 support": "",
4646
"dependencies": {

packages/graphiql-plugin-code-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"peerDependencies": {
3636
"@graphiql/react": "^0.26.0",
37-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
37+
"graphql": "^16.0.0",
3838
"react": "^16.8.0 || ^17 || ^18",
3939
"react-dom": "^16.8.0 || ^17 || ^18"
4040
},

packages/graphiql-plugin-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"peerDependencies": {
3535
"@graphiql/react": "^0.26.0",
36-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
36+
"graphql": "^16.0.0",
3737
"react": "^16.8.0 || ^17 || ^18",
3838
"react-dom": "^16.8.0 || ^17 || ^18"
3939
},

packages/graphiql-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build": "tsc --emitDeclarationOnly && vite build"
4444
},
4545
"peerDependencies": {
46-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
46+
"graphql": "^16.0.0",
4747
"react": "^16.8.0 || ^17 || ^18",
4848
"react-dom": "^16.8.0 || ^17 || ^18"
4949
},

packages/graphiql-toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"tsup": "^8.2.4"
3838
},
3939
"peerDependencies": {
40-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
40+
"graphql": "^16.0.0",
4141
"graphql-ws": ">= 4.5.0"
4242
},
4343
"peerDependenciesMeta": {

packages/graphiql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@graphiql/react": "^0.26.2"
5151
},
5252
"peerDependencies": {
53-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
53+
"graphql": "^16.0.0",
5454
"react": "^16.8.0 || ^17 || ^18",
5555
"react-dom": "^16.8.0 || ^17 || ^18"
5656
},

packages/graphql-language-service-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"LSP"
3333
],
3434
"peerDependencies": {
35-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2"
35+
"graphql": "^16.0.0"
3636
},
3737
"dependencies": {
3838
"@babel/polyfill": "^7.12.1",

packages/graphql-language-service-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"module": "esm/index.js",
3535
"typings": "esm/index.d.ts",
3636
"peerDependencies": {
37-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2"
37+
"graphql": "^16.0.0"
3838
},
3939
"COMMENT": "please do not remove dependencies without thorough testing. many dependencies are not imported directly, as they are peer dependencies",
4040
"dependencies": {

packages/graphql-language-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"graphql": "./dist/temp-bin.js"
3333
},
3434
"peerDependencies": {
35-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2"
35+
"graphql": "^16.0.0"
3636
},
3737
"dependencies": {
3838
"debounce-promise": "^3.1.2",

packages/monaco-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"vscode-languageserver-types": "^3.17.1"
7878
},
7979
"peerDependencies": {
80-
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
80+
"graphql": "^16.0.0",
8181
"monaco-editor": ">= 0.20.0 < 1",
8282
"prettier": "^2.8.0 || ^3.0.0"
8383
}

0 commit comments

Comments
 (0)