v2.0.0-beta7
Pre-release
Pre-release
Enhancements
- Breaking: Support
Pydantic
v2 and dropping support for v1 #588 - Breaking: The attempting to access an unset
oneof
now raises anAttributeError
field. To see how to accessoneof
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 forisinstance(enum_member, enum.Enum)
andissubclass(EnumSubclass, enum.Enum)
will now returnFalse
. This change also has the side effect of preventing any passthrough ofEnum
members (i.e.Foo.RED.GREEN
doesn't work any more). See #293 for more info, this fixed many bugs related toEnum
handling. - Add support for
pickle
methods #535 - Add support for
Struct
andValue
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
datetime
s #534 - Fix accessing unset optional fields #523
- Fix
Message
equality comparison #513 - Fix behaviour with long comment messages #532
New Contributors
- @atomicflag made their first contribution in #513
- @JoshuaLeivers made their first contribution in #518
- @MicaelJarniac made their first contribution in #508
- @124C41p made their first contribution in #528
- @girtsf made their first contribution in #306
- @spietras made their first contribution in #422
- @lukasbindreiter made their first contribution in #534
- @cartesian-theatrics made their first contribution in #532
- @cclauss made their first contribution in #550
- @woodruffw made their first contribution in #551
- @atomicmac made their first contribution in #560
- @arunsathiya made their first contribution in #553
- @ii64 made their first contribution in #568
- @imcdo made their first contribution in #587
- @gatesn made their first contribution in #588
- @AdrienVannson made their first contribution in #596
- @JitPackJoyride made their first contribution in #593
Full Changelog: v.2.0.0b6...v.2.0.0b7