Upgrading axios 0.23 to 0.24
Breaking0.23.0 → 0.24.0Breaking5
BreakingUpgrade verdict
5 breaking changes.
In plain terms
- Change type of AxiosResponse to any, please read lengthy discussion here: pull request.
- Jay.
- Rodry.
- Remco Haszing.
Must act Top 3 of 5 that need code or config changes
What you must change
Breaking5
Change type of AxiosResponse to any, please read lengthy discussion here: pull request.
Jay.
Rodry.
Remco Haszing.
Isaiah Thomason.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
call AxiosAdapter(config: AxiosRequestConfig): AxiosPromise<any> → call AxiosAdapter(config: AxiosRequestConfig): AxiosPromise - changed:
interface AxiosError<T = unknown, D = any> extends Error → interface AxiosError<T = any, D = any> extends Error - changed:
interface AxiosPromise<T = unknown> extends Promise<AxiosResponse<T>> → interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> - changed:
interface AxiosResponse<T = unknown, D = any> → interface AxiosResponse<T = any, D = any> - changed:
method Axios.delete<T = unknown, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.get<T = unknown, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.head<T = unknown, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.options<T = unknown, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.patch<T = unknown, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.post<T = unknown, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.put<T = unknown, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R> → method Axios.put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R> - changed:
method Axios.request<T = unknown, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R> → method Axios.request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>