Improve react peer deps (#622)

* ensure react-dom is also a peer dependency

Co-authored-by: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= <belgattitude@gmail.com>

* prepare peer dependencies for React 18

* update changelog

Co-authored-by: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= <belgattitude@gmail.com>
This commit is contained in:
Robin Malfait
2021-06-15 17:48:41 +02:00
committed by GitHub
parent 736f46351c
commit e56dd07e16
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improve types for `Listbox` component ([#576](https://github.com/tailwindlabs/headlessui/pull/576))
- Remove explicit `:class` prop ([#608](https://github.com/tailwindlabs/headlessui/pull/608))
- Improve tree shaking ([#602](https://github.com/tailwindlabs/headlessui/pull/602))
- Improve peer dependencies for `react-dom`, and for the future version `18` ([#622](https://github.com/tailwindlabs/headlessui/pull/622))
## [Unreleased - Vue]
+2 -1
View File
@@ -31,7 +31,8 @@
"lint": "../../scripts/lint.sh"
},
"peerDependencies": {
"react": "^16 || ^17"
"react": "^16 || ^17 || ^18",
"react-dom": "^16 || ^17 || ^18"
},
"devDependencies": {
"@types/react": "^16.14.2",