4.3.0
📗 Links
⭐ New Features
- Add a debug information for sort fields when using findByQuery #4686
- Align OffsetScrolling to zero-based indexes #4673
- Aggregation
allowDiskUseshould not befalseby default #4664 - Add support for ValueExpression #4634
- Make
MongoHandlerContextpublic to leverage contextual information to customizeObservations #4622 - Ensure compatibility with MongoDB Driver 5.x #4578
- Customize observation spans #4321
- Declarative way for setting MongoDB transaction options #1628
🐞 Bug Fixes
MongoTemplate.indexOps(collectionName, type)ignores collectionName when type is notnull#4698- Aggregation criteria match mapping fails with
NullPointerException#4687 - Incorrect Lock used in DefaultMessageListenerContainer #4665
Criteria.regexconverted toStringfor@Field(targetType = FieldType.STRING)property #4649AggregationOptions.maxTimeignored forMongoTemplate.aggregateStream()#4644- DTO projections read properties twice #4626
- Shard key not honored in ReferenceLookupDelegate when DocumentReference resolves to a empty collection #4612
- Nested Interface-based projection fails with
ConverterNotFoundException#4609 - Query instances with the same limit are not equal anymore #4584
- Adopt
MongoParametersandMongoParameterto reflect the actual parameter type when using generics #4579 - Query from method name has map entries in wrong order. #4577
- NullPointerException thrown for Updates with Maps that contain null values #4567
- Fixed the URL for the Spring Data Commons documentation #4563
QueryMapperwith annotations and does not properly appliesPropertyValueConverter#4510- String to ObjectId mapping error when using query method #4490
📔 Documentation
- Doc improvements #4694
- Update mongo-encryption.adoc #4638
- Reinstate Compatibility Matrix in reference docs #4623
- Fix typo in Javadoc #4620
- Docs for IndexOperations.resetIndexCache() should be removed #4587
- Reference docs of Mapping Configuration overflows Java/XML config snippets #4575
- Behavior breaking change deserializing property with null value #4571
🔨 Dependency Upgrades
- Upgrade to MongoDB 5.0.1 driver #4680
- Upgrade to MongoDB 5.0 driver #4663
- Upgrade to Maven Wrapper 3.9.6 #4592
❤️ Contributors
We'd like to thank all the contributors who worked on this release!