Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change axios to be a peer dependency #1179

Merged
merged 1 commit into from Jan 14, 2022
Merged

Change axios to be a peer dependency #1179

merged 1 commit into from Jan 14, 2022

Conversation

ssiltanen
Copy link
Contributor

The usage of axios in this repository is very basic, but its versioning
is defined very tightly. This causes problems, because the interface
IOptions uses AxiosInstance as its property, preventing the clients of
this library from updating their axios version beyond the limits set in
this library. Typescript compiler gives type error when giving higher
version AxiosInstance for IOptions.

By setting axios as a peer dependency, we would allow the clients of
this library to install other versions of axios if they so choose.

The usage of axios in this repository is very basic, but its versioning
is defined very tightly. This causes problems, because the interface
IOptions uses AxiosInstance as its property, preventing the clients of
this library from updating their axios version beyond the limits set in
this library. Typescript compiler gives type error when giving higher
version AxiosInstance for IOptions.

By setting axios as a peer dependency, we would allow the clients of
this library to install other versions of axios if they so choose.
@ktj
Copy link

ktj commented Jan 13, 2022

axios-ntlm (dependency of this project) also has "axios": "^0.21.3"
similar PR could be made there

@jsdevel jsdevel merged commit c54e125 into vpulim:master Jan 14, 2022
@ssiltanen ssiltanen deleted the axios-to-be-peer-dep branch January 14, 2022 07:36
@joanklikin joanklikin mentioned this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants