oauthjs / node-oauth2-server

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with express in node.js

Home Page:https://npmjs.org/package/oauth2-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove Bluebird Dependency

jwerre opened this issue · comments

We should be able to remove Bluebird as a dependency in favor of standard ES6 Promises.

It may be worth considering adding a feature where you could plug in your own Promise library (#621 (comment)). Since Bluebird has been such an integral part of this project many legacy applications may be depending on the extended Promise functionality that it offers. It would be much easier to plug in Bluebird in many cases that to rewrite all that code. Furthermore, if you're using a feature like Cancelations you might find yourself is a situation where upgrading is untenable. One module that did this well is Mongoosehere's what that looks like.

Is this feature done?

Doesn't look like it:

var Promise = require('bluebird');