Upgrading axios 0.18 to 0.19
Safe0.18.1 → 0.19.2Security1New6Fixed52Other34
SafeUpgrade verdict
A security fix. Nothing to change in your code.
In plain terms
- Remove unnecessary XSS check (see for discussion).
Must act 1 item needs code or config changes
Drops is-buffer.
Installs 3 packages in all (was 4).
What you must change
Security1
Remove unnecessary XSS check (see for discussion).
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
interface AxiosError extends Error → interface AxiosError<T = any> extends Error - changed:
method AxiosInstance.delete(url: string, config?: AxiosRequestConfig): AxiosPromise → method AxiosInstance.delete<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - changed:
method AxiosInstance.get<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T> → method AxiosInstance.get<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - changed:
method AxiosInstance.head(url: string, config?: AxiosRequestConfig): AxiosPromise → method AxiosInstance.head<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - changed:
method AxiosInstance.patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T> → method AxiosInstance.patch<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R> - changed:
method AxiosInstance.post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T> → method AxiosInstance.post<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R> - changed:
method AxiosInstance.put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T> → method AxiosInstance.put<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R> - changed:
method AxiosInstance.request<T = any>(config: AxiosRequestConfig): AxiosPromise<T> → method AxiosInstance.request<T = any, R = AxiosResponse<T>> (config: AxiosRequestConfig): Promise<R> - changed:
property AxiosError.response?: AxiosResponse → property AxiosError.response?: AxiosResponse<T> - changed:
property AxiosRequestConfig.method?: string → property AxiosRequestConfig.method?: Method - changed:
property AxiosRequestConfig.responseType?: string → property AxiosRequestConfig.responseType?: ResponseType - added:
method AxiosInstance.getUri(config?: AxiosRequestConfig): string - added:
method AxiosInstance.options<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R> - added:
property AxiosError.isAxiosError: boolean - added:
property AxiosError.toJSON: () => object - added:
property AxiosProxyConfig.protocol?: string - added:
property AxiosRequestConfig.socketPath?: string | null - added:
property AxiosRequestConfig.timeoutErrorMessage?: string - added:
type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'link' | 'LINK' | 'unlink… - added:
type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'