Skip to content

Version 0.15.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 03 Oct 02:44
v0.15.0
a51a107

Added

  • Added message.Kind enumeration to represent the different kinds of message, that is Command, Event, and Timeout. This is a replacement for the message.Role enumeration, which was removed in this release. Kind and Role have the same enumeration values, but whereas a message's "role" was a function of how it was used within a specific application, its "kind" is inherit to the message type itself.
  • Added message.SwitchKind() and MapKind() to perform exhaustive switches and maps on a Kind.
  • Added message.Switch(), Map() and TryMap() to perform exchaustive switches on the kind of a dogma.Message.

Removed

  • [BC] Removed message.Role.
  • [BC] Removed message.NameRoles and TypeRoles.
  • [BC] Removed message.NameSet and TypeSet, use message.Set instead.
  • [BC] Removed message.NameCollection, NameSet, TypeCollection and TypeSet, and their associated set functions, use message.Set instead.

Changed

  • [BC] Renamed message.NameFromType() to NameFromStaticType().
  • [BC] Changed EntityMessage[Names|Types] to use a new generic EntityMessages[K] type.
  • [BC] Changed the api package to implement the configgrpc APIs defined in dogmatiq/enginekit, instead of the (deprecated) interopspec/configspec APIs.