npm mongoose 8.0.0-rc0

latest releases: 8.8.1, 8.8.0, 8.7.3...
12 months ago

8.0.0-rc0 / 2023-10-24

  • BREAKING CHANGE: use MongoDB node driver 6, drop support for rawResult option and findOneAndRemove() #13753
  • BREAKING CHANGE: apply minimize by default when updating document #13843
  • BREAKING CHANGE: remove id setter #13784
  • BREAKING CHANGE: remove overwrite option for updateOne(), findOneAndUpdate(), etc. #13989 #13578
  • BREAKING CHANGE: make model.prototype.deleteOne() return query, not promise #13660 #13369
  • BREAKING CHANGE: remove Model.count(), Query.prototype.count() #13618 #13598
  • BREAKING CHANGE: allow null values for string enum #13620 #3044
  • BREAKING CHANGE: make base schema paths come before discriminator schema paths when running setters, validators, etc. #13846 #13794
  • BREAKING CHANGE: make Model.validate() use Model.castObject() to cast, and return casted copy of object instead of modifying in place #13287 #12668
  • BREAKING CHANGE: make internal file names all camelCase #13950 #13909 #13308
  • BREAKING CHANGE: make create() wait for all documents to finish inserting or error out before throwing an error if ordered = false #13621 #4628
  • BREAKING CHANGE: refactor out mongoose/lib/mongoose.js file to allow importing Mongoose without MongoDB driver #13905
  • BREAKING CHANGE(types): allow null for optional fields #13901
  • BREAKING CHANGE(types): infer return types types for Model.distinct and Query.distinct #13836 kaulshashank

Don't miss a new mongoose release

NewReleases is sending notifications on new releases.