Skip to content

Commit 19ac8dd

Browse files
committed
fix(types): move types to optional peer dependencies
BREAKING CHANGE: type dependencies will not longer be automatically installed. If @types/react is not already listed in your package.json, please install it with `npm install --save-dev @types/react@^17`.
1 parent f410f9e commit 19ac8dd

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

package.json

+11-7
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@
5050
},
5151
"dependencies": {
5252
"@babel/runtime": "^7.12.5",
53-
"@types/react": ">=16.9.0",
54-
"@types/react-dom": ">=16.9.0",
55-
"@types/react-test-renderer": ">=16.9.0",
5653
"react-error-boundary": "^3.1.0"
5754
},
5855
"devDependencies": {
56+
"@types/react": "17.0.44",
57+
"@types/react-dom": "17.0.15",
58+
"@types/react-test-renderer": "17.0.1",
5959
"@typescript-eslint/eslint-plugin": "5.11.0",
6060
"@typescript-eslint/parser": "5.11.0",
6161
"all-contributors-cli": "6.20.0",
6262
"codecov": "3.8.3",
63-
"cross-env": "^7.0.3",
63+
"cross-env": "7.0.3",
6464
"docz": "2.3.1",
6565
"docz-theme-default": "1.2.0",
6666
"docz-utils": "2.3.0",
@@ -75,11 +75,15 @@
7575
"typescript": "4.5.5"
7676
},
7777
"peerDependencies": {
78-
"react": ">=16.9.0",
79-
"react-dom": ">=16.9.0",
80-
"react-test-renderer": ">=16.9.0"
78+
"@types/react": "^16.9.0 || ^17.0.0",
79+
"react": "^16.9.0 || ^17.0.0",
80+
"react-dom": "^16.9.0 || ^17.0.0",
81+
"react-test-renderer": "^16.9.0 || ^17.0.0"
8182
},
8283
"peerDependenciesMeta": {
84+
"@types/react": {
85+
"optional": true
86+
},
8387
"react-dom": {
8488
"optional": true
8589
},

0 commit comments

Comments
 (0)