Skip to content

Releases: spring-projects/spring-data-mongodb

4.4.0-M1

13 Sep 10:42
8785890
Compare
Choose a tag to compare
4.4.0-M1 Pre-release
Pre-release

📗 Links

⭐ New Features

  • Support @Update annotation on unit-returning suspend functions #4772
  • Align EnableMongoRepositories with changes in data-commons. #4756
  • Allow query projection methods .include() and .exclude() to accept Collection #4625
  • Support instantiation of Kotlin class with overridden read-only property #4485
  • Type-safe Kotlin update extension [DATAMONGO-2163] #3028

🐞 Bug Fixes

  • MongoRepository.findAll(Pageable) ignores Sort when using unpaged Pageable #4771
  • Issue referencing or using field value set with SetWindowFieldsOperation shift #4745
  • @Query with sort does not work in Native Image (Unexpected AOP exception) #4744
  • $all on _id leads to Exception if Collection with one element is passed #4736
  • Using records as @Unwrapped auditing objects fails with Cannot set property #4732
  • Aggregation with $unwind and $project causes IllegalArgumentException #4714
  • Converter called multiple times evaluating aggregation operation query methods #4712
  • Null-Values from custom converters are stored in document #4710
  • SpringDataMongodbQuery and SpringDataMongodbSerializer apply mapping twice #4709
  • Id conversion handling in QueryMapper.getMappedValue(…) doesn't consider nesting #4707
  • Criteria.regex is converted to String when applying to ID fields #4674
  • MongoExceptionTranslator hides WriteConflicts [DATAMONGO-2291] #3148

📔 Documentation

  • Bundle Javadoc with Antora documentation site #4754
  • Fix error code reference file #4729

🔨 Dependency Upgrades

  • Upgrade to MongoDB driver 5.1.4 #4780
  • Upgrade to MongoDB driver 5.1.3 #4767
  • Upgrade to Maven Wrapper 3.9.8 #4766
  • Upgrade to MongoDB 5.1.2 driver. #4741

❤️ Contributors

We'd like to thank all the contributors who worked on this release!

4.3.4

13 Sep 09:40
f5b11e1
Compare
Choose a tag to compare

📗 Links

⭐ New Features

  • Support @Update annotation on unit-returning suspend functions #4772

🐞 Bug Fixes

  • MongoRepository.findAll(Pageable) ignores Sort when using unpaged Pageable #4771
  • Issue referencing or using field value set with SetWindowFieldsOperation shift #4745
  • $all on _id leads to Exception if Collection with one element is passed #4736
  • Null-Values from custom converters are stored in document #4710

4.2.10

13 Sep 08:53
0b6970c
Compare
Choose a tag to compare

📗 Links

⭐ New Features

  • Support @Update annotation on unit-returning suspend functions #4772

🐞 Bug Fixes

  • MongoRepository.findAll(Pageable) ignores Sort when using unpaged Pageable #4771
  • Issue referencing or using field value set with SetWindowFieldsOperation shift #4745
  • Null-Values from custom converters are stored in document #4710

🔨 Dependency Upgrades

  • Upgrade to MongoDB driver 4.11.4 #4779

4.3.3

16 Aug 08:09
fd3e2e2
Compare
Choose a tag to compare

📗 Links

🐞 Bug Fixes

  • Default @Query(sort) not applied for repository queries using keyset pagination #4758
  • @Query with sort does not work in Native Image (Unexpected AOP exception) #4744

📔 Documentation

  • Bundle Javadoc with Antora documentation site #4754

🔨 Dependency Upgrades

  • Upgrade to Maven Wrapper 3.9.8 #4765

❤️ Contributors

We'd like to thank all the contributors who worked on this release!

4.2.9

16 Aug 07:01
7e69a6b
Compare
Choose a tag to compare

📗 Links

🐞 Bug Fixes

  • Default @Query(sort) not applied for repository queries using keyset pagination #4758
  • @Query with sort does not work in Native Image (Unexpected AOP exception) #4744

📔 Documentation

  • Bundle Javadoc with Antora documentation site #4754

🔨 Dependency Upgrades

  • Upgrade to MongoDB driver 4.11.3 #4768
  • Upgrade to Maven Wrapper 3.9.8 #4764

❤️ Contributors

We'd like to thank all the contributors who worked on this release!

4.3.2

12 Jul 17:12
1d674bc
Compare
Choose a tag to compare

📗 Links

🐞 Bug Fixes

  • Using records as @Unwrapped auditing objects fails with Cannot set property #4732

📔 Documentation

  • Fix error code reference file #4729

❤️ Contributors

We'd like to thank all the contributors who worked on this release!

4.2.8

12 Jul 11:36
604ee3b
Compare
Choose a tag to compare

📗 Links

🐞 Bug Fixes

  • Using records as @Unwrapped auditing objects fails with Cannot set property #4732

📔 Documentation

  • Fix error code reference file #4729

❤️ Contributors

We'd like to thank all the contributors who worked on this release!

4.3.1

14 Jun 08:48
9a4d7e5
Compare
Choose a tag to compare

📗 Links

🐞 Bug Fixes

  • Aggregation with $unwind and $project causes IllegalArgumentException #4714
  • Converter called multiple times evaluating aggregation operation query methods #4712
  • SpringDataMongodbQuery and SpringDataMongodbSerializer apply mapping twice #4709
  • Id conversion handling in QueryMapper.getMappedValue(…) doesn't consider nesting #4707
  • Criteria.regex is converted to String when applying to ID fields #4674

4.2.7

14 Jun 08:06
04ba69a
Compare
Choose a tag to compare

📗 Links

🐞 Bug Fixes

  • Aggregation with $unwind and $project causes IllegalArgumentException #4714
  • Converter called multiple times evaluating aggregation operation query methods #4712
  • SpringDataMongodbQuery and SpringDataMongodbSerializer apply mapping twice #4709
  • Criteria.regex is converted to String when applying to ID fields #4674

4.3.0

17 May 10:07
286404d
Compare
Choose a tag to compare

📗 Links

⭐ New Features

  • Add a debug information for sort fields when using findByQuery #4686
  • Align OffsetScrolling to zero-based indexes #4673
  • Aggregation allowDiskUse should not be false by default #4664
  • Add support for ValueExpression #4634
  • Make MongoHandlerContext public to leverage contextual information to customize Observations #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 not null #4698
  • Aggregation criteria match mapping fails with NullPointerException #4687
  • Incorrect Lock used in DefaultMessageListenerContainer #4665
  • Criteria.regex converted to String for @Field(targetType = FieldType.STRING) property #4649
  • AggregationOptions.maxTime ignored for MongoTemplate.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 MongoParameters and MongoParameter to 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
  • QueryMapper with annotations and does not properly applies PropertyValueConverter #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!