Upgrade from older versions
This page contains the list of new features and breaking changes of the driver from version 4.4 to 5.x. For a full list of changes, see the Driver → Changelog.
The latest driver version of the 5.x series (5.27) is compatible with Neo4j server both 4.4 and 5.x, so you can upgrade the driver before you upgrade the server. At the same time, the driver version 4.4 is forward compatible with Neo4j server 5.x, so you could also upgrade the server before the driver; however, given that it’s easier to roll back an application upgrade than a server upgrade, it’s recommended to start with the driver.
When upgrading the Neo4j server to a newer version, the Cypher queries in your application may also need updating. See Cypher → Deprecations, additions, and compatibility. |
New features
Run transactions with less knowledge of driver’s internalsThe new method The new method |
Packaging changesThe A new The |
New reactive sessionsNew For more information, see Control results flow with reactive streams. |
Re-authenticationAllows for rotating authentication tokens as well as session-scoped and query-scoped authentication. |
Mutual TLS (mTLS) as second authentication factor (2FA)Allows for configuring client side TLS certificates to authenticate against the server. See Mutual TLS. |
|
Notification filtering APIFiltering allows to receive only a subset of notifications from the server, and to improve performance server-side. For more information, see Explore the query execution summary → Filter notifications. |
GQL statuses and errorsThe property Interface For more information, see Explore the query execution summary → Notifications. |
TelemetryThe driver sends anonymous API usage statistics to the server.
Use the driver configuration See API Telemetry. |
Breaking changes and deprecations
Deprecated features are likely to be removed in version 6.
Version | Message | Status |
---|---|---|
5.0 |
Baseline Java version 17. |
Changed |
5.0 |
|
Removed |
5.0 |
|
Removed |
5.0 |
|
Removed |
5.0 |
|
Removed |
5.0 |
|
Deprecated |
5.0 |
|
Deprecated |
5.0 |
|
Deprecated |
5.0 |
|
Deprecated |
5.0 |
|
Deprecated |
5.0 |
Reactive sessions — Interface |
Deprecated |
5.7 |
|
Deprecated |