Skip to content

Commit c550327

Browse files
committed
Drop @types/react-dom and lower @types/react to min needed
1 parent 5bb3c4f commit c550327

File tree

2 files changed

+16
-37
lines changed

2 files changed

+16
-37
lines changed

Diff for: package.json

+2-15
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,14 @@
4848
"coverage": "codecov"
4949
},
5050
"peerDependencies": {
51-
"@types/react": "^18.2.41",
52-
"@types/react-dom": "^18.2.17",
51+
"@types/react": "^18.2.25",
5352
"react": "^18.0",
54-
"react-dom": "^18.0",
55-
"react-native": ">=0.71",
5653
"redux": "^5.0.0"
5754
},
5855
"peerDependenciesMeta": {
5956
"@types/react": {
6057
"optional": true
6158
},
62-
"@types/react-dom": {
63-
"optional": true
64-
},
65-
"react-dom": {
66-
"optional": true
67-
},
68-
"react-native": {
69-
"optional": true
70-
},
7159
"redux": {
7260
"optional": true
7361
}
@@ -95,8 +83,7 @@
9583
"@testing-library/react-12": "npm:@testing-library/react@^12",
9684
"@testing-library/react-hooks": "^3.4.2",
9785
"@testing-library/react-native": "^7.1.0",
98-
"@types/react": "^18.2.41",
99-
"@types/react-dom": "^18.2.17",
86+
"@types/react": "18.2.25",
10087
"@types/react-native": "^0.67.4",
10188
"@typescript-eslint/eslint-plugin": "^4.28.0",
10289
"@typescript-eslint/parser": "^4.28.0",

Diff for: yarn.lock

+14-22
Original file line numberDiff line numberDiff line change
@@ -2808,15 +2808,6 @@ __metadata:
28082808
languageName: node
28092809
linkType: hard
28102810

2811-
"@types/react-dom@npm:^18.2.17":
2812-
version: 18.2.17
2813-
resolution: "@types/react-dom@npm:18.2.17"
2814-
dependencies:
2815-
"@types/react": "*"
2816-
checksum: 7a4e704ed4be6e0c3ccd8a22ff69386fe548304bf4db090513f42e059ff4c65f7a427790320051524d6578a2e4c9667bb7a80a4c989b72361c019fbe851d9385
2817-
languageName: node
2818-
linkType: hard
2819-
28202811
"@types/react-native@npm:^0.67.4":
28212812
version: 0.67.4
28222813
resolution: "@types/react-native@npm:0.67.4"
@@ -2835,7 +2826,7 @@ __metadata:
28352826
languageName: node
28362827
linkType: hard
28372828

2838-
"@types/react@npm:*, @types/react@npm:^18.2.41":
2829+
"@types/react@npm:*":
28392830
version: 18.2.41
28402831
resolution: "@types/react@npm:18.2.41"
28412832
dependencies:
@@ -2846,6 +2837,17 @@ __metadata:
28462837
languageName: node
28472838
linkType: hard
28482839

2840+
"@types/react@npm:18.2.25":
2841+
version: 18.2.25
2842+
resolution: "@types/react@npm:18.2.25"
2843+
dependencies:
2844+
"@types/prop-types": "*"
2845+
"@types/scheduler": "*"
2846+
csstype: ^3.0.2
2847+
checksum: 177515cd44135d56191ec6c5c10edd490c96c175d37624d9c37bc2007c3abcf6cc2d2137d2a073d692cdc5129d5d5785bd60a6ddd315f695da5d8b989fa2afc5
2848+
languageName: node
2849+
linkType: hard
2850+
28492851
"@types/scheduler@npm:*":
28502852
version: 0.16.2
28512853
resolution: "@types/scheduler@npm:0.16.2"
@@ -9381,8 +9383,7 @@ __metadata:
93819383
"@testing-library/react-12": "npm:@testing-library/react@^12"
93829384
"@testing-library/react-hooks": ^3.4.2
93839385
"@testing-library/react-native": ^7.1.0
9384-
"@types/react": ^18.2.41
9385-
"@types/react-dom": ^18.2.17
9386+
"@types/react": 18.2.25
93869387
"@types/react-native": ^0.67.4
93879388
"@types/use-sync-external-store": ^0.0.3
93889389
"@typescript-eslint/eslint-plugin": ^4.28.0
@@ -9412,21 +9413,12 @@ __metadata:
94129413
typescript: ^5.0
94139414
use-sync-external-store: ^1.0.0
94149415
peerDependencies:
9415-
"@types/react": ^18.2.41
9416-
"@types/react-dom": ^18.2.17
9416+
"@types/react": ^18.2.25
94179417
react: ^18.0
9418-
react-dom: ^18.0
9419-
react-native: ">=0.71"
94209418
redux: ^5.0.0
94219419
peerDependenciesMeta:
94229420
"@types/react":
94239421
optional: true
9424-
"@types/react-dom":
9425-
optional: true
9426-
react-dom:
9427-
optional: true
9428-
react-native:
9429-
optional: true
94309422
redux:
94319423
optional: true
94329424
languageName: unknown

0 commit comments

Comments
 (0)