Skip to content

checkpoint==1.0.1

Choose a tag to compare

@github-actions github-actions released this 07 Aug 02:41
2b860f0

langgraph-checkpoint 1.0.1

Summary of Changes

  • Added support for binary data types (bytes and bytearray) in the JSON serializer (#1236)
  • Added a new type alias ChannelVersions for improved type safety (#1236)
  • Enhanced the BaseCheckpointSaver API to include channel version information (#1236)
  • Implemented context manager interfaces on MemorySaver for better resource management (#1236)

Detailed Changes

langgraph.checkpoint.base.ChannelVersions

  • Added a new type alias for better type safety and code clarity (#1236)
  • Defined as dict[str, Union[str, int, float]] to represent channel version information throughout the codebase

langgraph.checkpoint.base.Checkpoint

  • Updated type annotations to use the new ChannelVersions type alias (#1236)
  • Improved type safety for channel_versions and versions_seen fields

langgraph.checkpoint.base.BaseCheckpointSaver

  • Added a new parameter new_versions: ChannelVersions to the put and aput methods (#1236)
  • This parameter provides information about channel versions as of the current write operation

langgraph.checkpoint.memory.MemorySaver

  • Implemented context manager interfaces (AbstractContextManager, AbstractAsyncContextManager) (#1236)
  • Added __enter__, __exit__, __aenter__, and __aexit__ methods for better resource management
  • Updated put and aput methods to support the new new_versions parameter

langgraph.checkpoint.serde.jsonplus.JsonPlusSerializer

  • Added support for serializing and deserializing binary data types: bytes and bytearray (#1236)
  • Enhanced dumps_typed to return type-specific identifiers for binary data
  • Updated loads_typed to properly handle different data types based on their identifiers