Skip to content

2.0.0

Latest

Choose a tag to compare

@cetanu cetanu released this 11 Jan 09:24
· 1 commit to master since this release

Breaking changes

Migrated from betterproto to betterproto2 (again)

This time all the kinks should be worked out. You can see examples in this repo under scenarios/

Usages of this library have been tested in production by migrating from 1.0 to 2.0

Other changes

  • Tests migrated from pytest to vedro
  • Envoy protobufs upgraded to 1.36

Migration guide

I don't have a comprehensive guide, but I will say:

  • Most if not all of the import paths should be the same or very similar
  • The way to initialize objects should be the same, just construct an idiomatic class instance like you normally would
  • Use the Struct, Value, and Any types from google.protobuf to serialize things like map types and Any types (see scenarios/)
  • I suggest using a good type checker and not ignoring typing issues

Full Changelog: 1.0.3...2.0.0