From 3ca28ebb66c98e393dd93b7817f2ee61f4b27489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Lopes?= Date: Tue, 17 Dec 2024 09:21:33 -0300 Subject: [PATCH] feat(react): adding support for react 19 --- packages/react-inertia/package.json | 4 ++-- packages/react/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-inertia/package.json b/packages/react-inertia/package.json index 30211aa..ae9be9c 100644 --- a/packages/react-inertia/package.json +++ b/packages/react-inertia/package.json @@ -29,14 +29,14 @@ }, "peerDependencies": { "@inertiajs/react": "^1.0.0 || ^2.0.0", - "react": "^18.0.0" + "react": "^18.0.0 || ^19.0.0" }, "dependencies": { "laravel-precognition": "0.5.14", "laravel-precognition-react": "0.5.14" }, "devDependencies": { - "@types/react-dom": "^18.2.4", + "@types/react-dom": "^18.2.4 || ^19.0.0", "typescript": "^5.0.0" } } diff --git a/packages/react/package.json b/packages/react/package.json index 9f901b8..561885b 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -27,7 +27,7 @@ "version": "npm pkg set dependencies.laravel-precognition=$npm_package_version" }, "peerDependencies": { - "react": "^18.0.0" + "react": "^18.0.0 || ^19.0.0" }, "dependencies": { "laravel-precognition": "0.5.14", @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/lodash-es": "^4.17.12", - "@types/react": "^18.2.6", + "@types/react": "^18.2.6 || ^19.0.0", "typescript": "^5.0.0" } }