This release includes some backwards-incompatible changes. We apologize if this causes any problems in user programs.
Changes/Fixes
- 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.)
- Another incompatible change is the signature of the
SchemaWatcherConfig.OnUpdate
andSchemaWatcherConfig.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. - 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
- The
SchemaWatcher
type now has a new method namedResolvedSchema
, which allows callers to access the most recently downloaded schema in the form of agoogle.protobuf.FileDescriptorSet
message.