Skip to content

Commit 62b4fd5

Browse files
committed
fix: broaden peer dep to support React 18 and 19
`^17.0.0` resolves to `>=17 <18`, blocking React 18/19 users at install time with ERESOLVE. The library's class component architecture is identical to v6, which works fine with React 19. Broadening to `>=17.0.0` removes the unnecessary install-time restriction. Fixes #419
1 parent dcd8a31 commit 62b4fd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-infinite-scroll-component",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"description": "An Infinite Scroll component in react.",
55
"engines": {
66
"node": ">=18.18.0"
@@ -43,8 +43,8 @@
4343
},
4444
"homepage": "https://github.com/ankeetmaini/react-infinite-scroll-component#readme",
4545
"peerDependencies": {
46-
"react": "^17.0.0",
47-
"react-dom": "^17.0.0"
46+
"react": ">=17.0.0",
47+
"react-dom": ">=17.0.0"
4848
},
4949
"devDependencies": {
5050
"@babel/core": "^7.20.0",

0 commit comments

Comments
 (0)