Skip to content

v1.2.0

Latest

Choose a tag to compare

@nnabeyang nnabeyang released this 30 Jun 04:30
1.2.0
4a05769

New Features

  • Added an opt-in lazy decode mode for MsgPackDecoder. Construct with MsgPackDecoder(options: .lazyScan) to defer walking the contents of MessagePack arrays and maps until the Codable target asks for them. Significantly reduces wall clock and allocations when decoding a small subset of fields from large maps. See the Performance section in the README for guidance and safety notes.
  • Added MsgPackRawValue, the MessagePack analogue of Go's encoding/json.RawMessage. Lets you defer decoding or pass MessagePack bytes through unchanged. Encoded as raw literal bytes by MsgPackEncoder; decoded only via MsgPackDecoder.

Other Changes

  • Updated README: added overview / improved structure, switched platform badges to Swift Package Index dynamic badges, and refreshed MessagePack website URLs.