ts-retrofit
ts-retrofit copied to clipboard
refactor: update axios version and handle breaking changes
Hello,
I'm raising this PR to update the axios dependency to the latest version. Versions prior to 1.6 have an associated security vulnerability, which make it difficult to justify ts-retrofit usage in production environments.
This will also resolve #54.
Changes include:
- Changing the types of
AxiosRequestConfigtoInternalAxiosRequestConfig - Changing the use of
AxiosTransformertoAxiosRequestTransformerandAxiosResponseTransformer - Updating existing tests to ascertain that they still pass without issue.
I'm not aware of all the project internals, and made the minimum changes to satisfy the axios upgrade. Please do let me know if any other changes are required!
Hi @nullcc! Does this PR look good enough for merge?
+1 here, is this library still maintained?
@eriknyk We ended up just republishing separately under:
npm i axios-retrofit
Since my company uses this, we'll just maintain it from this fork instead
thanks @devcsrj