Skip to content

v2.0.0-beta6

Pre-release
Pre-release
Compare
Choose a tag to compare
@Gobot1234 Gobot1234 released this 25 Jun 23:27
· 51 commits to master since this release
098989e

Enhancements

  • Breaking: the minimum Python version has been bumped to 3.7 #444

  • Support generating Pydantic dataclasses. Pydantic dataclasses are are drop-in replacement for dataclasses in the standard library that additionally supports validation.
    Pass --python_betterproto_opt=pydantic_dataclasses to enable this feature. Refer to #406 and README.md for more information.

  • Added support for @generated marker #382

  • Pull down the include_default_values argument to to_json() #405

  • Pythonize input_type name in py_input_message #436

  • Widen from_dict() to accept any Mapping #451

  • Replace pkg_resources with importlib #462

Bug Fixes

  • Fix typechecker compatibility checks in server streaming methods #413
  • Fix "empty-valued" repeated fields not being serialised #417
  • Fix dict encoding for timezone-aware datetimes #468
  • Fix to_pydict() serialization for optional fields #495
  • Handle empty value objects properly #481

Thank you to all the contributors to this release and everyone for being so patient with its release.

New Contributors

Full Changelog: v2.0.0b5...v.2.0.0b6