Skip to content
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"test": "rc-test"
},
"dependencies": {
"@rc-component/select": "~1.2.0",
"@rc-component/tree": "~1.0.0",
"@rc-component/util": "^1.3.0",
"@rc-component/select": "~1.3.0",
"@rc-component/tree": "~1.1.0",
"@rc-component/util": "^1.4.0",
"clsx": "^2.1.1"
},
"devDependencies": {
Expand Down Expand Up @@ -83,7 +83,7 @@
"typescript": "^5.3.2"
},
"peerDependencies": {
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
Comment on lines +82 to +83

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

Bumping the peerDependencies for react and react-dom to >=18.0.0 is a significant breaking change. However, the devDependencies in this project are still using React 16 ("react": "^16.0.0", "react-dom": "^16.0.0"). This means the project's tests are running against a version of React that no longer satisfies the new peer dependency requirement.

To ensure compatibility, the library must be tested against the versions of React it claims to support. Please update the devDependencies to use React 18 and adjust the testing infrastructure accordingly. For example, enzyme-adapter-react-16 is not compatible with React 18 and will need to be replaced or updated.

}
}
Loading