Skip to content

checkpointpostgres==1.0.7

Choose a tag to compare

langgraph-checkpoint-postgres 1.0.7

Summary of Changes

  • Improved SQL operations for checkpoint writes through dynamic query selection based on write types (PR #1685)
  • Added support for custom serializers in AsyncPostgresSaver.from_conn_string() (PR #1699)
  • Enhanced version ID generation using random numbers instead of MD5 hashing for improved reliability (PR #1685)
  • Simplified metadata serialization process (PR #1716)

Detailed Changes

langgraph.checkpoint.postgres.PostgresSaver

  • Added dynamic SQL query selection for checkpoint writes, choosing between upsert or insert-only operations based on channel types (PR #1685)

langgraph.checkpoint.postgres.aio.AsyncPostgresSaver

  • Added optional serde parameter to from_conn_string() method, allowing users to specify a custom serializer (PR #1699)
  • Implemented same dynamic SQL query selection for checkpoint writes as in the synchronous PostgresSaver (PR #1685)

langgraph.checkpoint.postgres.base.BasePostgresSaver

  • Modified version ID generation in get_next_version() to use random numbers instead of MD5 hashing, eliminating potential errors with empty channels (PR #1685)
  • Added new SQL constant INSERT_CHECKPOINT_WRITES_SQL for insert-only operations alongside the existing upsert operation (PR #1685)
  • Simplified _dump_metadata() to use direct serialization without type checking (PR #1716)