From 84eee49de653ab512f491917fe1b0a23b48d8877 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 9 Jan 2025 12:34:53 +0200 Subject: [PATCH] chore: Allow usage with both React 18 and 19 --- packages/ts/file-router/package.json | 4 ++-- packages/ts/models/package.json | 4 ++-- packages/ts/react-auth/package.json | 4 ++-- packages/ts/react-crud/package.json | 4 ++-- packages/ts/react-form/package.json | 4 ++-- packages/ts/react-i18n/package.json | 4 ++-- packages/ts/react-signals/package.json | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/ts/file-router/package.json b/packages/ts/file-router/package.json index 29637e9868..0beaa39b6d 100644 --- a/packages/ts/file-router/package.json +++ b/packages/ts/file-router/package.json @@ -57,8 +57,8 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "18 || 19", + "react-dom": "18 || 19", "react-router": "^7" }, "devDependencies": { diff --git a/packages/ts/models/package.json b/packages/ts/models/package.json index ddc6fd3b6a..f10234b287 100644 --- a/packages/ts/models/package.json +++ b/packages/ts/models/package.json @@ -49,8 +49,8 @@ "@vaadin/hilla-lit-form": "24.7.0-alpha5" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18" + "react": "18 || 19", + "react-dom": "18 || 19" }, "devDependencies": { "@testing-library/react": "^16.1.0", diff --git a/packages/ts/react-auth/package.json b/packages/ts/react-auth/package.json index 7f65c494d8..0f10b60753 100644 --- a/packages/ts/react-auth/package.json +++ b/packages/ts/react-auth/package.json @@ -49,8 +49,8 @@ "@vaadin/hilla-frontend": "24.7.0-alpha5" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18", + "react": "18 || 19", + "react-dom": "18 || 19", "react-router": "^7" }, "devDependencies": { diff --git a/packages/ts/react-crud/package.json b/packages/ts/react-crud/package.json index 4e8064d265..9776568926 100644 --- a/packages/ts/react-crud/package.json +++ b/packages/ts/react-crud/package.json @@ -62,8 +62,8 @@ "@vaadin/react-components": "24.7.0-alpha3" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18" + "react": "18 || 19", + "react-dom": "18 || 19" }, "devDependencies": { "@testing-library/dom": "^10.4.0", diff --git a/packages/ts/react-form/package.json b/packages/ts/react-form/package.json index b602f006c8..06fa83555a 100644 --- a/packages/ts/react-form/package.json +++ b/packages/ts/react-form/package.json @@ -49,8 +49,8 @@ "@vaadin/hilla-lit-form": "24.7.0-alpha5" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18" + "react": "18 || 19", + "react-dom": "18 || 19" }, "devDependencies": { "@testing-library/dom": "^10.4.0", diff --git a/packages/ts/react-i18n/package.json b/packages/ts/react-i18n/package.json index 181cb10cda..a65a835905 100644 --- a/packages/ts/react-i18n/package.json +++ b/packages/ts/react-i18n/package.json @@ -51,8 +51,8 @@ "intl-messageformat": "^10.7.10" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18" + "react": "18 || 19", + "react-dom": "18 || 19" }, "devDependencies": { "@testing-library/dom": "^10.4.0", diff --git a/packages/ts/react-signals/package.json b/packages/ts/react-signals/package.json index dcb354f6b7..12950b0f78 100644 --- a/packages/ts/react-signals/package.json +++ b/packages/ts/react-signals/package.json @@ -51,8 +51,8 @@ "nanoid": "^5.0.9" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18" + "react": "18 || 19", + "react-dom": "18 || 19" }, "devDependencies": { "@testing-library/dom": "^10.4.0",