Please note that this is a pre-release and not recommended for production use **yet**. Please report any issues you find on GitHub!
github.com/Automattic/mongoo…
Mongoose 6.0.0-rc0 released:
⭐️ Uses MongoDB Node driver 4.0 for @mongodb 5.0 support
⭐️ Arrays are now proxies for better change tracking
⭐️ asPromise() method for connections
⭐️ No more deprecation warnings 😀
github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
Mongoose 5.13.3 released:
🛠️ Avoid throwing error when bulkSave() called on a document with no changes
🛠️ Apply timestamps when creating new subdocs with $addToSet and with positional operator
Full changelog: github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
Mongoose 5.13 released:
🌟 Add sanitizeProjection option to opt in to automatically sanitizing untrusted query projections
🌟 Add bulkSave() function that saves multiple docs in 1 bulkWrite()
Full changelog: github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
Mongoose 5.12.15 released:
🛠️ Add extra TInstanceMethods generic param to `Schema` for cases when we can't infer from Model
🛠️ Added typings for near() in model aggregation
Full changelog: github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
We've had a lot of users run into issues with type inference using generics.
Even though T extends User, T doesn't necessarily have a `name` property that's a string 😞. Anyone have ideas on how to work around this?
#TypeScript#NodeJS
Mongoose 5.13 is coming!
One of the new features is a `sanitizeProjection` option that tells Mongoose to clean up potentially untrusted query projections.
More about the `select()` method: mongoosejs.com/docs/api/quer…#NodeJS#MongoDB#javascript
Mongoose 5.12.14 released:
🔧 Check that schema type is an object when setting isUnderneathDocArray
🔧 Avoid infinite recursion when setting single nested subdoc to array
Full changelog: github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
We've been hard at work improving the performance of Mongoose arrays.
Neat takeaway: it's much faster to call `push()` once with multiple values than calling `push()` multiple times with 1 value. Shaves off 20% in our nested array benchmark.
#nodejs#mongodb#javascript
Mongoose 5.12.11 released:
🛠️ Skip applying setters when casting arrays for populate() to avoid issues with arrays of immutable elements
🏎️ Avoid cloning setters every time we run setters
github.com/Automattic/mongoo…#nodejs#mongodb#javascript
It's official, Mongoose docs search is now running on Azure Functions.
Yes, it is running on Windows. No, I would not have believed you if you told me in 2017 that I'd be running prod apps on Windows in 2021.
#javascript#DevCommunity#100DaysOfCode