Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 20 May 15:56
· 38 commits to main since this release
afd0ac1

Fixed

  • README: the Sponsor QR image now uses an absolute raw.githubusercontent.com URL instead of the relative docs/images/sponsor-qr.png path so it renders both on GitHub and on the Hex package page (relative paths in the README cannot be resolved against the published package archive, which omits the docs/images/ directory). (#23)
  • DataExceedsCapacity(bits_needed, bits_available) now carries informative non-zero fields in the Micro QR find_version, rMQR find_version, and Standard encode_split bailout paths. The three "no symbol in this family fits" code paths previously returned DataExceedsCapacity(0, 0), undermining the error type's documented purpose of telling callers how far over the ceiling their payload is; they now report the encoded-bit count vs the largest symbol's capacity (M4, R17×139, and 16 shards × max-version respectively), matching the Standard QR path's existing behaviour. (#22)
  • qrkit/content.email now keeps the addr-spec @ separator (and the RFC 6068 §2 some-delims set: !, $, ', (, ), *, +, ;, :, ,) literal in the to field instead of percent-encoding everything via uri.percent_encode. The to field gets a narrower encoder that only escapes characters that would actually break URI parsing in this position (space, ?, &, #, <, >, control bytes, non-ASCII); subject / body keep the wider RFC 3986 encoding. The previous behaviour produced mailto:user%40example.com?..., breaking canonical-form matching in some Android QR-handler whitelists. (#21)

Install

gleam add qrkit

See HexDocs for the API
reference.