Note that localize_units_sql is supported on Elixir 1.17 and later only.
This is the changelog for Localize Units SQL v2.0.0 released on April 24th, 2026.
-
The package has been renamed from
ex_cldr_units_sqltolocalize_units_sql. TheCldr.Unit.*modules are nowLocalize.Unit.*(for exampleCldr.Unit.Ecto.Composite.TypebecomesLocalize.Unit.Ecto.Composite.Type). Existing schema and migration references must be updated. -
Supported on Elixir 1.17 or later only.
-
Requires the unified localize package in place of the
ex_cldrfamily of dependencies. The CLDR backend module (e.g.MyApp.Cldr) and its configuration are no longer used. Configure locales throughconfig :localizeinstead. -
Localize.Unituses string unit identifiers (for example"meter") and string usage values (for example"person"), rather than atoms. Code that previously passed:meterorusage: :personshould pass"meter"/usage: "person". -
Localize.Unit.new/2,3takes the value as the first argument and the unit identifier as the second. TheCldr.Unit.new(:meter, 100)form is no longer valid — useLocalize.Unit.new(100, "meter"). -
The
:unitfield on the struct has been renamed to:name. -
jasonis no longer a declared dependency. Postgrex defaults toJasonforjson/jsonbcolumns; configureconfig :postgrex, :json_library, JSON(Elixir 1.18+) and runmix deps.compile postgrex --forceonce since Postgrex captures this setting at compile time.
- The Postgres composite type names (
cldr_unit,cldr_unit_with_usage) and aggregate function names are unchanged, so existing databases do not require a schema migration.