mongoose-lean-getters v2.2.2 released
🛠️ Don't apply getters if defaultLeanOptions is set but lean is false
🛠️ Apply single nested subdoc getter results
github.com/mongoosejs/mongoo…
ICYMI, `split()` in JavaScript is fairly slow
It is significantly faster to check whether the string you want to split by exists before calling split() 🏎️🏎️🏎️
jsbenchmark.com/#eyJjYXNlcyI…
Tour of Polar – a hands-on, interactive learning experience for Oso's authz modeled after “Tour of Go”
19 guided explorations covering RBAC, ReBAC, and ABAC, where you'll
1⃣ Build policies with Polar (Oso's DSL)
2⃣ Edit facts directly
3⃣ See how decisions are made in real time
Want to see how RBAC, ReBAC & ABAC really work? Try A Tour of Polar! It's a hands-on, point-and-click guide to writing and testing authorization policies with Oso. Learn by doing. No setup needed. osohq.com/post/a-tour-of-pol…
🚀 Help shape the future of Node.js!
If you're a contributor or maintainer, the Next 10 Survey is your chance to make your voice heard. 🗳️ Take the survey + make a difference: hubs.la/Q03kxXQj0
Mongoose 8.14.1 released
🛠️ Correct change tracking with maps of arrays of primitives and maps of maps
🛠️ Consistently convert Buffer representation of UUID to hex string to avoid confusing populate assignment
github.com/Automattic/mongoo…
Want to see how RBAC, ReBAC & ABAC really work? Try A Tour of Polar! It's a hands-on, point-and-click guide to writing and testing authorization policies with Oso. Learn by doing. No setup needed. osohq.com/post/a-tour-of-pol…
I always loved how simple Mongoose's debug mode is. There's more sophisticated configs available, but "just print what's happening to the console" is so easy to configure.
No need to modify it in connection options or anything, just set on Mongoose global and done
Mongoose 8.13.3 released
🛠️ Export MongooseBulkSaveIncompleteError
🛠️ Clone POJOs and arrays when casting query filter to avoid mutating objects
github.com/Automattic/mongoo…