Mongoose 5.11.14 released:
🛠️ Avoid inferring justOne from parent when populating a POJO with a manually populated path
🛠️ Apply setters on each element of the array when setting a populated array
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
In Mongoose v5.11.11 we made the first generic parameter to `Schema` in TypeScript, the `DocType`, automatically set `this` for document methods.
More about methods: mongoosejs.com/docs/guide.ht…#nodejs#mongodb#javascript
Mongoose 5.11.11 released:
🛠️ Support calling create() with undefined as first argument and no callback
🛠️ Ensure TypeScript knows that this refers to DocType in schema methods with strict mode
github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose 5.11.10 released:
🛠️ Support populate option for insertMany() as a workaround for mongoose-autopopulate
🏎️ Avoid creating extra array when initializing array of arrays
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose 5.11.7 released:
🛠️ Ensure calling get() with empty string returns undefined for mongoose-plugin-autoinc
🛠️ Set isNew to false for documents that were successfully inserted by insertMany when an error occurred
Changelog: github.com/Automattic/mongoo…#nodejs#mongodb
Mongoose v5.11.6 released:
🛠️ Ensure sync errors in pre hooks always bubble up to the calling code
🛠️ Allow passing ObjectId properties as strings to create() and findOneAndReplace()
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose v5.11.3 released:
🛠️ Make Mongoose collection inherit MongoDB collection in TypeScript
🛠️ Add Document#_id so documents have an id by default in TypeScript
github.com/Automattic/mongoo…#nodejs#mongodb#javascript