Open willian opened 6 years ago
It boils down to a bad judgement call and then being stuck. I wish I had a better answer. 🤣
I'd be open to deprecating it and moving into 2.0 with a better api entirely. =)
@skellock thanks for answering me back. When you say "moving into 2.0..." do you mean a new version of apisauce? If so, do you have a list of things you think the new version should have?
Also, I think changing transforms functions to be pure will break compatibility with 1.x, right?
I guess technically that would be 1.0
eh? Since we're 0.15.x
currently. I keep forgetting that.
Yes, that would be a breaking change. I'm ok with that. 0.15.x
is stable enough to remain here.
So, now that you've got me thinking about it, here's whats on my wish list:
what is the status of this ticket ?
Hi, first of all: thanks for all the hard work on this library.
This is now an issue, but more a curiosity. Why the callback we add for a response transform can't be a pure function? Instead, it expects mutation to the response object from its arguments so it can be passed to axios internally.
For example, this doesn't work: