Skip to content

4.2.0

Compare
Choose a tag to compare
@mp911de mp911de released this 17 Nov 13:38
· 152 commits to main since this release
bae0d91

📗 Links

⭐ New Features

  • Add support for $percentile aggregation expression #4473
  • Add support for $median aggregation expression #4472
  • Allow field names and map keys with dot (.) #4464
  • Add support for replaceOne operation #4463
  • Add suport for replaceOne operation #4462
  • Support Limit parameter in query methods #4397
  • Allow setting ReadPreference at a Repository and Query level [DATAMONGO-2103] #2971
  • Provide an optional way to convert from BsonUndefined to null [DATAMONGO-1439] #2350
  • Support provided GridFSBucket in GridFsTemplate #1627

🐞 Bug Fixes

  • Repository query projection not working as expected since 3.4.x #4524
  • ReactiveMongoTemplate does not return ChangeStreamEvents with PreImages #4495
  • Correctly read unwrapped properties during constructor creation #4492
  • Unwrapped fields cannot be resolved in the constructor #4491
  • Constructor creation using @DocumentReference SpEL referring to self in fails #4484
  • Class cast exception obtaining Observation context on abortTransaction completion #4481
  • Fix schema generation for encrypted fields that are considered domain entities. #4455
  • Schema creator may miss encryption on entity field. #4454
  • @Field annotation not honoured after $unwind stage in aggregation #4443
  • ClassCastException when reading (decrypting) using @ExplicitEncrypted on custom type instead of simple type #4432
  • Update path not correctly mapped when last segment is multi digit number #4426
  • Keyset positionFunction does not retain directional state #4413
  • InIgnoreCase queries match on substrings #4404
  • Filter doesn't support expression as input #4394
  • Date saved incorrectly with java.time codecs enabled #4390
  • Reduce aggregation operation doesn't allow using Variable.VALUE and Variable.THIS with strict mapping #4070
  • $slice access to @DBRef field throw exception [DATAMONGO-1272] #2191

📔 Documentation

  • findAndReplace does not generate Version when null #4536
  • Migrate documentation to Antora. #4497
  • Incorrect code snippet for change streams documentation #4376
  • Please correct instructions on how to test and build spring-data-mongodb locally #4372
  • LocalDate properties depend on the machine's timezone setting [DATAMONGO-2627] #3482

🔨 Dependency Upgrades

  • Upgrade to MongoDB driver 4.11.1 #4551
  • Upgrade to MongoDB Driver 4.11.0 #4527
  • Upgrade to Maven Wrapper 3.9.5 #4520
  • Upgrade to OpenWebBeans 4.0 #4518
  • Upgrade to Maven Wrapper 3.9.4 #4470
  • Upgrade to MongoDB driver 4.10.2 #4445
  • Upgrade to MongoDB driver 4.10.1 #4441
  • Upgrade mongodb-crypt to 1.8.0 #4440
  • Upgrade to Maven Wrapper 3.9.3 #4436
  • Upgrade to Maven Wrapper 3.9.2 #4410

❤️ Contributors

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