command_bus 1.2.0
command_bus: ^1.2.0 copied to clipboard
Minimal command bus toolkit with middleware, safe result handling, and examples.
1.2.0 #
- добавлен generic тип
Sдля передачи состояния вCommandBus<S>иCommandHandler<C, R, S> - обработчики теперь получают состояние как второй параметр в методе
handle(command, state)
1.1.0 #
- added
Registryclass for command-to-handler mapping CommandBusnow extendsRegistry, exposing register/unregister/getHandler API- updated pubdev version to 1.1.0
1.0.0 #
- core API laid out:
Command,CommandHandler,CommandBuswith middleware andResult - custom exceptions, unregister support, README/docs, and comprehensive tests
- packaged example with middleware,
dispatchSafedemo, and usage comments