Upgrading axios 0.21 to 0.22
Safe0.21.4 → 0.22.0Fixed10
SafeUpgrade verdict
Only new features and fixes in this range.
In plain terms
- Nothing in this range needs changes to your code. It adds features and fixes.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
method AxiosInstance.delete<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.get<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.getUri(config?: AxiosRequestConfig): string - removed:
method AxiosInstance.head<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.options<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.patch<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.post<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.put<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R> - removed:
method AxiosInstance.request<T = any, R = AxiosResponse<T>> (config: AxiosRequestConfig): Promise<R> - removed:
property AxiosInstance.defaults: AxiosRequestConfig - removed:
property AxiosInstance.interceptors: { request: AxiosInterceptorManager<AxiosRequestConfig>; response: AxiosInterceptorManager<AxiosResponse> } - changed:
call AxiosTransformer(data: any, headers?: any): any → call AxiosTransformer(data: any, headers?: Record<string, string>): any - changed:
interface AxiosError<T = any> extends Error → interface AxiosError<T = never> extends Error - changed:
interface AxiosInstance → interface AxiosInstance extends Axios - changed:
interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> → interface AxiosPromise<T = never> extends Promise<AxiosResponse<T>> - changed:
interface AxiosRequestConfig → interface AxiosRequestConfig<T = any> - changed:
interface AxiosResponse<T = any> → interface AxiosResponse<T = never> - changed:
property AxiosRequestConfig.data?: any → property AxiosRequestConfig.data?: T - changed:
property AxiosRequestConfig.headers?: any → property AxiosRequestConfig.headers?: Record<string, string> - changed:
property AxiosResponse.config: AxiosRequestConfig → property AxiosResponse.config: AxiosRequestConfig<T> - changed:
property AxiosResponse.headers: any → property AxiosResponse.headers: Record<string, string> - added:
class Axios - added:
constructor Axios(config?: AxiosRequestConfig) - added:
method Axios.delete<T = never, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.get<T = never, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.getUri(config?: AxiosRequestConfig): string - added:
method Axios.head<T = never, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.options<T = never, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.patch<T = never, R = AxiosResponse<T>>(url: string, data?: T, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.post<T = never, R = AxiosResponse<T>>(url: string, data?: T, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.put<T = never, R = AxiosResponse<T>>(url: string, data?: T, config?: AxiosRequestConfig<T>): Promise<R> - added:
method Axios.request<T = never, R = AxiosResponse<T>> (config: AxiosRequestConfig<T>): Promise<R> - added:
property Axios.defaults: AxiosRequestConfig - added:
property Axios.interceptors: { request: AxiosInterceptorManager<AxiosRequestConfig>; response: AxiosInterceptorManager<AxiosResponse> } - added:
property AxiosRequestConfig.signal?: AbortSignal - added:
property AxiosStatic.Axios: typeof Axios - added:
readonly property AxiosStatic.VERSION: string