Java Driver 5.0.0 (Mar 1, 2024)
The MongoDB JVM team is pleased to announce version 5.0.0 of the MongoDB Java Driver!
Release announcement: https://www.mongodb.com/community/forums/t/mongodb-java-driver-5-0-is-released/268913
What's Changed
- [JAVA-5203] Support stored nulls for non-primitive fields in Java records by @bulbfreeman in #1223
- Add explicit automatic module name configuration. by @vbabanin in #1232
- Update logger name to align with naming conventions. by @vbabanin in #1233
- Enable container and Kubernetes awareness for improved telemetry. by @vbabanin in #1235
- Update DatabaseTestCase to Junit 5 by @rozza in #1238
- Preserve error code, code name, and error labels when redacting command monitoring/logging by @stIncMale in #1225
- Add server selection log messages by @stIncMale in #1221
- Remove write and read concern from Atlas Search Index commands. by @vbabanin in #1241
- BatchCursor refactorings by @rozza in #1246
- Merge 5.0 breaking changes into the main line of development by @jyemin in #1268
ClusterSettings
does not computeClusterConnectionMode
consistently by @stIncMale in #1273- Install legacy shell by @jyemin in #1272
- Pull mongohouse image from ADL ECR repo by @jyemin in #1274
- Remove deprecated methods in WriteConcernError class by @jyemin in #1275
- Support
authorizedCollections
option forlistCollections
helpers by @stIncMale in #1270 - Improve BsonNumber support for Decimal128 by @jyemin in #1283
- Accept
long
instead ofint
inSocketSettings.Builder.connectTimeout
/readTimeout
by @stIncMale in #1279 - Remove
Filters.eqFull
by @stIncMale in #1292 - Don't gossip cluster time from monitoring connections by @jyemin in #1276
- Expose
Observable[Unit]
instead ofObservable[Void]
by @stIncMale in #1282 - Make
ConnectionId.serverValue
/localValue
of theLong
/long
type by @stIncMale in #1280 - Account the time to deliver connection pool events as part of the reported duration by @stIncMale in #1290
- Fix
onErrorDropped
logged message (#1281) by @rozza in #1291 - Reclaim native memory quicker when using ZlibCompressor by @raelg in #1285
- Handle kotlin / JVM erasure of types by @rozza in #1295
- Simplify customization of bson-kotlinx by @rozza in #1293
- Refactor FaaS support in ClientMetadataHelper by @jyemin in #1300
- Do minor improvements to method docs in
ClusterSettings
by @stIncMale in #1304 - Add async API (2) by @katcharov in #1258
- Update Atlas search spec tests by @jyemin in #1315
- JAVA-5311 (take two) by @jyemin in #1314
New Contributors
- @bulbfreeman made their first contribution in #1223
- @raelg made their first contribution in #1285
Full Changelog: r4.11.0...r5.0.0