Python-CQRS 5.0.0 — Planned Release Discussion #57
Pinned
vadikko2
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion outlines the planned breaking changes for python-cqrs 5.0.0. The goal is to make the library more modular, reduce mandatory dependencies, and clarify the project structure. Feedback and suggestions are welcome.
Summary
Version 5.0.0 will focus on:
eventson handlers, renamingSagaMediator.stream, and moving broker-related code to a dedicated package.Breaking Changes
Optional Dependencies
pip install python-cqrs[pydantic]).Project Structure & Package Reorganization
The project hierarchy will be reorganized into clearer, thematic packages:
bootstrappackagepython-cqrs-sqlalchemy) vs. keep as optional modules in the main package. Feedback welcome.Import paths will change; migration notes and examples will be provided in the release notes.
Message Brokers
message_brokerspackage. This centralizes everything related to message brokers and keeps the core library focused.API Changes
Handlers —
eventsmethodThe
eventsmethod on handlers will become optional. Default behavior will bereturn (). Handlers that do not produce events no longer need to implementevents.SagaMediator — method rename
cqrs.mediator.SagaMediator.streamwill be renamed toexecute(or another name that better reflects its role). The old name will be removed in 5.0.0.Next Steps
SagaMediator.stream(e.g.execute).If you have concerns, alternative naming ideas, or migration suggestions, please share them in the comments.
Beta Was this translation helpful? Give feedback.
All reactions