Permalink
Browse files

fix(promise): formally deprecate mpromise

  • Loading branch information...
vkarpov15 committed May 10, 2016
1 parent 17c2a55 commit bde243cba9efc5a8309bb8bccb835778aab6868c
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/promise.js
View
@@ -66,6 +66,11 @@ Promise.prototype = Object.create(MPromise.prototype, {
}
});
Promise.prototype.then = util.deprecate(Promise.prototype.then,
'Mongoose: mpromise (mongoose\'s default promise library) is deprecated, ' +
'plug in your own promise library instead: ' +
'http://mongoosejs.com/docs/promises.html');
/*!
* Override event names for backward compatibility.
*/

0 comments on commit bde243c

Please sign in to comment.