Skip to content
verdict:

Axios 1.22.0

notable

pending: summary queued

Detected 2026-12-04 at 05:54 UTC. The summary is written on the next update; the full release notes are already below.

release-notesgithub.com/axios/axios 路 35 lines
  1. ## v1.22.0 (December 2, 2026)
  2. 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.
  3. ## 馃悰 Bug Fixes
  4. * **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__)
  5. * **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__)
  6. * **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__)
  7. * **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__)
  8. * **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__)
  9. ## 馃敡 Maintenance & Chores
  10. * **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__)
  11. * **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__)
  12. * **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__)
  13. * **Release Preparation:** Bumped the version metadata for 1.22.0. (__#11520__)
  14. ## 馃専 New Contributors
  15. We are thrilled to welcome our new contributors. Thank you for helping improve axios:
  16. * __@PerryLink__ (__#11436__)
  17. * __@OMD-123__ (__#11237__)
  18. * __@pentaoa__ (__#11239__)
  19. * __@bdcarr__ (__#11241__)
  20. * __@koreahghg__ (__#11246__)
  21. * __@prc5__ (__#11500__)
  22. * __@Dani-Google__ (__#11488__)
  23. * __@ruyadorno__ (__#11504__)
  24. * __@ZainnQureshii__ (__#11507__)
  25. * __@prateeknitcse__ (__#11478__)
  26. [Full Changelog](https://github.com/axios/axios/compare/v1.21.1...v1.22.0)

view on githubdetected 2026-12-04 via npm