npm neo4j-driver 6.0.0

8 hours ago

This is GA release for the 6.0 with all the new features and general improvements in the previous alpha. Along with the introduction of the UnknownType object and the preview feature of Record Object Mapping, allowing validation and mapping of query results.

❗ Breaking Changes


  • protocolVersion on ServerInfo has been changed from a Number to new type ProtocolVersion. The Number representation would break if Bolt ever had a minor version greater than 9. #1321

⭐ New Features


  • Add .containsGqlCause() and .findByGqlStatus() to Neo4jError and GQLError, allowing easier inspection of cause chains. #1314
  • Introduce the UnsupportedType class. This class will be returned if the server is asked to send a value of a type which the current driver version cannot parse. This ensures better backwards compatibility for future type intoductions. #1325

⭐ ⚠️ Preview Features


  • Introduce type validation and mapping to Record, Result and Graph types. A manual entry on this feature will be published in the future. #1248

❌ Removals


  • Deprecated functions .readTransaction() and .writeTransaction() have been removed from Session. Please use .executeRead() and .executeWrite() instead. #1312
  • Deprecated function .lastBookmark() has been removed from Session. Please use .lastBookmarks() instead. #1316
  • Return value of .verifyConnectivity() on Driver has been changed from ServerInfo to void. Please use .getServerInfo() if needed. #1317
  • Deprecated property .updateStatistics has been removed from ResultSummary. Please use .counters instead. #1342

👎 Deprecations


  • isRetriableError and the property retriable on Neo4jError has been deprecated, please use isRetryable and retryable instead. #1305
  • Deprecated notificationCategory and notificationFilterDisabledCategory. use notificationClassification and notificationFilterDisabledClassification instead. #1326 #1344

🔧 Fixes


  • Fixed an issue in error handling which caused crashes on some unexpected errors in connections. #1329
  • Move the queuing of channel observer to after message packing is finished. Simplifies the handling of errors during packing so that they surface to the user faster. #1334

👏🏼 Improvements


  • Unify the Vector type .toString() function with the other official neo4j drivers. #1327
  • Improve the Vector type constructor errors when passed incorrect types. #1338 #1343

🧹 Housekeeping


  • Remove notice of change in 6.0 from .fromStandardDate() on Neo4j.Date #1318
  • Remove unused knownHost from Config interface. #1335

📦 Dependency Management


  • Bump used TypeScript version to 5.9.2. #1288
  • Bump rxjs dependency to 7.8.2 #1332

Don't miss a new neo4j-driver release

NewReleases is sending notifications on new releases.