From c55032785d3f76d5919886069304d2811f79fe7d Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Sun, 10 Dec 2023 16:03:33 +0100 Subject: [PATCH] Drop `@types/react-dom` and lower `@types/react` to min needed --- package.json | 17 ++--------------- yarn.lock | 36 ++++++++++++++---------------------- 2 files changed, 16 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 540bef0a6..b1124ab71 100644 --- a/package.json +++ b/package.json @@ -48,26 +48,14 @@ "coverage": "codecov" }, "peerDependencies": { - "@types/react": "^18.2.41", - "@types/react-dom": "^18.2.17", + "@types/react": "^18.2.25", "react": "^18.0", - "react-dom": "^18.0", - "react-native": ">=0.71", "redux": "^5.0.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, - "@types/react-dom": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - }, "redux": { "optional": true } @@ -95,8 +83,7 @@ "@testing-library/react-12": "npm:@testing-library/react@^12", "@testing-library/react-hooks": "^3.4.2", "@testing-library/react-native": "^7.1.0", - "@types/react": "^18.2.41", - "@types/react-dom": "^18.2.17", + "@types/react": "18.2.25", "@types/react-native": "^0.67.4", "@typescript-eslint/eslint-plugin": "^4.28.0", "@typescript-eslint/parser": "^4.28.0", diff --git a/yarn.lock b/yarn.lock index 17f8ee656..d4e5f4721 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2808,15 +2808,6 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:^18.2.17": - version: 18.2.17 - resolution: "@types/react-dom@npm:18.2.17" - dependencies: - "@types/react": "*" - checksum: 7a4e704ed4be6e0c3ccd8a22ff69386fe548304bf4db090513f42e059ff4c65f7a427790320051524d6578a2e4c9667bb7a80a4c989b72361c019fbe851d9385 - languageName: node - linkType: hard - "@types/react-native@npm:^0.67.4": version: 0.67.4 resolution: "@types/react-native@npm:0.67.4" @@ -2835,7 +2826,7 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:*, @types/react@npm:^18.2.41": +"@types/react@npm:*": version: 18.2.41 resolution: "@types/react@npm:18.2.41" dependencies: @@ -2846,6 +2837,17 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:18.2.25": + version: 18.2.25 + resolution: "@types/react@npm:18.2.25" + dependencies: + "@types/prop-types": "*" + "@types/scheduler": "*" + csstype: ^3.0.2 + checksum: 177515cd44135d56191ec6c5c10edd490c96c175d37624d9c37bc2007c3abcf6cc2d2137d2a073d692cdc5129d5d5785bd60a6ddd315f695da5d8b989fa2afc5 + languageName: node + linkType: hard + "@types/scheduler@npm:*": version: 0.16.2 resolution: "@types/scheduler@npm:0.16.2" @@ -9381,8 +9383,7 @@ __metadata: "@testing-library/react-12": "npm:@testing-library/react@^12" "@testing-library/react-hooks": ^3.4.2 "@testing-library/react-native": ^7.1.0 - "@types/react": ^18.2.41 - "@types/react-dom": ^18.2.17 + "@types/react": 18.2.25 "@types/react-native": ^0.67.4 "@types/use-sync-external-store": ^0.0.3 "@typescript-eslint/eslint-plugin": ^4.28.0 @@ -9412,21 +9413,12 @@ __metadata: typescript: ^5.0 use-sync-external-store: ^1.0.0 peerDependencies: - "@types/react": ^18.2.41 - "@types/react-dom": ^18.2.17 + "@types/react": ^18.2.25 react: ^18.0 - react-dom: ^18.0 - react-native: ">=0.71" redux: ^5.0.0 peerDependenciesMeta: "@types/react": optional: true - "@types/react-dom": - optional: true - react-dom: - optional: true - react-native: - optional: true redux: optional: true languageName: unknown