Skip to content

Commit

Permalink
Added react ^19 and ^19.0.0-rc as peer dep
Browse files Browse the repository at this point in the history
Added react ^19 and ^19.0.0-rc as peer dependency.
Some projects like Next.js already utilize react 19 release candidate, so that installing react-datepicker can only be done with `--legacy-peer-deps`.
I have tested the `react-datepicker` with Next.js and react 19 release candidate and it works.
So I have added react ^19 and ^19.0.0-rc as peer dep
  • Loading branch information
aminabromand authored Nov 30, 2024
1 parent 2452507 commit b467aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"typescript": "^5.5.4"
},
"peerDependencies": {
"react": "^16.9.0 || ^17 || ^18",
"react-dom": "^16.9.0 || ^17 || ^18"
"react": "^16.9.0 || ^17 || ^18 || ^19 || ^19.0.0-rc",
"react-dom": "^16.9.0 || ^17 || ^18 || ^19 || ^19.0.0-rc"
},
"dependencies": {
"@floating-ui/react": "^0.26.23",
Expand Down

0 comments on commit b467aae

Please sign in to comment.