angelle-sw / use-axios-client

Make axios requests in React using hooks.

Home Page:https://use-axios-client.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update axios peer dependency

redbugz opened this issue · comments

Axios is up to 0.27.x now, but this library is still peer dependency pinned to 0.19. This results in a peer dependency conflict warning on everyone that has updated to the newer version. It would be nice to update the peerDependency range to handle more modern versions, especially since axios 0.21.1 is a critical security release.

We're up to Axios 1.3.4 right now, and still getting the install error...

# npm resolution error report

2023-03-03T20:33:20.588Z

While resolving: dashboard@0.1.0
Found: axios@1.3.4
node_modules/axios
  axios@"^1.3.4" from the root project

Could not resolve dependency:
peer axios@"^0.19.0" from use-axios-client@2.0.0
node_modules/use-axios-client
  use-axios-client@"*" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

With no updates for past 3.5 years does this means a dead project? :(