angelle-sw / use-axios-client

Make axios requests in React using hooks.
https://use-axios-client.io
MIT License
157 stars 7 forks source link

Update axios peer dependency #133

Open redbugz opened 2 years ago

redbugz commented 2 years ago

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.

WantStuff commented 1 year ago

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? :(