v1.1.0 (2026-08-16)
Bug Fixes
-
Unity.Aliases.resolve/1now resolves the plural of every CLDR unit, fixingmonths,quarters,decades,centuriesand 100-odd others that failed while their singular resolved. Plurals are derived from the unit list by the newUnity.Aliases.Pluralrather 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,kilometreandlitrepreviously failed whilekilometresandlitresworked. -
Plurals of SI-prefixed units such as
millisecondsandmegabytesnow resolve. -
Unity.Aliases.resolve/1returns{:error, :unknown_unit}instead of raising when given a non-string. -
Unity.Aliases.suggest/2reports each unit under its CLDR name rather than whichever spelling scored best, so a typo no longer suggests a derived plural such asnights. Every spelling is still scored, so a typo close to an abbreviation or plural finds the unit. -
Unity.Aliases.all_known_names/0documented that it returned aliases as well as CLDR names; it returns only CLDR base unit names.