Releases: dogmatiq/primo
Releases · dogmatiq/primo
Version 0.3.1
Added
- Added
MustSwitch_XXX()
andMustMap_XXX()
functions for one-of groups. These functions panic if the message or the one-of discriminator field isnil
. This is the same behavior thatSwitch_XXX()
andMap_XXX()
had prior to [0.3.0].
Version 0.3.0
Changed
- [BC] Added a mandatory
default_
parameter to theMap_XXX()
andSwitch_XXX()
functions generated for one-of fields.
Version 0.2.4
Fixed
- Fixed panic when calling
Map_XXX()
andSwitch_XXX()
with anil
message.
Version 0.2.3
Added
- Generate a basic stub implementation of each gRPC client interface.
Version 0.2.2
Fixed
- Generate code for nested message and enum types.
Version 0.2.1
Added
- Generate
TryGetXXX()
methods for each option within one-of groups.
Version 0.2.0
Added
- Generate an
XXXBuilder
type for each Protocol Buffers message type, which constructs messages from a configurable prototype message. - Generate a
Map_XXX()
function for each Protocol Buffers enumeration and one-of type.
Removed
- [BC] Removed the return value from generated
Switch_XXX()
functions, useMap_XXX()
instead. - [BC] Removed generated
NewXXX()
functions, useNewXXXBuilder()
instead. - [BC] Removed the return value from generated mutator methods.
Version 0.1.5
Fixed
- Fix incorrect switch case generation when the name of a "one-of discriminator" type conflicts with another Go generated type.
Version 0.1.4
Added
- Generate a
Switch_XXX()
function for each Protocol Buffers enumeration type.
Version 0.1.3
Added
- Generate a
NewXXX()
"constructor" function for each Protocol Buffers message type.
Changed
- Mutator methods now construct and return a new message when called on a
nil
message.