Skip to content

Commit a8f4312

Browse files
committed
Restrict React version to 18.2.x to prevent tests from failing due to deprecation warnings
Also, remove npm from "engines" as npm is not an engine.
1 parent 3f6a0e2 commit a8f4312

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

package-lock.json

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"url": "https://github.com/react-ui-org/react-ui"
3030
},
3131
"engines": {
32-
"node": ">=20",
33-
"npm": ">=10"
32+
"node": ">=20"
3433
},
3534
"scripts": {
3635
"build": "webpack --mode=production && webpack --mode=development",
@@ -54,8 +53,8 @@
5453
},
5554
"peerDependencies": {
5655
"prop-types": "^15.8.0",
57-
"react": "^18.0.0",
58-
"react-dom": "^18.0.0"
56+
"react": "~18.2.0",
57+
"react-dom": "~18.2.0"
5958
},
6059
"devDependencies": {
6160
"@babel/cli": "^7.24.7",
@@ -93,6 +92,8 @@
9392
"postcss": "^8.4.39",
9493
"postcss-loader": "^8.1.1",
9594
"prop-types": "^15.8.1",
95+
"react": "~18.2.0",
96+
"react-dom": "~18.2.0",
9697
"sass": "^1.77.6",
9798
"sass-loader": "^14.2.1",
9899
"stylelint": "^16.7.0",

0 commit comments

Comments
 (0)