Skip to content

Releases: elixir-cldr/cldr_numbers

Cldr Numbers version 2.35.1

22 Apr 23:50
Compare
Choose a tag to compare

Bug Fixes

  • Fix formatting currency amounts when the currency format does not have a digit placeholder (0 and #) directly next to the currency placeholder (¤). Thanks to @benregn for the report. Closes #54.

Cldr Numbers version 2.35.0

26 Mar 06:29
Compare
Choose a tag to compare

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 (category Sc). 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

22 Mar 10:11
Compare
Choose a tag to compare

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

18 Mar 04:18
Compare
Choose a tag to compare

Enhancements

  • Updates to CLDR 47 data.

  • Adds :separators option to Cldr.Number.to_string/2, Cldr.Number.Parser.parse/2 and Cldr.Number.Parser.scan/2. This option is for selecting from the available alternative grouping and decimal separators. The default is separators: :standard which is avaialble for all locales and number systems that have separators. Some locales, for example en-ZA, may have an alternative set of separators. In the case of en-ZA, the alternative is separators: :us.

  • Adds :number_system as an option to Cldr.Number.Parser.parse/2.

Cldr Numbers version 2.33.6

12 Feb 19:13
Compare
Choose a tag to compare

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

26 Jan 10:23
Compare
Choose a tag to compare

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

12 Nov 13:15
Compare
Choose a tag to compare

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

16 Aug 06:24
Compare
Choose a tag to compare

Bug Fixes

  • Fix specs to suport dialyzer flags :error_handling, :unknown, :underspecs, :extra_return, :missing_return

Cldr Numbers version 2.33.1

22 Apr 21:33
Compare
Choose a tag to compare

Bug Fixes

  • Add config/prod.exs so MIX_ENV=prod compilation succeeds. Thanks to @camelpunch for the report. Closes #49.

Cldr Numbers version 2.33.0

20 Apr 22:06
Compare
Choose a tag to compare

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.