langgraph 0.2.3
Summary of Changes
- Fixed an issue with channel version handling in checkpoint updates by adding a new utility function and improving the logic for determining new channel versions (#1270)
- Fixed a potential bug by clarifying boolean logic with parentheses in the checkpoint versioning code (#1268)
Detailed Changes
langgraph.pregel.Pregel
- Improved handling of channel versions during checkpointing by tracking previous versions and properly computing which channels have changed using a dedicated utility function (#1270)
- Fixed synchronous and asynchronous
update_statemethods to properly track and report new channel versions when putting checkpoints (#1270)
langgraph.pregel.loop.PregelLoop
- Refactored checkpoint versioning logic to use the new utility function
get_new_channel_versions, which eliminates duplicated code and improves reliability (#1270) - Fixed a potential bug in channel versioning logic by adding parentheses to clarify boolean expression precedence (#1268)