axios v1.0.0 Release Notes

Release Date: 2022-05-30 // almost 2 years ago
  • βž• Added

    • βž• Added stack trace to AxiosError #4624
    • βž• Add AxiosError to AxiosStatic #4654
    • πŸ— Replaced Rollup as our build runner #4596
    • βž• Added generic TS types for the exposed toFormData helper #4668
    • βž• Added listen callback function #4096
    • βž• Added instructions for installing using PNPM #4207
    • βž• Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill #4229
    • βž• Added axios-url-template in ECOSYSTEM.md #4238
    • βž• Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an axios instance #4248
    • βž• Added react hook plugin #4319
    • βž• Adding HTTP status code for transformResponse #4580
    • βž• Added blob to the list of protocols supported by the browser #4678
    • Resolving proxy from env on redirect #4436
    • βž• Added enhanced toFormData implementation with additional options 4704
    • βž• Adding Canceler parameters config and request #4711
    • βž• Added automatic payload serialization to application/x-www-form-urlencoded #4714
    • βž• Added the ability for webpack users to overwrite built-ins #4715
    • βž• Added string[] to AxiosRequestHeaders type #4322
    • βž• Added the ability for the url-encoded-form serializer to respect the formSerializer config #4721
    • βž• Added isCancel type assert #4293
    • βž• Added data URL support for node.js #4725
    • βž• Adding types for progress event callbacks #4675
    • URL params serializer #4734
    • βž• Added axios.formToJSON method #4735

    πŸ”„ Changed

    • ⚑️ Updated AxiosError.config to be optional in the type definition #4665
    • ⚑️ Updated README emphasizing the URLSearchParam built-in interface over other solutions #4590
    • Include request and config when creating a CanceledError instance #4659
    • πŸ”„ Changed func-names eslint rule to as-needed #4492
    • πŸ—„ Replacing deprecated substr() with slice() as substr() is deprecated #4468
    • ⚑️ Updating HTTP links in README.md to use HTTPS #4387
    • ⚑️ Updated to a better trim() polyfill #4072
    • ⚑️ Updated types to allow specifying partial default headers on instance create #4185
    • Expanded isAxiosError types #4344
    • ⚑️ Updated type definition for axios instance methods #4224
    • ⚑️ Updated eslint config #4722
    • ⚑️ Updated Docs #4742

    πŸ—„ Deprecated

    βœ‚ Removed

    • βœ‚ Removed incorrect argument for NetworkError constructor #4656
    • βœ‚ Removed Webpack #4596
    • βœ‚ Removed function that transform arguments to array #4544

    πŸ›  Fixed

    • πŸ›  Fixed grammar in README #4649
    • πŸ›  Fixed code error in README #4599
    • ⚑️ Optimized the code that checks cancellation #4587
    • πŸ›  Fix url pointing to defaults.js in README #4532
    • πŸ‘‰ Use type alias instead of interface for AxiosPromise #4505
    • πŸ›  Fix some word spelling and lint style in code comments #4500
    • ⚑️ Edited readme with 3 updated browser icons of Chrome, FireFox and Safari #4414
    • ⬆️ Bump follow-redirects from 1.14.9 to 1.15.0 #4673
    • πŸ›  Fixing http tests to avoid hanging when assertions fail #4435
    • πŸ›  Fix TS definition for AxiosRequestTransformer #4201
    • πŸ›  Fix grammatical issues in README #4232
    • πŸ›  Fixing instance.defaults.headers type #4557
    • πŸ›  Fixed race condition on immediate requests cancellation #4261
    • Fixing Z_BUF_ERROR when no content #4701
    • πŸ›  Fixing proxy beforeRedirect regression #4708
    • πŸ›  Fixed AxiosError status code type #4717
    • πŸ›  Fixed AxiosError stack capturing #4718
    • πŸ›  Fixing AxiosRequestHeaders typings #4334
    • πŸ›  Fixed max body length defaults #4731
    • πŸ›  Fixed toFormData Blob issue on node>v17 #4728
    • ⬆️ Bump grunt from 1.5.2 to 1.5.3 #4743
    • πŸ›  Fixing content-type header repeated #4745
    • πŸ›  Fixed timeout error message for http 4738

    πŸ”’ Security

    • ⚑️ Update SECURITY.md #4687

    πŸš€ Contributors to this release


Previous changes from v0.24.0

  • πŸ’₯ Breaking changes:

    • βͺ Revert: change type of AxiosResponse to any, please read lengthy discussion here: (#4141) pull request: (#4186)

    πŸš€ Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub: