2023-07-03 20:21:30 +00:00
|
|
|
## [5.3.5](https://github.com/vmihailenco/msgpack/compare/v5.3.4...v5.3.5) (2021-10-22)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## v5
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
- `DecodeMap` is split into `DecodeMap`, `DecodeTypedMap`, and `DecodeUntypedMap`.
|
|
|
|
- New msgpack extensions API.
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
- `Reset*` functions also reset flags.
|
|
|
|
- `SetMapDecodeFunc` is renamed to `SetMapDecoder`.
|
|
|
|
- `StructAsArray` is renamed to `UseArrayEncodedStructs`.
|
|
|
|
- `SortMapKeys` is renamed to `SetSortMapKeys`.
|
|
|
|
|
|
|
|
### Removed
|
|
|
|
|
|
|
|
- `UseJSONTag` is removed. Use `SetCustomStructTag("json")` instead.
|
|
|
|
|
2022-04-03 04:07:16 +00:00
|
|
|
## v4
|
|
|
|
|
2023-07-03 20:21:30 +00:00
|
|
|
- Encode, Decode, Marshal, and Unmarshal are changed to accept single argument. EncodeMulti and
|
|
|
|
DecodeMulti are added as replacement.
|
2022-04-03 04:07:16 +00:00
|
|
|
- Added EncodeInt8/16/32/64 and EncodeUint8/16/32/64.
|
2023-07-03 20:21:30 +00:00
|
|
|
- Encoder changed to preserve type of numbers instead of chosing most compact encoding. The old
|
|
|
|
behavior can be achieved with Encoder.UseCompactEncoding.
|
2022-04-03 04:07:16 +00:00
|
|
|
|
|
|
|
## v3.3
|
|
|
|
|
|
|
|
- `msgpack:",inline"` tag is restored to force inlining structs.
|
|
|
|
|
|
|
|
## v3.2
|
|
|
|
|
|
|
|
- Decoding extension types returns pointer to the value instead of the value. Fixes #153
|
|
|
|
|
|
|
|
## v3
|
|
|
|
|
|
|
|
- gopkg.in is not supported any more. Update import path to github.com/vmihailenco/msgpack.
|
|
|
|
- Msgpack maps are decoded into map[string]interface{} by default.
|
2023-07-03 20:21:30 +00:00
|
|
|
- EncodeSliceLen is removed in favor of EncodeArrayLen. DecodeSliceLen is removed in favor of
|
|
|
|
DecodeArrayLen.
|
2022-04-03 04:07:16 +00:00
|
|
|
- Embedded structs are automatically inlined where possible.
|
2023-07-03 20:21:30 +00:00
|
|
|
- Time is encoded using extension as described in https://github.com/msgpack/msgpack/pull/209. Old
|
|
|
|
format is supported as well.
|
|
|
|
- EncodeInt8/16/32/64 is replaced with EncodeInt. EncodeUint8/16/32/64 is replaced with EncodeUint.
|
|
|
|
There should be no performance differences.
|
2022-04-03 04:07:16 +00:00
|
|
|
- DecodeInterface can now return int8/16/32 and uint8/16/32.
|
|
|
|
- PeekCode returns codes.Code instead of byte.
|