Skip to content

Commit 6869ce7

Browse files
authored
fix: set peer resolutions for [email protected] at minumum, limit example workspaces (#1816)
improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for typescript types, and `14.4.0` is required for `.toConfig()` in interface.
1 parent 3e2c9c8 commit 6869ce7

15 files changed

Lines changed: 246 additions & 2384 deletions

File tree

.changeset/young-bottles-taste.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'codemirror-graphql': patch
3+
'graphiql': patch
4+
'@graphiql/toolkit': patch
5+
'graphql-language-service': patch
6+
'graphql-language-service-cli': patch
7+
'graphql-language-service-interface': patch
8+
'graphql-language-service-parser': patch
9+
'graphql-language-service-server': patch
10+
'graphql-language-service-types': patch
11+
'graphql-language-service-utils': patch
12+
'monaco-graphql': patch
13+
---
14+
15+
improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for built-in typescript types, and another method only available in `14.4.0`

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"workspaces": {
55
"packages": [
66
"packages/*",
7-
"examples/*"
7+
"examples/monaco-graphql-webpack"
88
]
99
},
1010
"lint-staged": {
@@ -126,9 +126,5 @@
126126
"typescript": "^4.1.3",
127127
"whatwg-url": "^8.4.0",
128128
"wsrun": "^5.2.4"
129-
},
130-
"packageAllowlist": [
131-
"package-with-no-license",
132-
"package-with-okish-license"
133-
]
129+
}
134130
}

packages/codemirror-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"peerDependencies": {
4242
"codemirror": "^5.54.0",
43-
"graphql": "^14.0.0 || ^15.0.0"
43+
"graphql": ">= v14.5.0 <= 15.5.0"
4444
},
4545
"dependencies": {
4646
"graphql-language-service-interface": "^2.8.2",

packages/graphiql-2-rfc-context/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"theme-ui": "^0.3.1"
5858
},
5959
"peerDependencies": {
60-
"graphql": "^14.0.0 || ^15.0.0",
60+
"graphql": ">= v14.5.0 <= 15.5.0",
6161
"prop-types": ">=15.5.0",
6262
"react": "^16.8.0",
6363
"react-dom": "^16.8.0"

packages/graphiql-toolkit/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"isomorphic-fetch": "^3.0.0",
3030
"graphql": "experimental-stream-defer"
3131
},
32+
"peerDependencies": {
33+
"graphql": ">= v14.5.0 <= 15.5.0"
34+
},
3235
"keywords": [
3336
"graphql",
3437
"graphiql"

packages/graphiql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"markdown-it": "^10.0.0"
5454
},
5555
"peerDependencies": {
56-
"graphql": "^14.0.0 || ^15.0.0",
56+
"graphql": ">= v14.5.0 <= 15.5.0",
5757
"prop-types": ">=15.5.0",
5858
"react": "^16.8.0",
5959
"react-dom": "^16.8.0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"LSP"
2828
],
2929
"peerDependencies": {
30-
"graphql": "^14.0.0 || ^15.0.0"
30+
"graphql": ">= v14.5.0 <= 15.5.0"
3131
},
3232
"dependencies": {
3333
"@babel/polyfill": "7.8.7",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"module": "esm/index.js",
2525
"typings": "dist/index.d.ts",
2626
"peerDependencies": {
27-
"graphql": "^14.0.0 || ^15.0.0"
27+
"graphql": ">= v14.5.0 <= 15.5.0"
2828
},
2929
"dependencies": {
3030
"graphql-language-service-parser": "^1.9.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"module": "esm/index.js",
2525
"typings": "dist/index.d.ts",
2626
"peerDependencies": {
27-
"graphql": "^14.0.0 || ^15.0.0"
27+
"graphql": ">= v14.5.0 <= 15.5.0"
2828
},
2929
"devDependencies": {
3030
"@types/benchmark": "^1.0.33",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"module": "esm/index.js",
2727
"typings": "esm/index.d.ts",
2828
"peerDependencies": {
29-
"graphql": "^14.0.0 || ^15.0.0"
29+
"graphql": ">= v14.5.0 <= 15.5.0"
3030
},
3131
"dependencies": {
3232
"@babel/parser": "^7.9.0",
@@ -42,6 +42,7 @@
4242
},
4343
"devDependencies": {
4444
"@types/mkdirp": "^1.0.1",
45-
"cross-env": "^7.0.2"
45+
"cross-env": "^7.0.2",
46+
"graphql": "experimental-stream-defer"
4647
}
4748
}

0 commit comments

Comments
 (0)