Monday 29 February 2016

How do you deal with plugins that use different promise libraries?

For promises, I've been using await/async using a babel polyfill in the latest release of Node. Several packages I use (like Sequelize) use existing promise libraries like Bluebird and Q.Is it ok to wrap these in promises in the JS promise (e.g., 'new Promise' in ES6 around the Bluebird/Q promise)? Or is there another way to mix the built in Promise functionality with the ones chosen by external libraries?

Submitted February 29, 2016 at 06:39PM by Federalist85

No comments:

Post a Comment