Releases: neo4j/neo4j-java-driver
5.8.0
This release introduces a new preview feature called AuthToken rotation and session auth support. See a dedicated discussion for more details.
In addition, the following APIs have been moved out of the preview status to GA:
- Bookmark Manager API
- Driver Level Queries API
⭐ New Features
- Introduce AuthToken rotation and session auth support #1380 #1409
- Make Bookmark Manager API GA #1408
- Make Driver Level Queries API GA #1407
👏 Improvements
- Include NotificationConfig on BEGIN message for bolt scheme #1404
- Update version to 5.8-SNAPSHOT #1403
- Fix build warnings #1418
✅ Testkit
- Allow null access mode in Testkit NewSession #1405
- Introduce Testkit backend logging level support #1406
- Update Teskit Dockerfile #1412
🔧 Dependency Management
- Update dependencies #1417
5.7.0
The main feature of the new release is an ability to specify notifications configuration.
It is now possible to configure a minimum notification severity level and/or a set of disabled notification categories to manage notifications supplied by the server both on the driver level and on the session level. It is also possible to disable all notifications.
For more details on this feature, please see the #1396 update and the API documentation.
The org.neo4j.driver:neo4j-java-driver-all
artifact includes an explicit module declaration for Java Platform Module System (JMPS).
⭐ New Features
- Introduce notification configuration, severity and category #1396
👏 Improvements
- Introduce a preview feature status #1400
- Seal AuthToken interface #1389
- Export org.neo4j.driver.exceptions.value #1395
- Align driver with latest revision of
ExecuteQuery
ADR #1377 - Use moditect plugin to re-add
module-info
after it has been nuked by the shade plugin #1348 - Make the shaded artifact compile as a module #1388
- Update Maven SCM data #1384
- Update version to 5.7-SNAPSHOT #1386
- Update TemporalUtil.EXCLUDED_ZONE_IDS for testing #1392
- Add temporary internal only reset capability #1394
- [Internal] Allow interrupt for already interrupted transaction #1397
✅ Testkit
- Fix skipped test name #1391
- Remove whitelisted Testkit server configs #1399
- TestKit: skip bolt handshake timeout tests #1398
🔧 Dependency Management
- Update dependencies #1402
5.6.0
This is a planned minor update release that includes several general improvements.
👏 Improvements
- Unmark TypeSystem as experimental #1376
- Update internal driver clock usage #1375
- Rename Driver.queryBookmarkManager() to Driver.queryTaskBookmarkManager() #1373
- Update clirr configuration to check against previous version #1381
- Improve Javadoc #1382
- Update version to 5.5-SNAPSHOT #1370
🔧 Dependency Management
- Update dependencies #1383
5.5.0
The main feature of this release is a new experimental API that offers a convenient query execution option within a managed transaction with automatic retries on errors eligible for retrying.
Sample usage:
var eagerResult = driver.queryTask("CREATE (n{field: $value}) RETURN n")
.withParameters(Map.of("value", "5"))
.execute();
In addition, it is also possible to provide a java.util.stream.Collector
implementation to collect Record
s to a desired final value:
var result = driver.queryTask("UNWIND range(0, 5) as N RETURN N")
.execute(Collectors.mapping(record -> record.get("N").asLong(), Collectors.toList()));
See the QueryTask
documentation for more details.
If you would like to share your feedback on this new API, please see the following discussion.
⭐ New Features
👏 Improvements
- Stop printing stacktrace in GraphDatabaseTest #1364
🔧 Dependency Management
- Update dependencies #1368
5.4.0
5.3.1
This is a mainly an internal refinement release that brings several improvements and dependency updates.
👏 Improvements
- Release connection on reactive beginTransaction cancellation #1341
- Exclude test code in snyk code analysis #1344
- Allow supplying a Rediscovery implementation #1350
- Update Testkit tests Docker setup #1351
- Make more error codes fail fast during the rediscovery #1354
- Add 2 access options to Config and refactor DriverFactory #1356
- Update maven-bundle-plugin to 5.1.8 #1357
✅ Testkit
- TestKit backend: except txMeta as Cypher types #1349
🔧 Dependency Management
- Update dependencies #1358
4.3.8
4.4.11
This is a refinement release that updates the netty dependency to address security vulnerabilities.
🔧 Dependency Management
- Update netty dependency to address CVE-2022-41881 and CVE-2022-41915. #1352
4.4.10
This is a refinement release that brings several general improvements and dependency updates.
👏 Improvements
- Release connection on reactive beginTransaction cancellation #1342
- Deprecate RevocationStrategy and introduce RevocationCheckingStrategy #1282
- Migrate to using Testcontainers #1333
🔧 Dependency Management
5.3.0
This is a refinement release that brings several improvements and dependency updates.
The BookmarkManager
API has been simplified by removing the need of specifying the database.
Please also see the NODES 2022 session recording that goes over the version 5 updates.
👏 Improvements
- Update Bookmark Manager for no longer tracking per database #1335
- Update SessionConfig.withDatabase documentation #1334 #1336 #1337
- Fix shouldGetSystemUpdates test #1338
- Update to 5.2-SNAPSHOT #1329
🔧 Dependency Management
- Update dependencies #1339