by platz · 11y ago · 0 comments
Maybe those other projects are also using other libraries that don't use promises, so now there is a problem. Do you wrap the other library in promises too, if that is even a viable option for you?
Colorness is a problem for the whole ecosystem too.
In practice however most library callback apis resemble the callback contract enough so that one-line promise-wrapping of the entire library is possible.
What I was saying is that it does work. I can use dependencies with no problems no matter what they expose by coercing to promises internally, and have had no complaints about my libraries' APIs use of promises.