jaywcjlove / react-hotkeys

React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.

Home Page:https://jaywcjlove.github.io/react-hotkeys/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depending on hotkeys-js in both dependencies and peerDependencies

mvasilkov opened this issue · comments

Hi,

The dependency on hotkeys-js is specified twice:

"hotkeys-js": ">=3.7.3"
},
"devDependencies": {
"@kkt/loader-less": "^5.4.3",
"@types/classnames": "^2.2.9",
"@types/react": "^16.9.19",
"@types/react-dom": "^16.9.5",
"@uiw/react-github-corners": "^1.1.3",
"@uiw/react-shields": "^1.1.0",
"classnames": "^2.2.6",
"kkt": "^5.4.3",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-test-renderer": "^16.12.0",
"tsbb": "^1.5.2"
},
"dependencies": {
"@babel/runtime": "^7.8.4",
"hotkeys-js": "^3.7.3",

In some scenarios this leads to the following warning when installing:

warning " > react-hot-keys@2.5.0" has unmet peer dependency "hotkeys-js@>=3.7.3".

Great work on the library BTW!

@mvasilkov Upgrade + react-hot-keys@2.5.1