Skip to content

v0.27.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 07:51
· 5 commits to main since this release
08e307a

Changed

  • UnsupportedForInt carries the same name as encoding_to_string, for example "base64dq" and "base64pad", instead of the removed constructor spellings "Base64(DQ)" and "Base64(Standard)".
  • Decoding with an uppercase expected Bech32 HRP returns InvalidHrp("HRP must be lowercase"), as encoding with the same Encoding does, instead of an UnexpectedHrp that can never match.

Fixed

  • On Erlang, a decoder given a String that is not UTF-8 (possible through FFI) returns InvalidCharacter("", position) for the first invalid byte. Alphabet-table decoders such as Base64 and Base58 crashed on such input, and Adobe Ascii85 silently dropped everything after the invalid byte and could return Ok.