Skip to content

Unity version 1.1.0

Latest

Choose a tag to compare

@kipcole9 kipcole9 released this 15 Aug 23:35

v1.1.0 (2026-08-16)

Bug Fixes

  • Unity.Aliases.resolve/1 now resolves the plural of every CLDR unit, fixing months, quarters, decades, centuries and 100-odd others that failed while their singular resolved. Plurals are derived from the unit list by the new Unity.Aliases.Plural rather than hand-listed, so a unit added to CLDR gets its plural automatically.

  • British spellings now resolve in the singular as well as the plural — metre, kilometre and litre previously failed while kilometres and litres worked.

  • Plurals of SI-prefixed units such as milliseconds and megabytes now resolve.

  • Unity.Aliases.resolve/1 returns {:error, :unknown_unit} instead of raising when given a non-string.

  • Unity.Aliases.suggest/2 reports each unit under its CLDR name rather than whichever spelling scored best, so a typo no longer suggests a derived plural such as nights. Every spelling is still scored, so a typo close to an abbreviation or plural finds the unit.

  • Unity.Aliases.all_known_names/0 documented that it returned aliases as well as CLDR names; it returns only CLDR base unit names.