From e0124a5984c6df03a98edf464da0cbc91fed9cec Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 24 Apr 2024 19:31:18 +0200 Subject: [PATCH 1/2] require at least React 18 We already relied on React 18 for Headless UI v2, but now it's also reflected in the package.json --- package-lock.json | 4 ++-- packages/@headlessui-react/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ed9f8defe9..c180d7d7a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10366,8 +10366,8 @@ "node": ">=10" }, "peerDependencies": { - "react": "^16 || ^17 || ^18", - "react-dom": "^16 || ^17 || ^18" + "react": "^18", + "react-dom": "^18" } }, "packages/@headlessui-react/node_modules/@floating-ui/react": { diff --git a/packages/@headlessui-react/package.json b/packages/@headlessui-react/package.json index 1a81b03b0a..add6cbf423 100644 --- a/packages/@headlessui-react/package.json +++ b/packages/@headlessui-react/package.json @@ -42,8 +42,8 @@ "clean": "rimraf ./dist" }, "peerDependencies": { - "react": "^16 || ^17 || ^18", - "react-dom": "^16 || ^17 || ^18" + "react": "^18", + "react-dom": "^18" }, "devDependencies": { "@testing-library/react": "^13.0.0", From cb5504abb2a2cd622726c6f2e2032de886321b94 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 24 Apr 2024 19:35:29 +0200 Subject: [PATCH 2/2] update changelog --- packages/@headlessui-react/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@headlessui-react/CHANGELOG.md b/packages/@headlessui-react/CHANGELOG.md index 10eeeadd67..1646eb628f 100644 --- a/packages/@headlessui-react/CHANGELOG.md +++ b/packages/@headlessui-react/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use `absolute` as the default Floating UI strategy ([#3097](https://github.com/tailwindlabs/headlessui/pull/3097)) - Change default tags for `ListboxOptions`, `ListboxOption`, `ComboboxOptions`, `ComboboxOption` and `TabGroup` components ([#3109](https://github.com/tailwindlabs/headlessui/pull/3109)) - Change default tag from `div` to `Fragment` on `Transition` components ([#3110](https://github.com/tailwindlabs/headlessui/pull/3110)) +- Update minimal peer dependency version requirements for `react` and `react-dom` ([#3131](https://github.com/tailwindlabs/headlessui/pull/3131)) ### Added