Mongoose v5.11.2 released, with a few more TypeScript fixes:
🛠️ Add missing query options and model findById() function
🛠️ Support defining schema paths as arrays of functions
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose v5.11.1 released, with a few fixes to our new TypeScript bindings:
🛠️ Add missing SchemaOptions
🛠️ Allow using $set in updates
If you're getting compiler errors that look like the attached image, please remove your dependency on `@types/mongoose` and try recompiling!
Mongoose 5.11.0 released:
🌟 Add official TypeScript definitions index.d.ts file
🌟 Add bufferTimeoutMS option that configures how long Mongoose will allow commands to buffer
And 15 other new features, full list here: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose 5.10.19 released, last release before 5.11.0!
🛠️ Support passing an array to `$type` in query filters
🏎️ Avoid creating unnecessary objects when casting to array
github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose v5.10.17 released, fixes a bad bug introduced in v5.10.16 that skips subsequent fields after setting one field to `undefined`.
We've deprecated v5.10.16 on npm. If you're using v5.10.16, we recommend you upgrade immediately
#nodejs#mongodb#javascript
Mongoose 5.10.16 released:
🛠️ Copy config options from connection rather than base connection when calling useDb()
🛠️ Support of for array type definitions to be consistent with maps
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose v5.10.15 released:
🛠️ Make sure Array#toObject() returns a vanilla JavaScript array in Node.js 6+
🛠️ Make disconnect() stop Mongoose if it is trying to reconnect
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
Mongoose v5.10.14 released:
🛠️ Handle casting immutable object properties with $setOnInsert
🛠️ Overwrite if discriminator schema specifies a path is single nested but base schema has path as doc array
Full changelog: github.com/Automattic/mongoo…#nodejs#mongodb#javascript
We're working on some exciting new features for Mongoose 5.11.
You'll be able to define custom casting functions for individual paths in your schema.
More about schemas in Mongoose: mongoosejs.com/docs/guide.ht…#nodejs#mongodb#javascript