Skip to content

Releases: ergl/pony-protobuf

0.2.3

02 Jun 13:38
Compare
Choose a tag to compare

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

15 Jul 17:39
Compare
Choose a tag to compare

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

  • Improve front-end error reporting (PR #19)
  • Add support for oneof fields (PR #20)

Changed

  • Remove FieldSize.packed_enum_size (PR #13)