cbor v1.5.0 Release Notes

Release Date: 2020-01-13 // over 1 year ago
  • Highlights:

    • โž• add extensive encoding options while maintaining backward compatibility
    • โž• add four functions that return predefined and modifiable EncOptions
    • ๐Ÿ‘Œ support for preferred serialization (encoding both integers and floating-point values to their smallest forms)
    • ๐Ÿ‘Œ support for encoding float16 (IEEE 754 binary16), prior versions already supported decoding

    ๐Ÿ”„ Changes include:

    • ๐Ÿ”‹ Feature: Add funcs that return predefined encoding configs (commit b7b5733, e203b29)
      • CanonicalEncOptions() -- Canonical CBOR (RFC 7049)
      • CTAP2EncOptions() -- CTAP2 Canonical CBOR
      • CoreDetEncOptions() -- Core Deterministic Encoding
      • PreferredUnsortedEncOptions() - Preferred unsorted serialization
    • ๐Ÿ”‹ Feature: Add ShortestFloat option for encoding (commit 29e78ee)
      • ShortestFloatNone (default)
      • ShortestFloat16
    • ๐Ÿ”‹ Feature: Add NanConvertMode for encoding (commit 16c573c)
      • NaNConvertNone
      • NanConvert7e00
      • NanConvertQuiet
      • NaNConvertPreserveSignal
    • ๐Ÿ”‹ Feature: Add InfConvertMode for encoding (commit 16c573c)
      • InfConvertNone
      • InfConvertFloat16
    • โ™ป๏ธ Refactor and improve quality of code, docs, and tests

    Fuzzing reached 250+ million execs with Go 1.13 and an older version of our float16 library. The newer version of our float16 library does not contain coding changes but we restarted fuzzing anyway and will let it continue until it reaches 1+ billion execs.