Change8

v1.18.1

📦 axiosView on GitHub →
🐛 7 fixes🔧 3 symbols

Summary

This release focuses on Node HTTP adapter fixes, safer AxiosError serialisation, runtime/type correctness fixes, documentation updates, and dependency maintenance.

🐛 Bug Fixes

  • Made AxiosError#cause non-enumerable to prevent circular JSON serialisation failures when errors include nested causes.
  • Guarded socket.setKeepAlive for proxy agent streams in the Node HTTP adapter.
  • Accepted path-only URLs when socketPath is configured in the Node HTTP adapter.
  • Deferred environment proxy handling to Node in the Node HTTP adapter.
  • Explicitly passed maxBodyLength through to follow-redirects in the Node HTTP adapter.
  • Fixed several runtime crashes, type definition mismatches, and incorrect error handling paths.
  • Switched the encoder callback in AxiosURLSearchParams to an arrow function so that encoder.call(this) receives the AxiosURLSearchParams instance correctly.

Affected Symbols