Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Version 0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jmalloc jmalloc released this 05 May 04:42
· 271 commits to main since this release

This release upgrades the protocol buffers implementation to use
google.golang.org/protobuf instead of github.com/golang/protobuf.

There have been several breaking changes to marshalkit's protobuf package,
although the functionality remains the same.

In summary, the various codec types in this package have been replaced by a
single Codec type which is configured for different encoding formats by using
different marshalers/unmarshalers provided by google.golang.org/protobuf.

Added

  • Add protobuf.Codec, Marshaler and Unmarshaler
  • Add protobuf.NativeBasicMediaType, DefaultNativeMarshaler and DefaultNativeMarshaler
  • Add protobuf.JSONBasicMediaType, DefaultJSONMarshaler and DefaultJSONMarshaler
  • Add protobuf.TextBasicMediaType, DefaultTextMarshaler and DefaultTextMarshaler

Removed

  • Remove protobuf.NativeCodec, JSONCodec and TextCodec