Skip to content

Releases: spider-gazelle/bindata

v2.1.0

18 Jul 23:40
Compare
Choose a tag to compare

this adds string encoding and hooks for running before serialization and after deserialization

v2.0.0

01 Feb 04:26
Compare
Choose a tag to compare

fully backwards compatible with deprecation warnings
replaces the old syntax with more crystal like syntax:

# OLD
class VerifyData < BinData
  endian big

  uint8 :size, default: 10_u8
  bytes :bytes, length: ->{ size }
  uint8 :checksum, verify: ->{ checksum == bytes.reduce(0) { |acc, i| acc + i } }
end

# NEW
class VerifyData < BinData
  endian big

  field size : UInt8 = 10_u8
  field bytes : Bytes, length: ->{ size }
  field checksum : UInt8, verify: ->{ checksum == bytes.reduce(0) { |acc, i| acc + i } }
end

v1.11.1

31 Oct 00:15
Compare
Choose a tag to compare

fixes parsing enums with custom types

v1.11.0

21 Sep 09:08
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @axvm made their first contribution in #15

Full Changelog: v1.10.0...v1.11.0

v1.10.0

07 Feb 19:55
ed3b984
Compare
Choose a tag to compare
chore(readme.md): update example links

v1.9.1

31 Jul 10:19
Compare
Choose a tag to compare

minor tweak to support unknown enum values

v1.9.0

12 Apr 21:48
3de923b
Compare
Choose a tag to compare

thanks to @y8 for this release

  • Add support for mixed endians ( 8fc4fec )
  • Automatically define helper methods for custom BinData types ( fddee84 )

v1.8.3

22 Mar 21:19
Compare
Choose a tag to compare

requires crystal 1.0.0

v1.8.2

22 Mar 21:12
Compare
Choose a tag to compare

adds support for crystal 1.0.0

v1.8.1: feat: bitfield macro outside of a bitfield error message

17 Nov 04:13
Compare
Choose a tag to compare

improved error message when using a bitfield macro outside a bitfield