Repository navigation
Releases
Releases · dogmatiq/dogma
Version 0.26.0
Added
- [ENGINE BC] Added
MessageID()method toAggregateCommandScope,ProcessEventScope,ProcessDeadlineScope,IntegrationCommandScopeandProjectionEventScope.
Changed
- [BC] Bumped minimum Go version to v1.27.
- [BC]
ProjectionEventScope.StreamID()now returns auuid.UUID. - [BC]
ProjectionMessageHandler.CheckpointOffset()now takes the stream ID as auuid.UUID. - [BC]
RegisteredMessageType.ID()now returns auuid.UUID. - [BC]
RegisteredMessageTypeByID()now takes the message type ID as auuid.UUID.
Version 0.25.0
Version 0.24.0
This release introduces ProcessScope.Mutate(), which replaces direct mutation of the process root, giving the engine an explicit signal that state has changed. Existing process handlers that mutate their root directly are now incorrect but will still compile — review all process handlers carefully.
It also renames the "timeout" concept to "deadline", aligning with Go's convention that a deadline is a specific point in time rather than a duration. The semantics are unchanged.
Added
- [BC] Added
ProcessScope.Mutate()method.
Changed
- [BC] Renamed
TimeouttoDeadline. - [BC] Renamed
TimeoutValidationScopetoDeadlineValidationScope. - [BC] Renamed
ProcessMessageHandler.HandleTimeout()toHandleDeadline(). - [BC] Renamed
ProcessTimeoutScopetoProcessDeadlineScope. - [BC] Renamed
ProcessScope.ScheduleTimeout()toScheduleDeadline(). - [BC] Renamed
NoTimeoutMessagesBehaviortoNoDeadlineMessagesBehavior. - [BC] Renamed
SchedulesTimeout()toSchedulesDeadline(). - [BC] Renamed
SchedulesTimeoutRoutetoSchedulesDeadlineRoute. - [BC] Renamed
SchedulesTimeoutOptiontoSchedulesDeadlineOption. - [BC] Renamed
RegisterTimeout()toRegisterDeadline(). - [BC] Renamed
RegisterTimeoutOptiontoRegisterDeadlineOption.
Version 0.23.0
This release genericizes AggregateMessageHandler and ProcessMessageHandler by their root type, providing compile-time type safety for aggregate roots and process roots.
Changed
- [BC]
StatelessProcessRootis now an exported struct type instead of a package-level variable. - [BC] The following types and functions are now parameterized by their concrete
AggregateRootorProcessRoottype:AggregateMessageHandlerAggregateCommandScopeProcessMessageHandlerProcessScopeProcessEventScopeProcessTimeoutScopeNoTimeoutMessagesBehaviorViaAggregate()ViaProcess()
Added
- Added
UntypedAggregateMessageHandler()andUntypedProcessMessageHandler(). - Added
UnwrapHandler()for recursively unwrapping handler adaptors.