-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix LearnBoost/mongoose#2308: add .catch() #14
base: master
Are you sure you want to change the base?
Conversation
Is there any way we can "monkey patch" this in our apps while this isn't merged and released? Please merge this ASAP. 😢 |
You can do a really gnarly hack: require('mongoose/node_modules/mpromise').prototype.catch = function (onReject) {
return this.then(undefined, onReject);
}; But of course you'd have to maintain that code yourself. On the other hand, |
please merge +1 |
Still waiting on this, but with Automattic/mongoose#2688 this will be a non-issue. I'm strongly considering deprecating mongoose's 'mpromise by default' practice. |
👍 |
1 similar comment
+1 |
@aheckmann merge PR, please |
@aheckmann Are u going to merge this? |
@vkarpov15 I recommend yaku as a replacement. |
See Automattic/mongoose#2688 - mongoose is gonna switch to a BYOP approach |
@vkarpov15 I'd be happy to merge, but I need some more test cases. |
mongoose is gonna be moving away from mpromise, and the latest release supports "bring your own promises", so this is not a priority. If you won't merge this PR as is, feel free to close it. |
No description provided.