Releases: elixir-cldr/cldr_numbers
Cldr Numbers version 2.35.1
Cldr Numbers version 2.35.0
Breaking changes
- The new OTP 28 re module is largely - but not completely - compatible with the version on OTP 27 and earlier. One of the noted differences during testing is that on OTP 27, the bitcoin symbol
₿
is not part of the set of Unicode symbols (categorySc
). In OTP 28 it is. Therefore there may be minor differences in how numbers and money with the currency bitcoin are formatted. During testing, these were the only test failures detected between OTP 27 and OTP 28.
Bug Fixes
- Support Elixir 1.19 and OTP 28 without errors or warnings. Primarily this relates to changes to OTP's new :re module and Elixir's evolving type system.
Cldr Numbers version 2.34.1
Bug Fixes
- Fix compilation failures related to compile-time nested alias issues. Thanks to @TimisRobert for the issues. Closes ex_cldr #256.
Cldr Numbers version 2.34.0
Enhancements
-
Updates to CLDR 47 data.
-
Adds
:separators
option toCldr.Number.to_string/2
,Cldr.Number.Parser.parse/2
andCldr.Number.Parser.scan/2
. This option is for selecting from the available alternative grouping and decimal separators. The default isseparators: :standard
which is avaialble for all locales and number systems that have separators. Some locales, for exampleen-ZA
, may have an alternative set of separators. In the case ofen-ZA
, the alternative isseparators: :us
. -
Adds
:number_system
as an option toCldr.Number.Parser.parse/2
.
Cldr Numbers version 2.33.6
Bug Fixes
- Document
currency_symbol: :none
. This option formats a currency amount using a format that does not include a currency symbol.
Cldr Numbers version 2.33.5
Bug Fixes
- Fix formatting currencies when the CLDR regex for "before currency match" is invalid in the Erlang regex engine. Thanks to @Terbium-135 for the issue. Closes ex_money issue #178.
Cldr Numbers version 2.33.4
Bug Fixes
- Fixes unquoting invalid AST on the upcoming Elixir 1.18. Thanks very much to @sabiwara for the PR. Thanks too to @SteffenDE for the report. Closes #53.
Cldr Numbers version 2.33.3
Bug Fixes
- Fix specs to suport dialyzer flags
:error_handling, :unknown, :underspecs, :extra_return, :missing_return
Cldr Numbers version 2.33.1
Bug Fixes
- Add
config/prod.exs
soMIX_ENV=prod
compilation succeeds. Thanks to @camelpunch for the report. Closes #49.
Cldr Numbers version 2.33.0
Enhancements
-
Update to CLDR 45.0 data.
-
Support currency formatting when the given currency in a given locale uses a specific symbol that replaces the decimal separator. The only known example is the Cape Verde escudo. A formatted example formatting 20 CVE is
20$00
.