v1.13.3
📦 axiosView on GitHub →
✨ 7 features🐛 9 fixes🔧 4 symbols
Summary
This release focuses heavily on bug fixes, including improvements to HTTP2 default ports, interceptor error handling, and better Node.js/Bun compatibility via package.json exports. It also introduces several features like enhanced TypeScript support and better error handling in pipeFileToResponse.
Migration Steps
- If you rely on silentJSONParsing=false throwing on invalid JSON, note that this specific fix was reverted in this release (see Reverts section). Review the revert if this behavior is critical.
✨ New Features
- Allow `undefined` as a value in AxiosRequestConfig.
- Added automatic minor and patch upgrades to dependabot.
- Added Node.js coverage script using c8.
- Added copilot instructions.
- Compatibility with frozen prototypes.
- Enhanced pipeFileToResponse with error handling.
- Improved TypeScript support: Intellisense for string literals in a widened union.
🐛 Bug Fixes
- HTTP2: Use port 443 for HTTPS connections by default.
- Interceptor: Handle the error in the same interceptor.
- Fixed package.json 'main' field to correspond to CJS artifacts.
- Updated package.json 'exports' condition to load the Node.js build in Bun instead of the browser build.
- Ensured silentJSONParsing=false throws on invalid JSON (Note: This fix was reverted in Reverts section, but listed here as a fix attempt).
- Turned AxiosError into a native error.
- Types: Added handlers to AxiosInterceptorManager interface.
- Types: Restored AxiosError.cause type from unknown to Error.
- Fixed unclear error message when specifying an empty proxy authorization.