From d7f852fdaedd08f8b22ca4b90c5c678264824a78 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Thu, 11 Mar 2021 14:02:00 -0500 Subject: [PATCH] chore: release 5.12.0 --- History.md | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index d7ce2d8cb54..ee0901b7f77 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,16 @@ +5.12.0 / 2021-03-11 +=================== + * feat(populate): add `transform` option that Mongoose will call on every populated doc #3775 + * feat(query): make `Query#pre()` and `Query#post()` public #9784 + * feat(document): add `Document#getPopulatedDocs()` to return an array of all populated documents in a document #9702 [IslandRhythms](https://github.com/IslandRhythms) + * feat(document): add `Document#getAllSubdocs()` to return an array of all single nested and array subdocuments #9764 [IslandRhythms](https://github.com/IslandRhythms) + * feat(schema): allow `schema` as a schema path name #8798 [IslandRhythms](https://github.com/IslandRhythms) + * feat(QueryCursor): Add batch processing for eachAsync #9902 [khaledosama999](https://github.com/khaledosama999) + * feat(connection): add `noListener` option to help with use cases where you're using `useDb()` on every request #9961 + * feat(index): emit 'createConnection' event when user calls `mongoose.createConnection()` #9985 + * feat(connection+index): emit 'model' and 'deleteModel' events on connections when creating and deleting models #9983 + * feat(query): allow passing `explain` option to `Model.exists()` #8098 [IslandRhythms](https://github.com/IslandRhythms) + 5.11.20 / 2021-03-11 ==================== * fix(query+populate): avoid unnecessarily projecting in subpath when populating a path that uses an elemMatch projection #9973 diff --git a/package.json b/package.json index 064840596bc..52801b2e9ae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mongoose", "description": "Mongoose MongoDB ODM", - "version": "5.11.20", + "version": "5.12.0", "author": "Guillermo Rauch ", "keywords": [ "mongodb",