All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.7.3 - 2023-03-27
- Don't assume
dogma.Message
will always be equivalent toany
- Fix mispelling of
json.DefaulCodec
andcbor.DefaultCodec
(missingt
)
- Change
json.Codec
andcbor.Codec
to use non-pointer receivers
0.7.1 - 2021-06-09
- Add
json.DefaultCodec
andcbor.DefaultCodec
0.7.0 - 2021-05-05
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
.
- Add
protobuf.Codec
,Marshaler
andUnmarshaler
- Add
protobuf.NativeBasicMediaType
,DefaultNativeMarshaler
andDefaultNativeMarshaler
- Add
protobuf.JSONBasicMediaType
,DefaultJSONMarshaler
andDefaultJSONMarshaler
- Add
protobuf.TextBasicMediaType
,DefaultTextMarshaler
andDefaultTextMarshaler
- Remove
protobuf.NativeCodec
,JSONCodec
andTextCodec
0.6.0 - 2021-02-03
- Add
codec/cbor
package
- [BC]
ValueMarshaler.MarshalAs()
now accepts multiple media-types in order of preference - [BC]
ValueMarshaler.MarshalAs()
now returns a boolean to indicate unsupported media-types
- Fix
MarshalAs()
issue that prevented encoding when the media-type's portable name differed to that of the default codec
0.5.0 - 2021-01-20
- [BC] Added
MarshalAs()
method toValueMarshaler
- [BC] Added
MediaTypesFor()
method toValueMarshaler
- Added
String()
method toPanicSentinel
- Added
MustMarshalMessageIntoEnvelope()
andUnmarshalMessageFromEnvelope()
- Added
MustMarshalEnvelopeIdentity()
andUnmarshalEnvelopeIdentity()
- Added
MustMarshalEnvelopeTime()
andUnmarshalEnvelopeTime()
- [BC] Rename
codec.Codec.MediaType()
toBasicMediaType()
- [BC] Remove
MarshalMessage()
,UnmarshalMessage()
,MustMarshalMessage()
, andMustUnmarshalMessage()
0.4.0 - 2020-11-07
- Updated Dogma to v0.9.0
0.3.0 - 2020-11-03
- Updated Dogma to v0.8.0
- Add test fixtures for expected portable type names
0.2.1 - 2020-03-26
- Add
NewPacket()
- Add
Packet.ParseMediaType()
0.2.0 - 2020-01-23
- [BC] Renamed
Marshaler
toValueMarshaler
- [BC] The
Marshaler
interface is now union ofTypeMarshaler
andValueMarshaler
0.1.0 - 2019-12-09
- Initial release