Skip to content

Commit

Permalink
fix: set peer resolutions for [email protected] at minumum, limit example …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
acao authored Apr 1, 2021
1 parent 3e2c9c8 commit 6869ce7
Show file tree
Hide file tree
Showing 15 changed files with 246 additions and 2,384 deletions.
15 changes: 15 additions & 0 deletions .changeset/young-bottles-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'codemirror-graphql': patch
'graphiql': patch
'@graphiql/toolkit': patch
'graphql-language-service': patch
'graphql-language-service-cli': patch
'graphql-language-service-interface': patch
'graphql-language-service-parser': patch
'graphql-language-service-server': patch
'graphql-language-service-types': patch
'graphql-language-service-utils': patch
'monaco-graphql': patch
---

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`
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"workspaces": {
"packages": [
"packages/*",
"examples/*"
"examples/monaco-graphql-webpack"
]
},
"lint-staged": {
Expand Down Expand Up @@ -126,9 +126,5 @@
"typescript": "^4.1.3",
"whatwg-url": "^8.4.0",
"wsrun": "^5.2.4"
},
"packageAllowlist": [
"package-with-no-license",
"package-with-okish-license"
]
}
}
2 changes: 1 addition & 1 deletion packages/codemirror-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"peerDependencies": {
"codemirror": "^5.54.0",
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"dependencies": {
"graphql-language-service-interface": "^2.8.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql-2-rfc-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"theme-ui": "^0.3.1"
},
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0",
"graphql": ">= v14.5.0 <= 15.5.0",
"prop-types": ">=15.5.0",
"react": "^16.8.0",
"react-dom": "^16.8.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/graphiql-toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"isomorphic-fetch": "^3.0.0",
"graphql": "experimental-stream-defer"
},
"peerDependencies": {
"graphql": ">= v14.5.0 <= 15.5.0"
},
"keywords": [
"graphql",
"graphiql"
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"markdown-it": "^10.0.0"
},
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0",
"graphql": ">= v14.5.0 <= 15.5.0",
"prop-types": ">=15.5.0",
"react": "^16.8.0",
"react-dom": "^16.8.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"LSP"
],
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"dependencies": {
"@babel/polyfill": "7.8.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"module": "esm/index.js",
"typings": "dist/index.d.ts",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"dependencies": {
"graphql-language-service-parser": "^1.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"module": "esm/index.js",
"typings": "dist/index.d.ts",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"devDependencies": {
"@types/benchmark": "^1.0.33",
Expand Down
5 changes: 3 additions & 2 deletions packages/graphql-language-service-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"module": "esm/index.js",
"typings": "esm/index.d.ts",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"dependencies": {
"@babel/parser": "^7.9.0",
Expand All @@ -42,6 +42,7 @@
},
"devDependencies": {
"@types/mkdirp": "^1.0.1",
"cross-env": "^7.0.2"
"cross-env": "^7.0.2",
"graphql": "experimental-stream-defer"
}
}
5 changes: 3 additions & 2 deletions packages/graphql-language-service-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
"module": "esm/index.js",
"typings": "dist/index.d.ts",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"devDependencies": {
"graphql-config": "^3.0.2",
"vscode-languageserver-types": "3.15.0"
"vscode-languageserver-types": "3.15.0",
"graphql": "experimental-stream-defer"
}
}
5 changes: 3 additions & 2 deletions packages/graphql-language-service-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
"module": "esm/index.js",
"typings": "dist/index.d.ts",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"dependencies": {
"graphql-language-service-types": "^1.8.0",
"nullthrows": "^1.0.0"
},
"devDependencies": {
"@types/jest": "^25.2.1"
"@types/jest": "^25.2.1",
"graphql": "experimental-stream-defer"
}
}
2 changes: 1 addition & 1 deletion packages/graphql-language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"graphql": "./dist/temp-bin.js"
},
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": ">= v14.5.0 <= 15.5.0"
},
"dependencies": {
"graphql-language-service-interface": "^2.8.2",
Expand Down
11 changes: 8 additions & 3 deletions packages/monaco-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@
],
"dependencies": {
"graphql-language-service": "^3.1.2",
"graphql-language-service-utils": "^2.5.1",
"monaco-editor": "^0.20.0"
"graphql-language-service-utils": "^2.5.1"
},
"devDependencies": {
"vscode-languageserver-types": "3.15.1"
"vscode-languageserver-types": "3.15.1",
"monaco-editor": "^0.20.0",
"graphql": "experimental-stream-defer"
},
"peerDependencies": {
"graphql": ">= v14.5.0 <= 15.5.0",
"monaco-editor": "^0.20.0"
}
}
Loading

1 comment on commit 6869ce7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.