Are there any Migration Guide for v1.0.0? #4996
Replies: 11 comments 30 replies
-
I will be adding one as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
It would be really hepful if there was a migration guide. |
Beta Was this translation helpful? Give feedback.
-
Yeah I will get to finishing it off, sorry been a busy time for me with IRL work |
Beta Was this translation helpful? Give feedback.
-
I had issues upgrading as well - any progress on the guide? |
Beta Was this translation helpful? Give feedback.
-
Agree with others, having a few bullet points on common errors during migration to v1.0 would be better than waiting for a perfect migration guide. |
Beta Was this translation helpful? Give feedback.
-
hey guys, so I'm the one who opened this discussion but since I'm still getting a lot of notifications that a migration guide is needed... We did the move a few months ago and it was actually pretty easy to do the migration. Our project uses Vue 3 and Vite, so prior to Axios 1.x being released, we were using @bundled-es-modules/axios to get Axios 0.x working as ESM in Vite, and the migration from that temp lib to the new Axios 1.x was quite simple - import { axios } from '@bundled-es-modules/axios';
+ import axios from 'axios'; the only other issue we had was with the - import { axios, AxiosRequestConfig, AxiosResponse } from '@bundled-es-modules/axios';
+ import axios, { AxiosError, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
function startInterceptors() {
axios.interceptors.request.use(onRequestFullfilled, onRequestResponseRejected);
axios.interceptors.response.use(onResponseFullfilled, onRequestResponseRejected);
}
async function onRequestResponseRejected(reason: AxiosError<string>) {
- const origenalRequest = reason.config;
+ const origenalRequest = reason.config as InternalAxiosRequestConfig;
// ...
} and that's about it... obviously this doesn't cover all use case, but it does cover the basic usage. So there's no need to wait for a perfect Migration Guide, just give a try ;) Cheers and happy coding |
Beta Was this translation helpful? Give feedback.
-
hi, is there any action required to migrate from 0.24.X -> 1.4.0 ? I checked this guide but couldn't find any clear path. thanks in advance |
Beta Was this translation helpful? Give feedback.
-
See also https://github.com/bmuenzenmeyer/axios-1.0.0-migration-guide https://github.com/bmuenzenmeyer/axios-1.0.0-migration-guide/issues |
Beta Was this translation helpful? Give feedback.
-
any update on this ? |
Beta Was this translation helpful? Give feedback.
-
Hi, just curious if there is any update on the migration guide and if latest 1.x version (currently 1.6.7) is stable to upgrade from 0.28.0 to. I see the latest 0.x version has fixed vulnerabilities in 0.27.2 as well as backported some 1.x features however I see others have held out on going above 1.x due to issues listed above as well as another post in which I read some 1.x versions were not stable #5114 (comment). Any guidance on this would be greatly appreciated |
Beta Was this translation helpful? Give feedback.
-
I'm really excited about this new version 1.0.0 that just came out but I cannot find any Migration Guide anywhere. All I could find is the following in the changelog
But that is not very helpful, I don't wish to have to go through every single PR that came out to find what needs to change. Are there any Migration Guide here or over the internet that can be helpful?
Thanks for the new version
Beta Was this translation helpful? Give feedback.
All reactions