Skip to content

v2.0.0-beta7

Pre-release
Pre-release
Compare
Choose a tag to compare
@Gobot1234 Gobot1234 released this 14 Aug 21:25
· 16 commits to master since this release
1538e15

Enhancements

  • Breaking: Support Pydantic v2 and dropping support for v1 #588
  • Breaking: The attempting to access an unset oneof now raises an AttributeError field. To see how to access oneof fields now, refer to #558 and README.md.
  • Breaking: A custom Enum has been implemented to match the behaviour of being an open set. Any checks for isinstance(enum_member, enum.Enum) and issubclass(EnumSubclass, enum.Enum) will now return False. This change also has the side effect of preventing any passthrough of Enum members (i.e. Foo.RED.GREEN doesn't work any more). See #293 for more info, this fixed many bugs related to Enum handling.
  • Add support for pickle methods #535
  • Add support for Struct and Value types #551
  • Add support for Rich package for pretty printing #508
  • Improve support for streaming messages #518 #529
  • Improve performance of serializing / de-serializing messages #545
  • Improve the handling of message name collisions with typing by allowing the method / type of imports to be configured.
    Refer to #582 and README.md.
  • Add a warning when calling a deprecated message #596

Bug Fixes

  • Fix roundtrip parsing of datetimes #534
  • Fix accessing unset optional fields #523
  • Fix Message equality comparison #513
  • Fix behaviour with long comment messages #532

New Contributors

Full Changelog: v.2.0.0b6...v.2.0.0b7