Skip to content

checkpoint==1.0.11

Choose a tag to compare

@github-actions github-actions released this 23 Sep 22:01
434e751

langgraph-checkpoint 1.0.11

Summary of Changes

  • Enhanced type annotations throughout the codebase, improving type safety and developer experience
  • Added generic type parameter to BaseCheckpointSaver for better type checking of version identifiers #1814
  • Improved version handling in checkpoint savers to support different types of version identifiers
  • Added missing methods to SerializerCompat class
  • Refined and simplified interface for channel protocols

Detailed Changes

langgraph.checkpoint.base.BaseCheckpointSaver

  • Now a generic class with type parameter V for better type safety of version identifiers
  • Changed parameter types from List to more generic Sequence for better flexibility
  • Enhanced the get_next_version method to handle different types of version identifiers, including strings and numbers

langgraph.checkpoint.base.Checkpoint

  • Improved documentation clarifying that channel_values contains deserialized values
  • Enhanced documentation for channel_versions to explain that version strings are monotonically increasing
  • Updated description of pending_sends to better reflect its purpose

langgraph.checkpoint.memory.MemorySaver

  • Now properly extends the generic BaseCheckpointSaver[str]
  • Updated type annotations for storage collections to be more precise
  • Fixed return type annotations for methods like put_writes and aput_writes

langgraph.checkpoint.serde.base.SerializerCompat

  • Added missing dumps and loads methods to complement the existing typed methods, making the class fully implement the serializer protocol

langgraph.checkpoint.serde.jsonplus.JsonPlusSerializer

  • Improved type annotations throughout the class for better type checking
  • Enhanced error handling and type safety for msgpack serialization

langgraph.checkpoint.serde.types.ChannelProtocol

  • Changed type parameters to be covariant/contravariant for better type safety
  • Simplified the from_checkpoint method interface, removing unnecessary parameters