Skip to content

checkpointpostgres==1.0.5

Choose a tag to compare

langgraph-checkpoint-postgres 1.0.5

Summary of Changes

  • Enhanced checkpoint loading process with improved handling of pending sends and channel values
  • Modified SQL query to maintain consistent ordering of results with explicit order by clauses
  • Simplified checkpoint serialization/deserialization logic by removing unnecessary base64 encoding/decoding
  • Fixed documentation to correctly indicate return type of from_conn_string method in async implementation

Detailed Changes

langgraph.checkpoint.postgres.PostgresSaver

  • Modified checkpoint loading in list and get_tuple methods to use a revised _load_checkpoint implementation that better handles pending sends and channel values

langgraph.checkpoint.postgres.aio.AsyncPostgresSaver

  • Updated checkpoint loading in alist and aget_tuple methods to use the improved checkpoint loading mechanism
  • Fixed documentation in from_conn_string to correctly indicate AsyncPostgresSaver as the return type

langgraph.checkpoint.postgres.base.BasePostgresSaver

  • Redesigned _load_checkpoint method to accept explicit parameters for channel_values and pending_sends, improving data handling
  • Simplified _dump_checkpoint method by removing unnecessary encoding of pending sends
  • Enhanced the SQL query with more explicit ordering (order by cw.task_id, cw.idx) for consistent results
  • Added a specific query to retrieve pending_sends data from parent checkpoints
  • Removed unnecessary base64 encoding/decoding operations, reducing processing overhead