Releases: ergl/pony-protobuf
0.2.3
Update to work with Pony 0.50.0
Pony 0.50.0 and Pony 0.49.0 introduced several breaking changes. We've updated to account for them all.
[0.2.3] - 2022-06-02
Fixed
- Update to Pony 0.50.0 (PR #24)
0.2.2
Remove FieldSize.packed_enum_size
This is a redundant function, since FieldSize.packed_enum[T]
already exists.
Fix incorrect unquoting of default string values
The autogenerated code was not quoting default values for string fields, which would generate broken code.
Fix capitalization in generated code
Currently, the compiler modifies enum and message definitions to remove underscore characters, as those are not valid in Pony names. However, it didn't account for names wich started with lowercase letters, leading to broken code. Now, the compiler will auto-capitalize the first letter of protobuf messages and enums automatically.
Fix deserialization of optional nested messages
Even though nested messages were properly deserialized, if the optional message field was None
, the autogenerated code would not assign the resulting message to the field, causing it to always be ignored.
Improve front-end error reporting
The compiler should now give better error messages.
Add support for oneof
fields
The compiler now supports generating code for oneof
fields. A oneof
field is represented as a union type, where each element is a tuple of the form (Name, value)
. Each Name
is represented by a Pony primitive.
[0.2.2] - 2021-07-15
Fixed
- Fix incorrect unquoting of default string values (PR #14)
- Fix capitalization in generated code (PR #15)
- Fix deserialization of optional nested messages (PR #16)
Added
Changed
- Remove FieldSize.packed_enum_size (PR #13)