From 7850bb792e3c51c35cf08f6a53f83b3ee96a8d23 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Fri, 26 Apr 2024 11:10:41 -0400 Subject: [PATCH] use latest minor version of React 18 (18.3.0) We were using react 18.2.*, while also using the latest react testing library, which asked for react 18.3, which caused an issue with npm installation. When React 19 was released recently, they put out 18.3 at the same time (https://react.dev/blog/2024/04/25/react-19-upgrade-guide#react-18-3). 18.3 is the same as 18.2 but with a few deprecation warnings so it's easier to upgrade to React 19. We're not ready for the React 19 upgrade, but we can use 18.3 now, view those warnings and think about upgrading to 19 later. --- package.cordovabuild.json | 6 +++--- package.serve.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.cordovabuild.json b/package.cordovabuild.json index c3f7ec8d3..acb378c31 100644 --- a/package.cordovabuild.json +++ b/package.cordovabuild.json @@ -26,7 +26,7 @@ "@babel/preset-typescript": "^7.21.4", "@ionic/cli": "6.20.8", "@types/luxon": "^3.3.0", - "@types/react": "^18.2.20", + "@types/react": "^18.3.0", "babel-loader": "^9.1.2", "babel-plugin-optional-require": "^0.3.1", "concurrently": "^8.0.1", @@ -152,9 +152,9 @@ "npm": "^9.6.3", "phonegap-plugin-barcodescanner": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner#v8.1.0", "prop-types": "^15.8.1", - "react": "^18.2.*", + "react": "^18.3.0", "react-chartjs-2": "^5.2.0", - "react-dom": "^18.2.*", + "react-dom": "^18.3.0", "react-i18next": "^13.5.0", "react-native-paper": "^5.11.0", "react-native-paper-dates": "^0.18.12", diff --git a/package.serve.json b/package.serve.json index dceeb2267..fded462f7 100644 --- a/package.serve.json +++ b/package.serve.json @@ -26,7 +26,7 @@ "@ionic/cli": "6.20.8", "@testing-library/react-native": "^12.3.0", "@types/luxon": "^3.3.0", - "@types/react": "^18.2.20", + "@types/react": "^18.3.0", "babel-jest": "^29.7.0", "babel-loader": "^9.1.2", "babel-plugin-optional-require": "^0.3.1", @@ -76,9 +76,9 @@ "luxon": "^3.3.0", "npm": "^9.6.3", "prop-types": "^15.8.1", - "react": "^18.2.*", + "react": "^18.3.0", "react-chartjs-2": "^5.2.0", - "react-dom": "^18.2.*", + "react-dom": "^18.3.0", "react-i18next": "^13.5.0", "react-native-paper": "^5.11.0", "react-native-paper-dates": "^0.18.12",