Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to pass the already created axios instance in the config #222

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Conversation

max-lychko
Copy link
Contributor

This PR add the ability to pass the already created axios instance in the config. This is issue #205.

Copy link
Member

@ryanlntn ryanlntn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 👍

Copy link
Member

@robinheinze robinheinze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@robinheinze robinheinze merged commit fd286c1 into infinitered:master Aug 20, 2019
@max-lychko
Copy link
Contributor Author

max-lychko commented Aug 20, 2019

Thanks, guys 🙂 I will also create a PR with the README.md update for this feature

@infinitered-circleci
Copy link

🎉 This PR is included in version 1.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@popbee
Copy link

popbee commented Aug 23, 2019

Typescript:
axiosInstance is optional. The syntax for "optional" in Typescript is ?. This is very different from | undefined. This is forcing Typescript users to adapt the code when upgrading to add a dummy axiosInstance with the value undefined.

This is not backward compatible. Either we fix the types or upgrade the version accordingly (semver).

@robinheinze
Copy link
Member

Thanks @popbee, you're very right. Just released a new patch with the correct type definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants