0.6.0a1
Breaking Changes📦 langgraphView on GitHub →
⚠ 4 breaking✨ 4 features🐛 1 fixes⚡ 1 deprecations🔧 7 symbols
Summary
This release introduces a new context API to replace legacy configuration patterns and solidifies the public API surface in preparation for v0.6 and v1.0. It also adds durability modes and stricter type checking for node signatures.
⚠️ Breaking Changes
- The 'context' API replaces the previous 'config["configurable"]' and 'config_schema' patterns.
- Internal constants and typing constructs have been moved or made private, which may break direct imports from 'constants.py'.
- The 'Interrupt' interface has been updated/cleaned up for the v1 transition.
- Public/private API boundaries have been solidified, restricting access to previously exposed internal modules.
Migration Steps
- Replace usage of 'config["configurable"]' and 'config_schema' with the new context API.
- Update imports for constants and types as they have moved from 'constants.py' to '_internal/_typing.py' or been made private.
- Review 'Interrupt' implementations to align with the updated v1 interface.
- Ensure 'add_node' calls have matching signatures between the node function and the input_schema.
✨ New Features
- Added SDK support for the 'context' API.
- Implemented 'durability' mode argument in LangGraph.
- Added type checking to ensure 'node' signatures match 'input_schema' when using 'add_node'.
- Introduced a new context API for state management.
🐛 Bug Fixes
- Fixed an assertion error in LangGraph tests.
🔧 Affected Symbols
config['configurable']config_schemaadd_nodeInterruptRuntimeconstants.py_internal/_typing.py⚡ Deprecations
- Deprecated 'config["configurable"]' and 'config_schema' in favor of the new context API.