Planning to release Mongoose 9.9 this week, featuring some massive performance improvements to `toObject()`, `insertMany()`, and general change tracking.
Keep an eye out!
Mongoose 8.24.2 released
🛠️ Don't minimize empty document array elements to null
📓 Correct Model.validate() return type to Promise
github.com/Automattic/mongoo…
Mongoose 9.8.0 released
🌟 Add strictRead option to filter or throw on unknown fields during document hydration
🌟 Upgrade MongoDB Node.js driver to 7.5
github.com/Automattic/mongoo…
I did a quick write up on SSEs based on how Mongoose Studio uses SSEs to stream document results as soon as they're available, rather than waiting for a full page to load
thecodebarbarian.com/mongoos…
Mongoose 7.8.11 released
🛠️Allow merging single nested paths and document array paths outside of discriminator schema merges
github.com/Automattic/mongoo…
Mongoose 9.7.4 released
📓 Fix handling of nested objects typed as interfaces
📓 Correct `this` parameter handling for methods with `versionKey`
github.com/Automattic/mongoo…
Mongoose 9.7.3 released
🛠️ Correct Model.validate() return type to Promise
🛠️ Use @standard-schema/spec for StandardSchema types rather than inlining
github.com/Automattic/mongoo…
Mongoose 9.7 now integrates seamlessly with @sentry tracing.
OpenTelemetry for your Mongoose app is now as easy as `sentry.startSpan()`
Thanks @logaretm 🙌
Mongoose 8.24.1 released
🛠️ Reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path
github.com/Automattic/mongoo…
Mongoose 9.7.2 released
🛠️ Reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path
github.com/Automattic/mongoo…
Mongoose 9.7.1 released
🌟 Improve save performance by avoiding unnecessary promise allocations and reducing path/default/dirty-state overhead
🛠️ Include ObjectId regex pattern in toJSONSchema() output
github.com/Automattic/mongoo…
Mongoose 9.7.0 released
🌟 Add Node.js TracingChannel support for APM instrumentation
🌟 Add standard schema adapter for models
github.com/Automattic/mongoo…
Mongoose 8.24.0 released
🌟 Add pipelineForUnionWith() helper to allow reusing pipelines with $unionWith in TypeScript
📓 Handle compiling with exactOptionalPropertyTypes
Full changelog: github.com/Automattic/mongoo…