Skip to content

Puid 2.6.0

Choose a tag to compare

@dingosky dingosky released this 05 Sep 16:20
· 11 commits to master since this release

What's Changed

New Features

  • Exposed Puid.Chars.metrics/1 function as public API
Puid.Chars.metrics(:alpha)
  %{
    avg_bits: 6.769230769230769,
    bit_shifts: [{51, 6}, {55, 4}, {63, 3}],
    ere: 0.7125549647676365,
    ete: 0.8421104129072068
  }
  • Added 11 new predefined character sets (total now 31, up from 20):
    • :base36 and :base36_upper - Case-insensitive alphanumeric
    • :base45 - QR code alphanumeric mode
    • :base62 - Alias for :alphanum
    • :base85 - ASCII85 encoding
    • :bech32 - Bitcoin SegWit address encoding
    • :boolean - Binary with 'TF'
    • :dna - DNA nucleotides 'ACGT'
    • :geohash - Geographic coordinate encoding
    • :url_safe - RFC 3986 unreserved characters
    • :z_base32 - Zooko's base32

Full Changelog: 2.5.0...2.6.0