-
-
Notifications
You must be signed in to change notification settings - Fork 4k
5.0 Deprecation Warnings
Valeri Karpov edited this page Feb 4, 2016
·
8 revisions
The following functionality is considered deprecated for the 5.0 release.
-
The mpromise promises library. Mongoose 5.0 will use native promises by default if available, otherwise no promises. You will still be able to set a custom promises library using
mongoose.Promise = require('bluebird');, however, mpromise will not be supported. -
3512: Throwing cast errors when calling
.update(). Mongoose 4.x currently throws an exception if the criteria or update passed toMyModel.update()fails to cast. Mongoose 5.0 will communicate this error in the callback (or by rejecting the promise). -
The current
emitIndexErroroption for schemas will be removed. Mongoose will always use theemitIndexError: truebehavior.