Ir al contenido
verdict:

Axios 0.34.0

notable

note: la síntesis y las notas de la versión están en inglés

warning: requiere intervención

2 breaking changes5 puntos clave

Breaking: stricter header types and NO_PROXY CIDR ranges now bypass the proxy; review both before upgrading.

síntesis · solo a partir de las notas de la versión · claude-haiku-5-5 · prompt v7

breaking changestodos citados, cada uno con su solución

breaking[1]: TypeScript rejects header values that are Promises, functions, or objects with custom toString() methods.

Header Types: TypeScript now rejects header values that are Promises, functions, or objects with custom toString() methods. Resolve promises, call functions, or explicitly convert objects before assigning header values. Supported scalar, array, and grouped headers remain available. (#11209)

help: Resolve promises, call functions, or explicitly convert objects before assigning header values. Scalar, array, and grouped headers still work.

breaking[2]: Previously ineffective NO_PROXY / no_proxy CIDR ranges now make matching IP destinations bypass the proxy.

Proxy Routing: NO_PROXY / no_proxy entries now support IPv4 and IPv6 CIDR ranges. Previously ineffective ranges now cause matching IP destinations to bypass the proxy; review existing ranges when upgrading. (#11172)

help: Review existing NO_PROXY / no_proxy ranges before upgrading, since matching IP destinations will now skip the proxy.

puntos clave

release-notesgithub.com/axios/axios · 33 líneas
  1. ## v0.34.0 — September 13, 2026
  2. This release hardens request configuration and proxy handling, adds caller diagnostics and cancellation context, and tightens TypeScript header types.
  3. ## ⚠️ Breaking Changes & Deprecations
  4. - Header Types: TypeScript now rejects header values that are Promises, functions, or objects with custom toString() methods. Resolve promises, call functions, or explicitly convert objects before assigning header values. Supported scalar, array, and grouped headers remain available. (#11209)
  5. - Proxy Routing: NO_PROXY / no_proxy entries now support IPv4 and IPv6 CIDR ranges. Previously ineffective ranges now cause matching IP destinations to bypass the proxy; review existing ranges when upgrading. (#11172)
  6. ## 🔒 Security Fixes
  7. - Request Configuration: Prevent inherited properties from influencing form serializer options, default request methods, headers on interceptor-returned configs, and HTTP redirect hooks. Applications relying on inherited options must define those values as own properties. (#11172)
  8. - Hostname Processing: Replace quadratic regular-expression backtracking in proxy bypass hostname normalization with a linear scan, preventing excessive processing of crafted redirect hostnames. (#11172)
  9. ## 🚀 New Features
  10. - Caller Diagnostics: Enable captureCallerStack: true on a request or instance to append original caller frames to asynchronous error stacks. Disabled by default. (#11209)
  11. - Cancellation Context: Preserve AbortSignal.reason as CanceledError.reason, including objects and falsy values. Native and structural signals retain their identity and live getters through config merging. (#11209)
  12. ## 🐛 Bug Fixes
  13. - Proxy Protocols: Accept HTTP(S) proxy schemes with or without a trailing colon, including casing and surrounding whitespace variations. Invalid nonempty strings now fail before connecting with ERR_BAD_OPTION_VALUE; redirect failures retain ERR_FR_REDIRECTION_FAILURE wrapping. Omitted protocols continue to inherit the target protocol. (#11182)
  14. - Request Interceptors: Route synchronous interceptor and dispatch failures through response interceptors. Await recovery promises before dispatch; rejected recovery prevents sending the request, while successful recovery retains the last request config and ignores recovery return values. (#11209)
  15. - Error Compatibility: Allow Axios to load alongside a read-only Error.prototype.toJSON, while preserving supplied own property descriptors and setters. (#11209)
  16. ## 🔧 Maintenance & Chores
  17. - Publishing and Tests: Use npm bundled with Node in the v0 publishing workflow and replace the FormData browser test’s external HTTP request with a Jasmine-Ajax stub. (#11084)
  18. - Repository Cleanup: Add .codex/ to .gitignore. (#11033)
  19. - Release Preparation: Update package and runtime version metadata to 0.34.0. (#11217)
  20. **Full Changelog**: https://github.com/axios/axios/compare/v0.33.0...v0.34.0

ver en githubimported 2026-09-28 vía npm