Skip to content

Commit

Permalink
Update peerDependencies to include React 18 (#5133)
Browse files Browse the repository at this point in the history
* Update `peerDependencies` to include React 18

React 18 was released: https://reactjs.org/blog/2022/03/29/react-v18.html

However using react 18 together with `react-select` v5.2.2 (latest version) breaks down with a dependency conflict:

```cmd
> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app@0.0.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   dev react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-select@5.2.2
npm ERR! node_modules/react-select
npm ERR!   dev react-select@"5.2.2" from the root project
```
Update `peerDependencies` to allow react 18.

* Create wicked-bats-study.md

* Format

Co-authored-by: Nathan Bierema <nbierema@gmail.com>
  • Loading branch information
nil4 and Methuselah96 committed Apr 10, 2022
1 parent 09f12f6 commit c7d8d4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-bats-study.md
@@ -0,0 +1,5 @@
---
'react-select': minor
---

Update `peerDependencies` to include React 18
4 changes: 2 additions & 2 deletions packages/react-select/package.json
Expand Up @@ -27,8 +27,8 @@
"react-dom": "^16.13.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"files": [
"dist",
Expand Down

0 comments on commit c7d8d4b

Please sign in to comment.