Skip to content

Commit

Permalink
fix(react): support peerDependencies react v19 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib authored Dec 11, 2024
1 parent 45d0c6c commit 80c746a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 165 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@testing-library/react": "^14.2.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.5",
"@types/react": "^18.2.66",
Expand All @@ -64,8 +65,8 @@
"jest-environment-jsdom": "^29.7.0",
"mutative": "^1.1.0",
"prettier": "^2.8.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^4.4.0",
"rollup": "^4.22.5",
"rollup-plugin-terser": "^7.0.0",
Expand All @@ -76,7 +77,7 @@
"typedoc-plugin-markdown": "^4.2.10",
"typescript": "^5.7.2",
"yargs": "^17.7.2",
"zustand": "^5.0.1"
"zustand": "^5.0.2"
},
"config": {
"commitizen": {
Expand All @@ -91,9 +92,9 @@
}
},
"peerDependencies": {
"@types/react": "^18.0 || ^17.0",
"@types/react": "^18.0 || ^17.0 || ^19.0",
"mutative": "^1.0",
"react": "^18.0 || ^17.0",
"react": "^18.0 || ^17.0 || ^19.0",
"zustand": "^4.0 || ^5.0"
}
}
Loading

0 comments on commit 80c746a

Please sign in to comment.