Skip to content

Releases: lalinsky/msgpack.zig

v0.7.0

Choose a tag to compare

@lalinsky lalinsky released this 30 Apr 14:18

Added

  • Support for Zig 0.16

Fixed

  • Binary data is now encoded with the correct bin8/bin16/bin32 msgpack headers instead of string headers; string headers are still accepted when decoding for backwards compatibility
  • Array and map header size calculation incorrectly included a non-existent u8 size tier; arrays/maps with 16–65535 elements now correctly use the array16/map16 3-byte header
  • sizeOfPackedAny now correctly handles optional values and propagates errors from string/array size calculations
  • Custom formats (msgpackFormat, msgpackFieldKey, msgpackRead, msgpackWrite) now work correctly when the type is wrapped in an optional

v0.6.0

Choose a tag to compare

@lalinsky lalinsky released this 26 Oct 17:06

Changed

  • Switched to the new std.Io.Reader and std.Io.Writer types

Release v0.5.0

Choose a tag to compare

@lalinsky lalinsky released this 05 Oct 06:05
  • Support for Zig 0.15
  • Added msgspec-style encoding of tagged unions

v0.4.0

Choose a tag to compare

@lalinsky lalinsky released this 01 Sep 06:44

New Features

Tagged Union Format

  • Added new as_tagged union format for serializing unions as flat maps with type tags
  • Provides msgspec compatibility for tagged union serialization
  • Configurable tag field name (default: "type") and tag value strategies (field name, field index, or field name prefix)
  • Supports struct fields within union variants

Bug Fixes

  • Fixed msgpackFieldKey function type reflection for custom struct field keys
  • Improved integer overflow testing with helper function

v0.2.0

Choose a tag to compare

@lalinsky lalinsky released this 09 Mar 21:29
  • Support for Zig 0.14.

v0.1.0

Choose a tag to compare

@lalinsky lalinsky released this 02 Dec 12:58

Initial release.