Skip to content

checkpoint==2.0.22

Choose a tag to compare

@github-actions github-actions released this 24 Mar 23:32
6853d04

langgraph-checkpoint 2.0.22

Summary of Changes

  • Added a dedicated blob storage system to InMemorySaver for more efficient channel value management (#3960)
  • Bumped checkpoint format version from 1 to 2 to support new storage format (#3954)
  • Replaced msgpack with faster ormsgpack library for improved serialization performance (#3953)
  • Added custom serialization hooks for better translation between MessagePack extended types and JSON (#4002)

Detailed Changes

langgraph.checkpoint.memory.InMemorySaver

  • Added a new blobs storage system that efficiently stores channel values separately, reducing memory usage (#3960)
  • Added _load_blobs method to retrieve channel values from blob storage (#3960)
  • Updated get_tuple, list, and put methods to work with the new blob storage mechanism (#3960)

langgraph.checkpoint.base

  • Added LATEST_VERSION = 2 constant to track checkpoint format version (#3954)
  • Updated empty_checkpoint() and create_checkpoint() functions to use the new version (#3954)

langgraph.checkpoint.serde.jsonplus.JsonPlusSerializer

  • Added customizable __init__ method that accepts an optional custom unpacking hook (#4002)
  • Replaced msgpack with ormsgpack for better performance and more features (#3953)
  • Added support for bytearray serialization (#3953)
  • Improved error handling for better UTF-8 validation (#3953)
  • Added _msgpack_ext_hook_to_json function to better translate MessagePack extended types to JSON-compatible formats (#4002)
  • Added optimized serialization options to leverage ormsgpack capabilities (#3953)