Skip to content

4.0 changelog

Martin edited this page Feb 20, 2020 · 38 revisions

4.0.0a1

  • Support for Bolt Protocol 3.0

  • Support for Bolt Protocol 4.0 (Connection Layer Only)

  • Added a Bookmark class

  • Bookmarks are changed from a String to Bookmark object.

  • Added driver.verify_connectivity() method.

  • Exceptions Changes:

    • Removed ConnectionExpired
    • Renamed neo4j.exceptions.CypherError to neo4j.exceptions.Neo4jError
    • Introduced Driver API class hierarchy with Neo4jError and DriverError
    • (Internal API) Introduced Connection API class hierarchy with BoltError (Please raise an issue on github if these surface to the user.)
    • Improved connection failure error message information.
    • Connecting to unsupported Bolt Protocol will raise an error explaining the supported versions available for the driver.
  • Removed transaction.success flag

    The pattern is no longer valid for a transaction object, tx:

    tx = begin()
    # DO STUFF
    tx.success = True
    tx.close()
    

    Use the pattern instead:

    tx = begin()
    # DO STUFF
    tx.commit()
    
Clone this wiki locally