Repository navigation
Update dependency axios to v1.22.0 - #117
Open
mailerlite-renovate[bot] wants to merge 1 commit into
Open
mailerlite-renovate[bot] wants to merge 1 commit into
mailerlite-renovate[bot] wants to merge 1 commit into
Conversation
mailerlite-renovate
Bot
force-pushed
the
renovate/axios-1.x-lockfile
branch
2 times, most recently
from
November 10, 2026 03:18
bb450c6 to
176d1d5
Compare
mailerlite-renovate
Bot
force-pushed
the
renovate/axios-1.x-lockfile
branch
from
November 13, 2026 04:02
176d1d5 to
5448ade
Compare
mailerlite-renovate
Bot
force-pushed
the
renovate/axios-1.x-lockfile
branch
from
December 3, 2026 03:48
5448ade to
e71990c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.20.0→1.22.0Release Notes
axios/axios (axios)
v1.22.0Compare Source
v1.22.0 (December 2, 2026)
This release fixes several request-validation and adapter edge cases (nullish URLs, negative timeouts, fetch stream cleanup), ports five recent v0.x fixes to v1.x, removes
proxy-from-envas a runtime dependency, and includes documentation updates and routine dependency bumps.🐛 Bug Fixes
urlisnullorundefinedwithAxiosError/ERR_INVALID_URLbefore anything is sent. Previouslyaxios.get(null, { params })built a query-only URL that browsers resolved against the current page, XHR requested./null, and the Node HTTP adapter threw a nativeTypeError.axios.getUri()now applies the same check and throws for configs the request would reject. AbaseURL, asocketPath, a custom adapter, or an empty-string URL behave as before. (#11237, #11453)timeout(including fractional values such as-0.5) now fails as a standard timeout error (ECONNABORTED, orETIMEDOUTwithclarifyTimeoutError) before a connection is opened. Previously it could throw an uncaughtERR_OUT_OF_RANGEthat crashed the process. The timeout is converted once, and a value that overflows toInfinitynow rejects withERR_BAD_OPTION_VALUE. (#11246)maxBodyLength/maxContentLength) now cancel the source stream instead of leaving it open until garbage collection. The response-stream capability probe also cancels its throwaway body, which removes async-leak reports on Node.js 22 and older (for example from Vitest's--detect-async-leaks). (#11239, #11241)setContentEncoding,getContentEncoding, andhasContentEncodingnow exist at runtime, as already documented and typed. The existingAccept-Encodingshortcuts are now declared inindex.d.tsandindex.d.cts. TypeScript users may need to adjust code that relied on the old, incorrectgetContentEncoding()return type. (#11436)synchronous/runWhenoptions inherited only fromObject.prototypeare ignored. A slash-onlybaseURL(such as'/') always gives a root path on the current origin. Proxy environment lookup ignores names inherited fromObject.prototype. WithallowedSocketPathsset, the adapter connects to the same normalizedsocketPathit checked.follow-redirectsgets explicit values for the redirect options it reads. The proxy lookup now lives inlib/helpers/proxyFromEnv.js, soproxy-from-envis no longer a runtime dependency. (#11517)🔧 Maintenance & Chores
fetchalways usesETIMEDOUT) and what fetch adapter progress support depends on. Added vlt to the install instructions, added@hyper-fetch/axiostoECOSYSTEM.md, removed SAP from the README sponsors, and pointed the MDN CORS link to the canonical English URL. (#11507, #11504, #11500, #11488, #11478)AGENTS.md, thevalidatorrule now covers only option type and shape checks inAxios#request. Checks that need the final config or the selected adapter belong on the request path. (#11439)follow-redirectsto 1.16.3. Updatedvitest,@vitest/browser,@vitest/browser-playwright,eslint,globals,rollup,@babel/core,@babel/preset-env,playwright,prettier, andlint-stagedin development dependencies, pluszizmorcore/zizmor-actionandpeter-evans/create-pull-requestin GitHub Actions. (#11467, #11437, #11438, #11469, #11468, #11502, #11503)🌟 New Contributors
We are thrilled to welcome our new contributors. Thank you for helping improve axios:
Full Changelog
v1.21.1Compare Source
v1.21.1 — November 9, 2026
This release raises the minimum
follow-redirectsversion to fix a published CVE, fixes a Next.js prerendering failure caused by the response duration timer, corrects thegetAdaptertypings, and includes documentation corrections, new test coverage, CI runner changes and dependency updates.🔒 Security Fixes
follow-redirectsrange from^1.16.0to^1.16.2to fix CVE-2026-116689 (GHSA-mrwp-f3q8-3g9p). In the vulnerable versions,sensitiveHeadersarrays from another realm were ignored and custom credentials could follow redirects. Only the Node.js HTTP adapter is affected, and there are no API changes. (#11410)🐛 Bug Fixes
dispatchRequestnow measuresresponse.durationwithperformance.now()and usesDate.now()only whenperformance.now()isn't available. In v1.21.0, any axios request from a Server Component failed Next.js production builds with Cache Components (cacheComponents: true), because Next.js rejectsDate.now()while prerendering. The duration is still a whole number of milliseconds, and system clock changes no longer affect it. (#11411)getAdapternow accepts an optionalconfig?: AxiosRequestConfiginindex.d.tsandindex.d.cts, matching what it does at runtime. You can now callgetAdapter('fetch', { env: { fetch: myFetch } })without a cast. (#11404)🔧 Maintenance & Chores
Documentation Corrections: Brought the README and docs site in line with how axios actually behaves:
transformRequestruns for every method, and transformers receive(data, headers, status).responseTypeandContent-Typehave no default value.AxiosHeaders#getand#normalizeare described correctly.axios.isAxiosError(), not byname.ECONNREFUSEDandERR_FORM_DATA_DEPTH_EXCEEDED, and note that FormData parsing has a fixed depth limit thatmaxDepthdoesn't change.redactdoesn't scan, which adapters enforcemaxContentLength/maxBodyLength, and howformToJSON()handles field name collisions.(#11374, #11373, #11389, #11419, #11429, #11430)
Docs Site: Added a Partners page, a shared card design for sponsors and partners, a Namespace sponsor badge, and a blog whose first post announces HeroDevs Never-Ending Support for Axios v0. Also applied the v1.20.0/v1.21.0 release notes to the docs, and fixed internal links in the es, fr and zh translations so they keep their locale prefix. (#11390, #11399, #11400, #11412, #11401)
Test Coverage: Added cancellation tests across the HTTP, fetch and XHR adapters. They cover
AbortSignal,CancelToken, cancelling while a request interceptor is pending, and timeout precedence. Also added tests forno_proxyedge cases inshouldBypassProxy, such as internationalized domain names, malformed CIDR and IPv4 entries, and port-qualified entries. Neither changes runtime behavior. (#11376, #11431)CI: GitHub Actions jobs now run on Namespace runners. The npm publish job stays on GitHub-hosted runners, because npm provenance and trusted publishing (OIDC) only work there. (#11396)
Dependencies: Updated development and tooling dependencies, including
vitestand@vitest/*(to 5.x at the root),typescript(7.x at the root),vite,rollup,eslint,playwright,@commitlint/*,@rollup/plugin-alias,@rollup/plugin-terser,body-parser,multer,serialize-javascript,fast-uri,qs,zizmorcore/zizmor-action, andfollow-redirectsin/docs. (#11383, #11375, #11372, #11345, #11392, #11387, #11386, #11385, #11391, #11388, #11395, #11421, #11422, #11426)Release: Prepared the 1.21.1 release. (#11435)
🌟 New Contributors
We are thrilled to welcome our new contributors. Thank you for helping improve axios:
Full Changelog
v1.21.0Compare Source
This release adds response timing and opt-in UTF-8 Basic authentication, improves request handling across runtimes, and changes how header defaults are recognized.
Configuration
📅 Schedule: (UTC)
🚦 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 Mend Renovate CLI.