Skip to content

Releases: Automattic/mongoose

7.2.4

12 Jun 15:36
Compare
Choose a tag to compare

7.2.4 / 2023-06-12

  • fix(query): handle non-string discriminator key values in query #13496 #13492

7.2.3

09 Jun 18:40
Compare
Choose a tag to compare

7.2.3 / 2023-06-09

  • fix(model): ignore falsy last argument to create() for backwards compatibility #13493 #13491 #13487 MohOraby
  • types: remove generic param that's causing issues for typegoose #13494 #13482
  • types(aggregate): allow object syntax for $mergeObjects #13470 #13060
  • docs(connection): clarify how Connection.prototype.destroy() is different from close() #13475
  • docs(populate): fix accidental removal of text #13480
  • docs: add additional notes for Atlas X.509 authentication #13452 alexbevi
  • docs(populate): add a little more info on why we recommend using ObjectId for _id #13474 #13400

7.2.2

30 May 13:57
Compare
Choose a tag to compare

7.2.2 / 2023-05-30

  • fix(schema): make bulkWrite updateOne() and updateMany() respect timestamps option when set by merging schemas #13445
  • fix(schema): recursively copy schemas from different modules when calling new Schema() #13441 #13275
  • fix(update): allow setting paths with dots under non-strict paths #13450 #13434
  • types: improve function parameter types for ToObjectOptions transform option #13446 #13421
  • docs: add nextjs page with link to next starter app and couple FAQs #13444 #13430
  • docs(connections): add section on multi tenant #13449 #11187
  • docs(connection+model): expand docs on accessors for underlying collections #13448 #13334

7.2.1

24 May 20:48
Compare
Choose a tag to compare

7.2.1 / 2023-05-24

  • fix(array): track correct changes when setting nested array of primitives #13422 #13372
  • fix(query): handle plus path in projection with findOneAndUpdate() #13437 #13413
  • fix(cursor): handle calling skipMiddlewareFunction() in pre('find') middleware with cursors #13436 #13411
  • fix(model): include inspect output in castBulkWrite() error #13426
  • fix: avoid setting null property when updating using update pipeline with child timestamps but no top-level timestamps #13427 #13379
  • docs: remove callback based examples #13433 #13401
  • docs(connections): add details about keepAlive deprecation #13431
  • docs: add list of supported patterns for error message templating #13425 #13311

7.2.0

19 May 17:06
Compare
Choose a tag to compare

7.2.0 / 2023-05-19

  • feat: upgrade mongodb -> 5.5.0
  • feat(document): add flattenObjectIds option to toObject() and toJSON() #13383 #13341
  • feat(query): add translateAliases option to automatically call translate aliases on query fields #13397 #8678 #7511
  • feat(schema): propagate toObject and toJSON options to implicitly created schemas #13325
  • feat(model): add throwOnValidationError option for opting into getting MongooseBulkWriteError if all valid operations succeed in bulkWrite() and insertMany() #13410 #13256
  • feat(types+mongoose): export MongooseError #13403 #13387 ramos-ph

7.1.2

19 May 01:12
Compare
Choose a tag to compare

7.1.2 / 2023-05-18

7.1.1

10 May 21:06
Compare
Choose a tag to compare

7.1.1 / 2023-05-10

  • fix(document): handle set() from top-level underneath a map of mixed #13386
  • fix: don't modify passed options object to createConnection() #13376
  • types: make lean() not clobber result type for updateOne(), etc. #13389 #13382
  • types: handle union types in FlattenMaps #13368 #13346 Jokero
  • types(document): correct return type for Model.prototype.deleteOne(): promise, not query #13367 #13223
  • types: update document.d.ts $set function params to match set #13304 jeffersonlipsky
  • docs: add excludeIndexes to the guide schema options list #13377 #13287
  • docs: fix broken "fork me" on home page #13336

7.1.0

27 Apr 16:24
Compare
Choose a tag to compare

7.1.0 / 2023-04-27

  • feat: upgrade mongodb -> 5.3.0
  • feat(schema): add BigInt support, upgrade mongodb -> 5.3.0 #13318 #13081 #6936
  • feat: handle MongoDB's new UUID type, export mongoose.Types.UUID #13323 #13103
  • feat: implement createCollections() #13324
  • feat(query): add isPathSelectedInclusive function on query #13177
  • types: added overloads for Schema.pre/post with different values for SchemaPreOptions #12680 jpilgrim
  • types(query): make lean() flatten out inferred maps into Record<string, V> #13326 #13010
  • docs: update README deno url #13332
  • docs: update jsdoc to use full URLs instead of non-prefix absolute urls (also fix some urls) #13328 hasezoey
  • docs: reload api js files on change #13313 hasezoey
  • docs: update website sidebar to be better use-able #13321 hasezoey
  • docs: fix schematype @see links #13310 hasezoey
  • docs(subdocuments): remove callback usage, use deleteOne() rather than remove() re: #13284 #13316

7.0.5

24 Apr 16:31
Compare
Choose a tag to compare

7.0.5 / 2023-04-24

  • fix(schema): correctly handle uuids with populate() #13317 #13267
  • fix(schema): add clusteredIndex to schema options #13286 jakesjews
  • fix(document): use collection.findOne() for saving docs with no changes to avoid firing findOne middleware #13298
  • types(schema): avoid circular constraint in TSchemaOptions with --incremental by deferring ResolveSchemaOptions<> #13291 #13129
  • docs(subdocs): fix mention of subdocument ".remove" function #13312 hasezoey
  • docs: add mongoose.Promise removal to migrating to 7 guide #13295
  • docs: updated formatting of Error Handling section to better highlight the two kinds of possible errors #13279 Ankit-Mandal
  • docs: fix broken link #13301 #13281

7.0.4

17 Apr 16:44
Compare
Choose a tag to compare

7.0.4 / 2023-04-17