9.1.0
·
750 commits
to master
since this release
9.1.0 / 2025-12-29
- feat(model): make pathsToSave handle saving just a subpath of a modified path #15896
- feat(document+model): pass options to pre('deleteOne') and update+options to pre('updateOne') hooks #15908 #15870
- feat(versioning): optimistic concurrency exclude option, update docs for optimisticConcurrency options #15917 #15915 #15912 AbdelrahmanHafez
- feat(document): add support for getAtomics() to allow custom container types to utilize atomics #15817
- perf: optimize Object.keys() checks and optional chaining #15865 AbdelrahmanHafez
- fix: add support for typescript style enums #15914 #15913 mjfwebb
- fix(document): when cloning a doc with subdocs, make sure the subdocs parent is the cloned doc #15904 #15901
- types(models): support Mongoose query casting in AnyBulkWriteOperation filter property #15918 #15910
- types: allow calling create() with TRawDocType for better generics support #15903 #15902
- types(document): add id virtual getter by default to HydrateDocument<> if TOverrides is Record<string, never> #15906 #15900
- docs(schema): add lean to list of schema options #15907 #15894 #12081