From b52dc740c57341eed18907b633d6c84d00274f82 Mon Sep 17 00:00:00 2001 From: Lautaro Petaccio Date: Mon, 14 Aug 2023 15:43:12 -0300 Subject: [PATCH] fix: Remove React 16 optionality --- package-lock.json | 99 +++++++++-------------------------------------- package.json | 19 +++------ 2 files changed, 24 insertions(+), 94 deletions(-) diff --git a/package-lock.json b/package-lock.json index 76a161b7..9a52bf23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,8 +38,7 @@ "@testing-library/user-event": "^12.1.5", "@types/deep-equal": "^1.0.1", "@types/jest": "^28.1.3", - "@types/react": "^16.4.1", - "@types/react-test-renderer": "^16.0.1", + "@types/react": "^17.0.64", "@typescript-eslint/eslint-plugin": "4.26.0", "@typescript-eslint/parser": "4.26.0", "autoprefixer": "^9.7.4", @@ -71,16 +70,8 @@ "webpack-cli": "^3.3.2" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0", - "react-dom": "^16.8.0 || ^17.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } + "react": "^17.0.0", + "react-dom": "^17.0.0" } }, "node_modules/@adobe/css-tools": { @@ -14076,13 +14067,14 @@ "dev": true }, "node_modules/@types/react": { - "version": "16.8.20", - "resolved": "https://registry.npmjs.org/@types/react/-/react-16.8.20.tgz", - "integrity": "sha512-ZLmI+ubSJpfUIlQuULDDrdyuFQORBuGOvNnMue8HeA0GVrAJbWtZQhcBvnBPNRBI/GrfSfrKPFhthzC2SLEtLQ==", + "version": "17.0.64", + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.64.tgz", + "integrity": "sha512-IlgbX/vglDTwrCRgad6fTCzOT+D/5C0xwuvrzfuqfhg9gJrkFqAGADpUFlEtqbrP1IEo9QLSbo41MaFfoIu9Aw==", "dev": true, "dependencies": { "@types/prop-types": "*", - "csstype": "^2.2.0" + "@types/scheduler": "*", + "csstype": "^3.0.2" } }, "node_modules/@types/react-dom": { @@ -14094,32 +14086,6 @@ "@types/react": "^17" } }, - "node_modules/@types/react-dom/node_modules/@types/react": { - "version": "17.0.55", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.55.tgz", - "integrity": "sha512-kBcAhmT8RivFDYxHdy8QfPKu+WyfiiGjdPb9pIRtd6tj05j0zRHq5DBGW5Ogxv5cwSKd93BVgUk/HZ4I9p3zNg==", - "dev": true, - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-dom/node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==", - "dev": true - }, - "node_modules/@types/react-test-renderer": { - "version": "16.8.2", - "resolved": "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-16.8.2.tgz", - "integrity": "sha512-cm42QR9S9V3aOxLh7Fh7PUqQ8oSfSdnSni30T7TiTmlKvE6aUlo+LhQAzjnZBPriD9vYmgG8MXI8UDK4Nfb7gg==", - "dev": true, - "dependencies": { - "@types/react": "*" - } - }, "node_modules/@types/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", @@ -19116,9 +19082,9 @@ "dev": true }, "node_modules/csstype": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.5.tgz", - "integrity": "sha512-JsTaiksRsel5n7XwqPAfB0l3TFKdpjW/kgAELf9vrb5adGA7UCPLajKK5s3nFrcFm3Rkyp/Qkgl73ENc1UY3cA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==", "dev": true }, "node_modules/currently-unhandled": { @@ -55396,13 +55362,14 @@ "dev": true }, "@types/react": { - "version": "16.8.20", - "resolved": "https://registry.npmjs.org/@types/react/-/react-16.8.20.tgz", - "integrity": "sha512-ZLmI+ubSJpfUIlQuULDDrdyuFQORBuGOvNnMue8HeA0GVrAJbWtZQhcBvnBPNRBI/GrfSfrKPFhthzC2SLEtLQ==", + "version": "17.0.64", + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.64.tgz", + "integrity": "sha512-IlgbX/vglDTwrCRgad6fTCzOT+D/5C0xwuvrzfuqfhg9gJrkFqAGADpUFlEtqbrP1IEo9QLSbo41MaFfoIu9Aw==", "dev": true, "requires": { "@types/prop-types": "*", - "csstype": "^2.2.0" + "@types/scheduler": "*", + "csstype": "^3.0.2" } }, "@types/react-dom": { @@ -55412,34 +55379,6 @@ "dev": true, "requires": { "@types/react": "^17" - }, - "dependencies": { - "@types/react": { - "version": "17.0.55", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.55.tgz", - "integrity": "sha512-kBcAhmT8RivFDYxHdy8QfPKu+WyfiiGjdPb9pIRtd6tj05j0zRHq5DBGW5Ogxv5cwSKd93BVgUk/HZ4I9p3zNg==", - "dev": true, - "requires": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==", - "dev": true - } - } - }, - "@types/react-test-renderer": { - "version": "16.8.2", - "resolved": "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-16.8.2.tgz", - "integrity": "sha512-cm42QR9S9V3aOxLh7Fh7PUqQ8oSfSdnSni30T7TiTmlKvE6aUlo+LhQAzjnZBPriD9vYmgG8MXI8UDK4Nfb7gg==", - "dev": true, - "requires": { - "@types/react": "*" } }, "@types/retry": { @@ -59383,9 +59322,9 @@ } }, "csstype": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.5.tgz", - "integrity": "sha512-JsTaiksRsel5n7XwqPAfB0l3TFKdpjW/kgAELf9vrb5adGA7UCPLajKK5s3nFrcFm3Rkyp/Qkgl73ENc1UY3cA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==", "dev": true }, "currently-unhandled": { diff --git a/package.json b/package.json index c7e59e33..a4afd8b5 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,7 @@ "@testing-library/user-event": "^12.1.5", "@types/deep-equal": "^1.0.1", "@types/jest": "^28.1.3", - "@types/react": "^16.4.1", - "@types/react-test-renderer": "^16.0.1", + "@types/react": "^17.0.64", "@typescript-eslint/eslint-plugin": "4.26.0", "@typescript-eslint/parser": "4.26.0", "autoprefixer": "^9.7.4", @@ -92,8 +91,8 @@ "events": "^3.3.0", "fp-future": "^1.0.1", "parallax-js": "^3.1.0", - "react": "^16.8.0 || ^17.0.0", - "react-dom": "^16.8.0 || ^17.0.0", + "react": "^17.0.0", + "react-dom": "^17.0.0", "react-responsive": "^9.0.0-beta.3", "react-semantic-ui-datepickers": "^2.17.2", "react-tile-map": "^0.4.1", @@ -102,16 +101,8 @@ "semantic-ui-react": "^2.0.3" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0", - "react-dom": "^16.8.0 || ^17.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } + "react": "^17.0.0", + "react-dom": "^17.0.0" }, "publishConfig": { "provenance": true