Add registration of preference through require('any-promise/register')('when') (where `when is preferred implementation.
On `require('any-promise'), loads an implementation with following priority
Use previous registration through require('any-promise/register')('bluebird')
Implementation specified by PROMISE_IMPL
global.Promise if node.js version >= 0.12
Auto detected promise based on first successful require of known promise libraries. Note this is a last resort, as the loaded library is non-deterministic. node.js >= 0.12 will always use global.Promise over this priority list.
Throws error
Add require('any-promise/implementation') to retrieve registered implementation. Update tests and documentation.
Add registration of preference through
require('any-promise/register')('when')
(where `when is preferred implementation.On `require('any-promise'), loads an implementation with following priority
Add
require('any-promise/implementation')
to retrieve registered implementation. Update tests and documentation.