Skip to content

v0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jverkoey jverkoey released this 26 Feb 02:11
· 29 commits to stable since this release

This minor unstable release renames sequentialContainer to container for both the BinaryEncoder and BinaryDecoder types, adds support for BinaryFloatingPoint decoding and encoding, automatic BinaryCodable conformance for floating point and array types, and a variety of performance improvements.

Breaking changes

BinaryDecoder and BinaryEncoder's sequentialContainer has been renamed to container. This is a straightforward find-and-replace operation.

New features

Array<BinaryCodable> types automatically conform to BinaryCodable. It's easier now to code sequential binary objects like so:

// Decoding
let objects = try container.decode([SomeBinaryObject].self)

// Encoding
try container.encode(objects)

Float and Double RawRepresentable types automatically conform to BinaryCodable.

Source changes

Non-source changes