Fixed race condition on immediate requests cancellation (#4261)
Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an Axios instance https://github.com/axios/axios/pull/4248
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [axios](https://axios-http.com) ([source](https://github.com/axios/axios)) | [`^0.27.0` -> `^0.28.0`](https://renovatebot.com/diffs/npm/axios/0.27.2/0.28.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
<details>
<summary>axios/axios (axios)</summary>
### [`v0.28.1`](https://github.com/axios/axios/releases/tag/v0.28.1)
[Compare Source](https://github.com/axios/axios/compare/v0.28.0...v0.28.1)
#### Release notes:
#### Release notes:
##### Bug Fixes
- fix(backport): custom params serializer support ([#​6263](https://github.com/axios/axios/issues/6263))
- fix(backport): uncaught ReferenceError `req` is not defined ([#​6307](https://github.com/axios/axios/issues/6307))
### [`v0.28.0`](https://github.com/axios/axios/releases/tag/v0.28.0)
[Compare Source](https://github.com/axios/axios/compare/v0.27.2...v0.28.0)
#### Release notes:
##### Bug Fixes
- fix(security): fixed CVE-2023-45857 by backporting `withXSRFToken` option to v0.x ([#​6091](https://github.com/axios/axios/issues/6091))
##### Backports from v1.x:
- Allow null indexes on formSerializer and paramsSerializer v0.x ([#​4961](https://github.com/axios/axios/issues/4961))
- Fixing content-type header repeated [#​4745](https://github.com/axios/axios/issues/4745)
- Fixed timeout error message for HTTP 4738
- Added `axios.formToJSON` method ([#​4735](https://github.com/axios/axios/issues/4735))
- URL params serializer ([#​4734](https://github.com/axios/axios/issues/4734))
- Fixed toFormData Blob issue on node>v17 [#​4728](https://github.com/axios/axios/issues/4728)
- Adding types for progress event callbacks [#​4675](https://github.com/axios/axios/issues/4675)
- Fixed max body length defaults [#​4731](https://github.com/axios/axios/issues/4731)
- Added data URL support for node.js ([#​4725](https://github.com/axios/axios/issues/4725))
- Added isCancel type assert ([#​4293](https://github.com/axios/axios/issues/4293))
- Added the ability for the `url-encoded-form` serializer to respect the `formSerializer` config ([#​4721](https://github.com/axios/axios/issues/4721))
- Add `string[]` to `AxiosRequestHeaders` type ([#​4322](https://github.com/axios/axios/issues/4322))
- Allow type definition for axios instance methods ([#​4224](https://github.com/axios/axios/issues/4224))
- Fixed `AxiosError` stack capturing; ([#​4718](https://github.com/axios/axios/issues/4718))
- Fixed `AxiosError` status code type; ([#​4717](https://github.com/axios/axios/issues/4717))
- Adding Canceler parameters config and request ([#​4711](https://github.com/axios/axios/issues/4711))
- fix(types): allow to specify partial default headers for instance creation ([#​4185](https://github.com/axios/axios/issues/4185))
- Added `blob` to the list of protocols supported by the browser ([#​4678](https://github.com/axios/axios/issues/4678))
- Fixing Z_BUF_ERROR when no content ([#​4701](https://github.com/axios/axios/issues/4701))
- Fixed race condition on immediate requests cancellation ([#​4261](https://github.com/axios/axios/issues/4261))
- Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an Axios instance https://github.com/axios/axios/pull/4248
- Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill ([#​4229](https://github.com/axios/axios/issues/4229))
- Fix TS definition for AxiosRequestTransformer ([#​4201](https://github.com/axios/axios/issues/4201))
- Use type alias instead of interface for AxiosPromise ([#​4505](https://github.com/axios/axios/issues/4505))
- Include request and config when creating a CanceledError instance ([#​4659](https://github.com/axios/axios/issues/4659))
- Added generic TS types for the exposed toFormData helper ([#​4668](https://github.com/axios/axios/issues/4668))
- Optimized the code that checks cancellation ([#​4587](https://github.com/axios/axios/issues/4587))
- Replaced webpack with rollup ([#​4596](https://github.com/axios/axios/issues/4596))
- Added stack trace to AxiosError ([#​4624](https://github.com/axios/axios/issues/4624))
- Updated AxiosError.config to be optional in the type definition ([#​4665](https://github.com/axios/axios/issues/4665))
- Removed incorrect argument for NetworkError constructor ([#​4656](https://github.com/axios/axios/issues/4656))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: pnpm-lock.yaml
WARN The "store" setting has been renamed to "store-dir". Please use the new name.
WARN GET https://registry.npmjs.org/axios error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.324.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/cssnano/-/cssnano-5.1.7.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/eslint-plugin-svelte3/-/eslint-plugin-svelte3-4.0.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/postcss/-/postcss-8.4.13.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/release-it/-/release-it-15.0.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/svelte/-/svelte-3.47.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.6.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.24.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.29.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/axios error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.324.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/cssnano/-/cssnano-5.1.7.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/eslint-plugin-svelte3/-/eslint-plugin-svelte3-4.0.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/postcss/-/postcss-8.4.13.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/release-it/-/release-it-15.0.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/svelte/-/svelte-3.47.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.6.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.24.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.29.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
undefined
ERR_INVALID_THIS Value of "this" must be of type URLSearchParams
### ⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
##### File name: pnpm-lock.yaml
```
WARN The "store" setting has been renamed to "store-dir". Please use the new name.
WARN GET https://registry.npmjs.org/axios error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.324.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/cssnano/-/cssnano-5.1.7.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/eslint-plugin-svelte3/-/eslint-plugin-svelte3-4.0.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/postcss/-/postcss-8.4.13.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/release-it/-/release-it-15.0.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/svelte/-/svelte-3.47.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.6.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.24.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.29.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/axios error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.324.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/cssnano/-/cssnano-5.1.7.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/eslint-plugin-svelte3/-/eslint-plugin-svelte3-4.0.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/postcss/-/postcss-8.4.13.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/release-it/-/release-it-15.0.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/svelte/-/svelte-3.47.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.6.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.24.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.29.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
undefined
ERR_INVALID_THIS Value of "this" must be of type URLSearchParams
```
odit_renovate
changed title from Update dependency axios to ^0.28.0 to Update dependency axios to ^0.28.0 - autoclosed2024-12-08 18:44:41 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
^0.27.0->^0.28.0Release Notes
axios/axios (axios)
v0.28.1Compare Source
Release notes:
Release notes:
Bug Fixes
reqis not defined (#6307)v0.28.0Compare Source
Release notes:
Bug Fixes
withXSRFTokenoption to v0.x (#6091)Backports from v1.x:
axios.formToJSONmethod (#4735)url-encoded-formserializer to respect theformSerializerconfig (#4721)string[]toAxiosRequestHeaderstype (#4322)AxiosErrorstack capturing; (#4718)AxiosErrorstatus code type; (#4717)blobto the list of protocols supported by the browser (#4678)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: pnpm-lock.yaml
Update dependency axios to ^0.28.0to Update dependency axios to ^0.28.0 - autoclosedPull request closed