Skip to content

Update dependency axios to v1.22.0 - #33

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/axios-1.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/axios-1.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
axios (source) 1.21.1 → 1.22.0 age confidence

Release Notes

axios/axios (axios)

v1.22.0

Compare 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-env as a runtime dependency, and includes documentation updates and routine dependency bumps.

🐛 Bug Fixes

  • Nullish Request URL: Built-in adapters now reject a request whose url is null or undefined with AxiosError / ERR_INVALID_URL before anything is sent. Previously axios.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 native TypeError. axios.getUri() now applies the same check and throws for configs the request would reject. A baseURL, a socketPath, a custom adapter, or an empty-string URL behave as before. (#​11237, #​11453)
  • Node HTTP Adapter, Negative Timeouts: A negative timeout (including fractional values such as -0.5) now fails as a standard timeout error (ECONNABORTED, or ETIMEDOUT with clarifyTimeoutError) before a connection is opened. Previously it could throw an uncaught ERR_OUT_OF_RANGE that crashed the process. The timeout is converted once, and a value that overflows to Infinity now rejects with ERR_BAD_OPTION_VALUE. (#​11246)
  • Fetch Adapter, Stream Cleanup: Size-limit errors (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)
  • Header Encoding Shortcuts: setContentEncoding, getContentEncoding, and hasContentEncoding now exist at runtime, as already documented and typed. The existing Accept-Encoding shortcuts are now declared in index.d.ts and index.d.cts. TypeScript users may need to adjust code that relied on the old, incorrect getContentEncoding() return type. (#​11436)
  • Ported v0.x Fixes: Five fixes from v0.x are now in v1.x. Interceptor synchronous / runWhen options inherited only from Object.prototype are ignored. A slash-only baseURL (such as '/') always gives a root path on the current origin. Proxy environment lookup ignores names inherited from Object.prototype. With allowedSocketPaths set, the adapter connects to the same normalized socketPath it checked. follow-redirects gets explicit values for the redirect options it reads. The proxy lookup now lives in lib/helpers/proxyFromEnv.js, so proxy-from-env is no longer a runtime dependency. (#​11517)

🔧 Maintenance & Chores

  • Documentation: Explained which timeout error code each adapter reports (fetch always uses ETIMEDOUT) and what fetch adapter progress support depends on. Added vlt to the install instructions, added @hyper-fetch/axios to ECOSYSTEM.md, removed SAP from the README sponsors, and pointed the MDN CORS link to the canonical English URL. (#​11507, #​11504, #​11500, #​11488, #​11478)
  • Contributor Guidance: In AGENTS.md, the validator rule now covers only option type and shape checks in Axios#request. Checks that need the final config or the selected adapter belong on the request path. (#​11439)
  • Dependencies: Bumped the runtime dependency follow-redirects to 1.16.3. Updated vitest, @vitest/browser, @vitest/browser-playwright, eslint, globals, rollup, @babel/core, @babel/preset-env, playwright, prettier, and lint-staged in development dependencies, plus zizmorcore/zizmor-action and peter-evans/create-pull-request in GitHub Actions. (#​11467, #​11437, #​11438, #​11469, #​11468, #​11502, #​11503)
  • Release Preparation: Bumped the version metadata for 1.22.0. (#​11520)

🌟 New Contributors

We are thrilled to welcome our new contributors. Thank you for helping improve axios:

Full Changelog


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • "every 3 months on the first day of the month"

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants