Skip to content

v0.4.0

Pre-release
Pre-release

Choose a tag to compare

@zerlok zerlok released this 21 Sep 16:55
· 11 commits to main since this release
fcf975e

Release 0.4.0

✨ New Features

  • Defer & Recall for Context
    States can now postpone processing of an incoming message using context.defer() and later resume with context.recall().
    This enables advanced workflows such as multi-step authentication flows where incomplete inputs can be held until sufficient data arrives.

    • Added defer() and recall() methods to Context ABC
    • Added notify_income_deferred / notify_income_recalled hooks to StateMachineSubscriber
    • Updated all state machine implementations to support deferred message queues
    • Added tests and examples for defer/recall patterns

🛠 Fixes

  • Fixed test_anyio.py mypy false-positive issue
  • Fixed context manager & return handling

📚 Documentation

  • Updated README to highlight the new defer & recall features

📦 Dependency Updates

  • Bump pytest-asyncio from 1.0.0 → 1.1.0
  • Bump ruff from 0.12.7 → 0.12.11
  • Bump typing-extensions from 4.14.1 → 4.15.0
  • Bump anyio from 4.9.0 → 4.10.0