Releases

v5.12.2 8/25/2020

Bug Fixes

  • types: extend Axios.AxiosRequestConfig with "progress" option (#408) (ea4ea7e)

Docs

  • Migrate docs to nuxt/content (#404)

v5.12.1 8/5/2020

Bug Fixes

  • plugin: hide progress-bar on cancelled requests (#398) (2061721)

v5.12.0 7/13/2020

Features

Bug Fixes

  • types: add axios-retry type def for more options (#378) (40a0c58)
  • types: add prefix, port, host options to axios types (#381) (301805b)

v5.11.0 6/5/2020

Features

  • Upgrade @nuxtjs/proxy to v2
  • Add typings to axios config in nuxt.config (#357)

Bug Fixes

  • plugin: always get global $nuxt while loading (#364) (e848b9d)

v5.10.3 4/30/2020

Bug Fixes

  • globalName fallback for nuxt < 2.2.0 (12da6c8)

v5.10.2 4/27/2020

5.10.2 (2020-04-27)

Bug Fixes

  • plugin: add missing $ prefix to globalName (#356) (47788bd)

v5.10.0 4/21/2020

Features

  • plugin: enable server brotli if supported (closes #276) (074f98c) (reverted by 5.10.1)

Bug Fixes

  • module: Allow browserBaseURL as empty string (fixes #303) (18afe5c)
  • plugin: preserve default headers (fixes #323) (6c5605d)
  • plugin: use globalName instead of $nuxt (fixes #345) (fd1f8ec)

v5.9.7 3/30/2020

Bug Fixes

  • plugin: don't convert falsy urls to string (#347) (b8a510e)

v5.9.5 3/27/2020

Bug Fixes

v5.9.6 3/27/2020

Bug Fixes

  • module: always set protocol to https when https: true is set (#344) (6f82570)

v5.9.4 1/30/2020

Bug Fixes

Dependency upgrades

  • update dependency axios to ^0.19.2 (#327)

v5.9.3 1/11/2020

Bug Fixes

  • axios: Upgrade to 0.19.1 with lots of bug fixes. (changelog)
  • types: extend from AxiosStatic (#319) (9223a57)

v5.9.0 12/17/2019

Features

v5.8.0 10/23/2019

Features

  • add CancelToken and isCancel to axios instance (#292) (b9335b1)

Thanks to @3b3ziz, @SaulIO, @ricardogobbosouza, @Amrmak for this feature and docs ❤️

v5.7.1 10/22/2019

Bug Fixes

5.0.0 2/4/2018

The 5.0.0 version of Axios module is an almost complete rewrite with more stability and custom features.

This release was not possible without months of community valuable feedback and help. 💖

Before doing an upgrade please ensure to read the latest docs and migration guide.

5.0.0 Highlights

  • All lifecycle functions have been removed. You can now use a nuxt plugin to add interceptors.
  • Options reworked. Setting Base URL now much more straightforward.
  • Built-in proxy support with easier integration and more docs.
  • Integration with Nuxt.js loading bar. So you see progress while making a long request.
  • Optional retry support to retry failed requests.

See all changes

Bug Fixes

  • progress: finish on fail (ea7b569)

Features

v5.7.0 10/22/2019

Features

  • add function helper setBaseURL (#296) (1028bbc)
  • allow adding custom headers with nuxt config (#294) (3e38906)

Bug Fixes

  • headers: don't proxy content-md5 and content-type (#300) (f959c58)
  • progress: handle canceled requests (#301) (5096060)

v5.6.0 8/20/2019

Features

v5.5.4 6/5/2019

Bug Fixes

  • ignore content-length header (41ff27a)

v5.5.3 5/30/2019

⚠️ This release force bumps axios dependency to ^0.19.0. Upgrading is highly recommended as of known vulnerability recently discovered in this package (CVE-2019-10742)

⚠️ If you also manually specified axios in your package.json dependencies or devDependencies, it is also advised to change it to ^0.19.0

v5.5.2 5/30/2019

Bug Fixes

v5.5.1 5/23/2019

Bug Fixes

  • don't toLowerCase headers for setHeader and setToken (#250) (93469f0)

v5.5.0 5/22/2019

Bug Fixes

Features

v5.4.2 5/21/2019

Fixes

  • chore(ts): update types for nuxt 2.7.1 (PR #249)
  • chore(deps): update dependency consola to ^2.6.2 (PR #246)

v5.1.0 3/5/2018

Full change list: v5.0.1...v5.1.0

Features

  • allow disable progress per request. closes #112. (1530bb6)
  • disable https for localhost url (#93) (dd67734)

v5.0.1 2/8/2018

Bug Fixes

  • don't mutate env.API_URL (a8ea331)

This was causing side-effects and invalid proxy config after reloading nuxt.config.js

v5.0.0-rc.2 1/29/2018

Bug Fixes

v5.0.0-rc.0 1/28/2018

New features

  • Nuxt progress bar integration (Enabled by default)
  • Built-in Proxy support

Please read Migration Guide before upgrading.

v5.0.0-alpha.0 1/28/2018

This is an (almost) complete rewrite of axios module.

Please read Migration Guide before upgrading.