Skip to content

checkpointsqlite==1.0.4

Choose a tag to compare

@github-actions github-actions released this 23 Sep 22:16
659d127

langgraph-checkpoint-sqlite 1.0.4

Summary of Changes

  • Improved version ID generation by replacing MD5 hashing with random numbers, enhancing performance (#1685)
  • Enhanced database write operations with conditional INSERT OR REPLACE instead of always using INSERT OR IGNORE (#1685)
  • Added better error handling for AsyncSqliteSaver when called from the main thread (#1685)
  • Updated type annotations to use generic parameters for more precise type checking

Detailed Changes

langgraph.checkpoint.sqlite.SqliteSaver

  • Modified get_next_version method to use random.random() instead of MD5 hashing, significantly improving performance especially for large checkpoints (#1685)
  • Updated put_writes to conditionally use INSERT OR REPLACE for known channel indexes, providing more consistent behavior when handling existing data (#1685)
  • Added proper generic type parameters (BaseCheckpointSaver[str]) for better type safety (#1685)

langgraph.checkpoint.sqlite.aio.AsyncSqliteSaver

  • Added get_next_version method to match the functionality of the synchronous SqliteSaver, using random numbers instead of MD5 hash (#1685)
  • Enhanced get_tuple method with a runtime check to detect if it's being called from the main thread, providing clearer error messages for improper usage (#1685)
  • Updated aput_writes to use the same conditional logic for INSERT OR REPLACE as the synchronous version (#1685)
  • Added proper generic type parameters (BaseCheckpointSaver[str]) for improved type safety (#1685)