The `neo4j-driver-bolt-connection` package provides the low-level implementation for establishing and managing connections to Neo4j databases using the binary Bolt Protocol. It is an internal dependency foundational to the official `neo4j-driver` and `neo4j-driver-lite` packages for JavaScript and TypeScript. Crucially, this package is explicitly *not* intended for direct consumption by end-users, serving as an abstraction layer for Bolt protocol specifics. The current stable version is 5.28.3, with version 6.0.x introducing new features like support for Neo4j's Vector type. Release cadence for the main `neo4j-driver` and its internal components, including this one, has evolved; post-6.0, minor releases occur as warranted by significant features or improvements, moving away from a monthly cadence to reduce user update overhead. Key differentiators include its role in abstracting complex network communication and Bolt handshake protocols, enabling the higher-level drivers to offer robust API usability, transaction management, and connection pooling capabilities transparently. While it handles the core communication, developers should always use the comprehensive `neo4j-driver` for a stable and supported experience.
npm install neo4j-driver-bolt-connectionVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to connect to a Neo4j database using the official `neo4j-driver` package, which internally relies on `neo4j-driver-bolt-connection`. It shows a basic query execution and proper resource management, emphasizing that direct usage of this internal package is discouraged.
Always use the main `neo4j-driver` or `neo4j-driver-lite` package instead. This internal package handles low-level Bolt protocol details transparently, which is encapsulated by the public drivers.
Update code that accesses `ServerInfo.protocolVersion` to correctly handle the new `ProtocolVersion` type. This change prevents issues if Bolt minor versions exceed 9. Ensure your application's logic adapts to this new type rather than assuming a primitive number.
Upgrade to `neo4j-driver` version 6.0.1 or higher to ensure correct TypeScript typings for `Vector` and `vectors` are available when working with the new vector features.
Upgrade to `neo4j-driver` version 5.28.3 or newer. This version includes a fix specifically addressing the SNI deprecation message when connecting directly to IP addresses.
This package is an internal dependency. Do not install or import it directly. Instead, ensure `neo4j-driver` (or `neo4j-driver-lite`) is correctly installed: `npm install neo4j-driver`.
Refactor code to handle the new `ProtocolVersion` type for `ServerInfo.protocolVersion` in `neo4j-driver` v6.0.0+. Consult the `neo4j-driver` v6 documentation for updated API details on `ServerInfo`.