axios
axios copied to clipboard
Dependency Dashboard
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
View this repository on the Mend.io Web Portal.
Config Migration Needed
- [ ] Select this checkbox to let Renovate create an automated Config Migration PR.
Open
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
- [ ] chore(deps): update node.js to v22.17.0
Detected dependencies
circleci
.circleci/config.yml
cimg/node 22.14.0
npm
package.json
@eslint/eslintrc 3.3.1@eslint/js 9.30.0@commitlint/cli 19.8.1@commitlint/config-angular 19.8.1@nestjs/common 11.1.3@nestjs/core 11.1.3@nestjs/platform-express 11.1.3@nestjs/testing 11.1.3@types/jest 30.0.0@types/node 22.15.33axios 1.10.0eslint 9.30.0eslint-config-prettier 10.1.5eslint-plugin-prettier 5.5.1globals 16.2.0husky 9.1.7jest 30.0.3lint-staged 16.1.2prettier 3.6.2reflect-metadata 0.2.2release-it 19.0.3rimraf 6.0.1rxjs 7.8.2ts-jest 29.4.0typescript 5.8.3typescript-eslint 8.35.0@nestjs/common ^10.0.0 || ^11.0.0axios ^1.3.1rxjs ^7.0.0
- [ ] Check this box to trigger a request for Renovate to run again on this repository
Is there anything blocking to upgrade Axios to 1.0.0?
Is there anything blocking to upgrade Axios to 1.0.0?
axios v1 use AbortController instead of Axios.CancelToken.source
maybe HttpService like
export class HttpService {
// ...
protected makeObservable<T>(
axios: (...args: any[]) => AxiosPromise<T>,
...args: any[]
) {
return new Observable<AxiosResponse<T>>(subsriber => {
const config: AxiosRequestConfig = { ...(args[args.length - 1] || {}) };
let controller: AbortController;
if (!config.signal) {
controller = new AbortController();
config.signal = controller.signal;
}
axios(...args)
.then(res => {
subsriber.next(res);
subsriber.complete();
}).catch(err => {
subsriber.error(err);
});
return () => {
if (config.responseType === 'stream') {
return;
}
if (controller) {
controller.abort();
}
}
});
}
}