Releases: mongodb/mongo-java-driver
Java Driver 5.3.1 (January 23, 2025)
What's Changed
- Fixing default module name for
kotlin-extensions
(Backport #1602 to 5.3.x by @nhachicha in #1604)
Full Changelog: r5.3.0...r5.3.1
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.3/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 5.3.0 (January 10, 2025)
Important
A future minor release will raise the minimum supported MongoDB Server version from 4.0 to 4.2. This is in accordance with MongoDB Software Lifecycle Schedules. Support for MongoDB Server 4.0 will be dropped in a future release!
What's Changed
- Make
CAPI
,jna.Native
/Structure
initializable at run time by @stIncMale in #1553 - Clean up unified tests via skipping API by @katcharov in #1551
- Sync BSON specification tests by @jyemin in #1555
- Sync server selection specification tests by @jyemin in #1554
- Update
pool-checkout-returned-connection-maxConnecting.json
to work with different pool implementations by @stIncMale in #1563 - Fix static checker warnings in
AggregatesSpecification.groovy
by @stIncMale in #1564 - Change branch name to main in SSDLC script. by @vbabanin in #1552
- Add flaky annotation to flaky tests by @katcharov in #1558
- Move most skips to single file, expand API to handle conditions by @katcharov in #1557
- Update cursors to refresh
timeoutMS
onclose
without affecting the timeout of the operation by @stIncMale in #1527 - Add AsyncTransportSettings, ExecutorService by @katcharov in #1489
- Add
@SuppressWarnings("try")
toCommandBatchCursorTest
,AsyncCommandBatchCursorTest
by @stIncMale in #1567 - Clean up TestDef API, clarify naming by @katcharov in #1566
- Merging feature branch (Kotlin extensions) into main by @nhachicha in #1572
- Stop using the
kotlinCheck
Gradle task fromssdlc-report.sh
by @stIncMale in #1574 - Remove explicit fairness from
DefaultConnectionPool
by @stIncMale in #1575 - Make sure
TestDef
is created and used only when there is enough data to do that by @stIncMale in #1578 - Connections must not be closed when timeoutMS expires before sending a request by @stIncMale in #1573
- Remove deprecated field from GridFS unified tests by @joykim1005 in #1577
- Add index hint support for distinct command by @joykim1005 in #1581
- Provide the reason for the test skips. by @vbabanin in #1584
- Rename Vector class names. by @vbabanin in #1595
- Allow updateOne and replaceOne to supply sort option by @joykim1005 in #1585
- Mark PackedBitVector as Beta, aligning with binary quantization preview by @vbabanin in #1594
- Improved Bulk Write API by @stIncMale in #1509
- Resolve unintended sync test skipping. by @vbabanin in #1600
New Contributors
- @joykim1005 made their first contribution in #1577
Full Changelog: r5.3.0-beta0...r5.3.0
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.3/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 5.2.1 (November 06, 2024)
What's Changed
- Exclude
com.oracle.svm.core.annotate
fromImport-Package
for OSGi by @stIncMale in #1520 - Make CAPI, jna.Native/Structure initializable at run time (#1553) by @stIncMale in #1556
- Ensure
kotlinx.datetime.LocalTime
exists before adding the serializer (Backport #1530 by @katcharov in #1559)
Full Changelog: r5.2.0...r5.2.1
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.2/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 4.11.5 (November 06, 2024)
Java Driver 5.3.0-beta0 (October 31, 2024)
What's Changed
- Sync client-side-encryption legacy specification tests by @jyemin in #1511
- Update branch name from master to main in GH action workflow by @jyemin in #1516
- Exclude
com.oracle.svm.core.annotate
fromImport-Package
for OSGi by @stIncMale in #1518 - Enable tests that require failCommand with appName on initial handshake before 4.9 by @NathanQingyangXu in #1519
- Add BSON binary subtype 8 by @NathanQingyangXu in #1524
- Fix Evergreen config file error by @jyemin in #1523
- Sync valid-pass/valid-fail tests from unified test specification by @jyemin in #1517
- Work around gradle issue and optionally include graalvm project by @rozza in #1522
- Fix pom scope for Scala projects by @rozza in #1531
- Run more tests concurrently in CI by @jyemin in #1514
- Ensure kotlinx.datetime.LocalTime exists before adding the serializer by @rozza in #1530
- Bump Scala patch versions by @rozza in #1535
- Allow valid SRV hostnames with less than 3 parts by @NathanQingyangXu in #1525
- Sync unified server discovery and monitoring tests by @jyemin in #1536
- Sync up load balancer specs by @NathanQingyangXu in #1542
- Sync up command logging specs by @NathanQingyangXu in #1537
- Sync up transaction-convenient-api specs by @NathanQingyangXu in #1544
- Sync up session specs by @NathanQingyangXu in #1547
- Sync up index-management specs by @NathanQingyangXu in #1545
- Sync retryable reads and writes unified tests by @katcharov in #1541
- Add BSON Binary Subtype 9 support for vector storage and retrieval. by @vbabanin in #1528
- Sync up transaction specs by @NathanQingyangXu in #1539
- Sync CRUD unified tests by @nhachicha in #1543
- Sync up command monitoring specs by @NathanQingyangXu in #1538
- Add support for vector search with BSON Vector by @vbabanin in #1549
- Sync up collection-management specs by @NathanQingyangXu in #1546
- Sync unified change-streams tests by @katcharov in #1550
Full Changelog: r5.2.0...r5.3.0-beta0
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.2/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver v5.2.0 (September 24, 2024)
What's Changed
Full Changelog: r5.1.0...r5.2.0
New Features
- Support for MongoDB 8.0 by @jyemin in #1385 and #1442
- Link to Evergreen build and to security testing summary in SSDLC report by @stIncMale in #1426
- Add Queryable Encryption V2 support by @vbabanin in #1445
- Add 'type' field support for Search Index creation. by @vbabanin in #1438
- Support Range Indexes as GA by @vbabanin in #1465
- Support exact search within $vectorSearch by @vbabanin in #1473
- Support for kotlinx-datetime serializers mapping to BSON by @vbabanin in #1462
- Provide GraalVM metadata and substitutions by @stIncMale in #1357
- [Alpha] Client Side Operations Timeout by @katcharov in #1215
Improvements
- Enhance KotlinSerializer with value codecs for widening primitive conversion. by @vbabanin in #1301
- Extend Socks5 Top-Level Domain regex validation to support up to 63 characters by @vbabanin in #1427
- Performance improvements for GridFS by @vbabanin in #1402
- Direct retries to another mongos if one is available by @stIncMale in #1367
- Improve
SecureRandom
usage inObjectId
by @stIncMale in #1394 - Augment
config/spotbugs/exclude.xml
with finding status and rank by @stIncMale in #1392 - Create and upload
ssdlc_compliance_report.md
by @stIncMale in #1405 - Disallow comma character in authMechanismProperties by @katcharov in #1408
- Forward slash in connection string is optional by @jyemin in #1420 and #1421
- Add GitHub Actions based release automation by @alcaeus in #1400 and #1437 and #1425
- Use Java Cryptographic Architecture provider for implementation of PBKDF2 by @jyemin in #1448
- Update Kotlin metadata to include Kotlin language version by @rozza in #1461
- Added Bson-Kotlin Array Codec by @rozza in #1457
- Added kotlinx.json JsonElement serialization support by @rozza in #1459
Bug Fixes
- Revert making BsonEncoder / BsonDecoder internal by @rozza in #1510
- Remove host and port from IllegalArgumentException thrown by malformed connection string by @rozza in #1467
- Allow generic base classes for POJOs by @jyemin in #1423
- Fix to identify and match type arguments, including optional generic types in DataClassCodec#getCodec by @ht-jo in #1339
- Fix OSGi
:mongodb-crypt
manifest entries by @stIncMale in #1506 - Fix
scaladoc
warnings by @stIncMale in #1507 - Fix
:mongodb-crypt
GraalVM metadata by @stIncMale in #1508 - Fix release workflow by @alcaeus in #1422
- Fix encoding nullable generics by @cliffred in #1317
- Fix
CursorResourceManager.close
by @stIncMale in #1440 - Fix bson-kotlinx
encodeNullableSerializableValue
null handling by @rozza in #1453 - Ensure Sink.contextView is propagated by @rozza in #1450
- Ensure exception propagation in async try-catch block. by @vbabanin in #1466
- MixedBulkWriteOperation should generate inserted document IDs at most once per batch by @stIncMale in #1482
- Fix exception propagation in Async API methods by @vbabanin in #1479
Other Notable Changes and Upgrades
- Remove support for MongoDB 3.6 by @jyemin in #1375
- Upgrade to logback-classic 1.3.14 by @jyemin in #1399
- Upgrade to Spotbugs 6.0.15 by @jyemin in #1398
- Migrate
com.mongodb.client.unified.UnifiedTest
and all its descendants to JUnit 5 by @stIncMale in #1410 - Integrate mongodb-crypt module by @vbabanin in #1487
- Set maxTimeMS explicitly for commands being explained by @vbabanin in #1497
- Move mongodb-crypt classes to internal package by @jyemin in #1500
New Contributors
- @alcaeus made their first contribution in #1400
- @cliffred made their first contribution in #1317
- @ht-jo made their first contribution in #1339
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.2/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 4.11.4 (September 05, 2024)
What's Changed
- MixedBulkWriteOperation should generate inserted document IDs at most once per batch by @stIncMale in #1484
- JAVA-5479 backport by @jyemin in #1490
- Fix
QueryBatchCursor.ResourceManager.close
(#1440) by @stIncMale in #1491
Full Changelog: r4.11.3...r4.11.4
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.1/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 5.1.4 (September 03, 2024)
What's Changed
- MixedBulkWriteOperation should generate inserted document IDs at most once per batch by @stIncMale in #1483
- [Backport] Fix exception propagation in Async API methods by @vbabanin in #1485
- Fix getCodec of matching type argument bug by @rozza in #1452
- Fix bson-kotlinx encodeNullableSerializableValue null handling by @rozza in #1453
Full Changelog: r5.1.3...r5.1.4
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.1/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 5.1.3 (August 08, 2024)
What's Changed
- Fix
CursorResourceManager.close
(#1440) by @stIncMale in #1446 - Enhance KotlinSerializer with value codecs for widening primitive conversion. by @vbabanin in #1471
Full Changelog: r5.1.2...r5.1.3
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.1/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8
Java Driver 5.1.2 (July 09, 2024)
What's Changed
- Allow generic base classes for POJOs by @jyemin and @rozza in #1423
- Support encoding Kotlin classes with nullable parameter types by @cliffred and @rozza in #1317
- Include links to the Evergreen build and to the driver security testing summary in the SSDLC report (#1426) by @stIncMale in #1432
- Extend SOCKS5 TLD regex validation to support up to 63 characters by @vbabanin in #1429
- Fix for: Include links to the Evergreen build and to the driver security testing summary in the SSDLC report by @stIncMale in #1436
- Attribute release commit and tag to user triggering the workflow (#1437) by @alcaeus in #1443
- Support pre-releases in release tooling (#1425) by @alcaeus in #1444
Full Changelog: r5.1.1...r5.1.2
Verifying artifact signatures
Please refer to https://www.mongodb.com/docs/drivers/java/sync/v5.1/validate-signatures/ for the full procedure.
To download and import the public key for verifying signatures, execute
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 1a75005e142192223d6a7c3b76e0008d166740a8