Skip to content

Releases: Weffe/axios-api-versioning

v3.0.0

11 Feb 07:35
Compare
Choose a tag to compare

Release Highlights:

  • First contributor (@yarilchenko) that provided a fix + tests for properly replacing the baseURL for URL-param strategy! 🎉
  • Moved old build setup to use tsdx -- reduces overhead for me to maintain the build tooling 😃
  • Upgraded internal build deps to address security concerns

Why a major version bump?

In this release we exposed the custom axios types (e.g. AxiosRequestConfigWithVersioning) on the root level. This means you can now do the following:

Before (old):

import { AxiosInstanceWithVersioning } from 'axios-api-versioning/dist/types/axios';

After (preferred):

import { AxiosInstanceWithVersioning } from 'axios-api-versioning';

This should be a nice quality of life upgrade for typescript users.

However, the old route should still work fine -- although moving forward you should use the preferred way.