Axios v1.21.0
Axios 1.21.0 adds response-duration reporting and opt-in UTF-8 Basic authentication, alongside broad fixes to runtime compatibility, adapters, headers, and diagnostics. It also changes how header defaults are recognized: custom class instances are no longer treated as method-specific defaults unless converted to a plain map or compatible AxiosHeaders instance.
Axios users relying on custom class instances for header defaults may need to convert them; users needing Unicode Basic authentication can opt in, while other users benefit from timing and compatibility fixes.
Review header-default configuration for custom class instances and convert any such defaults to plain maps or compatible AxiosHeaders instances.
- 01Convert custom class instances used as header defaults to plain maps (for example, `{ post: { ...customDefaults } }`) or compatible `AxiosHeaders` instances.
- 02For Unicode Basic authentication, enable `transitional.encodeBasicAuthUsername: true`, provide the original Unicode username, and remove manual pre-encoding workarounds.
transitional: {
encodeBasicAuthUsername: true
}# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.