Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@jhump jhump released this 04 Oct 19:39
· 25 commits to main since this release
70cca12

This release includes some backwards-incompatible changes. We apologize if this causes any problems in user programs.

Changes/Fixes

  1. The most significant change that may break applications is the move of the Connect Go runtime from "github.com/bufbuild/connect-go" to "connectrpc.com/connect". Sadly, the two are not compatible and may even cause issues if both are imported into the same program. In order to upgrade to this release of prototransform, client applications must also update to the "connectrpc.com/connect" import path. (See migration instructions in the Connect release notes.)
  2. Another incompatible change is the signature of the SchemaWatcherConfig.OnUpdate and SchemaWatcherConfig.OnError callback functions. The previous signatures made them hard to use. Migrating to the new signatures should be trivial as it simply involves adding a parameter, which can be unused. The improved signatures will hopefully simplify code that made use of these callbacks.
  3. When using NewDefaultFileDescriptorSetServiceClient, the returned client will include the name of this package (prototransform-go) in the user-agent header that is sent to the Buf Schema Registry.

Additions

  1. The SchemaWatcher type now has a new method named ResolvedSchema , which allows callers to access the most recently downloaded schema in the form of a google.protobuf.FileDescriptorSet message.