Skip to content

Commit ac24734

Browse files
committed
chore: deprecate Axios.CancelToken
The cancel token was deprecated by Axios since v0.22. It was based on a withdrawn approach and nowadays you should use the AbortController API (e.g. the `signal` attribute on the Request config). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 9d653a5 commit ac24734

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { getRequestToken, onRequestTokenUpdate } from '@nextcloud/auth'
99
import Axios from 'axios'
1010

1111
export interface CancelableAxiosInstance extends AxiosInstance {
12+
/**
13+
* @deprecated - use the AbortController API instead
14+
*/
1215
CancelToken: CancelTokenStatic
1316
isCancel: typeof Axios.isCancel
1417
}

0 commit comments

Comments
 (0)