Mongoose 9.13.1 released
๐ ๏ธ Remove alias mapping in removeVirtual()
๐ ๏ธ Make remove() also remove aliases; remove aliases from SchemaType in removeVirtual()
https://t.co/9ye2XFpWYX
Mongoose 9.13.0 released
๐ Upgrade MongoDB driver to 7.9
๐ Add defaultSort option to schemas, applies default sort to all queries unless sort explicitly specified
๐๏ธ Avoid O(n*m) id() lookup when setting a DocumentArray to a plain array
Mongoose 9.12.2, 8.24.10, 7.8.14, 6.13.13 released; includes fixes for multiple soon-to-be-disclosed CVEs primarily related to sanitizeFilter and sanitizeProjection.
Mongoose 9.12.0 released
๐ Upgrade to mongodb driver 7.8
๐๏ธ Cache paths with defaults and schemas with select paths; avoid unnecessary $isModified() lookup
https://t.co/RXqWYEDIH3
New on https://t.co/kIEWTZT0ey: our guide to using indexes with Mongoose in production
Includes our guidance on:
1. When to index vs when not to
2. When to use autoIndex vs createIndexes vs syncIndexes
3. Path-level vs Schema.prototype.index
https://t.co/EmcHEGfYVF
introducing Erden, the tooling I've used to go to 11,134 contributions on GitHub in the last 12 months, cleaned up and collected into an actually usable package ๐
Reminder: Mongoose 6 EOL is February 1, 2027.
3 months from today.
No scheduled EOL date for Mongoose 7 yet; earliest will be 2028.
If you're still on Mongoose 6, please upgrade ๐
https://t.co/UhPcqUFF5D
Adding a new guide about using indexes in production to https://t.co/kIEWTZTy46
Covers:
- When to add indexes and when not to
- autoIndex in production
- syncIndexes in production
And a whole lot more.
Take a look and let us know what you think: https://t.co/kh1ji1h45X
Mongoose 8.24.6 released
๐ ๏ธ Compare dates by value in indexOf() so pull() removes them
๐ ๏ธ Preserve circular arrays when cloning with a seen map
https://t.co/ADGjwcziGo
Big news: Mongoose Studio v0.6.0 comes with a built-in MCP server.
Give agents access to MongoDB with RBAC, OAuth, query timeouts, and script review URLs.
Learn more ๐ https://t.co/4uKXqYdxqY
Mongoose 9.11.2 released
๐๏ธ Avoid applying saveSubdocs and sharding plugins to subdocuments
๐๏ธ Upgrade to [email protected] for mongoosejs/kareem#47
https://t.co/vZun2TlbVE
As part of the Cloudflare acquisition, Deno has announced that they will no longer support the Deno runtime
Because of this, Mongoose is considering dropping support for Deno in our next major release. If you have comments, please drop a note in this PR: https://t.co/Oy5FbcbLPa
Mongoose 9.11.1 released
๐ ๏ธ Call recursive toObject() when setting a path to a nested object
๐ ๏ธ Keep casting array filters after a path not in the schema
https://t.co/UAP3xvkcgV
@spyced Right now our heuristic is complexity/SLOC. PR with < 50 lines of non-test changes we review and check. These tend to be good.
But when we get a 1000+ line monster PR we ignore it unless there's a real bug, but we would typically just close the PR and fix the bug ourselves.
@yusukebe@usualoma Sad to see โน๏ธ
If you're looking for a project to contribute to, https://t.co/N4aRTQPxHY still welcomes PRs (with some guidelines)
Mongoose 9.11.0 released
๐ Use MongoDB Node.js driver 7.7.x
๐ Avoid double-calling validators on document arrays underneath nested paths - rewrite of internal _getPathsToValidate() logic for more consistency and slightly better perf
https://t.co/uekgJ36FQZ