Skip to content

Releases: kipcole9/money

Money version 5.12.3

13 Oct 08:59
Compare
Choose a tag to compare

Bug Fixes

  • Fix NaN and Inf amount detection to be compatible with Decimal 1.x and 2.x. Thanks to @LostKobrakai for the PR. Closes #144.

Money version 5.12.2

12 Oct 17:52
Compare
Choose a tag to compare

Bug Fixes

  • Don't create "NaN" or "Inf" valued Money structs. Thanks for @coladarci for the report. Closes #143.

Money version 5.12.1

26 Aug 22:00
Compare
Choose a tag to compare

Bug Fixes

  • Removes compile-time warnings for Elixir 1.14 (use Application.compile_env/2, not Application.get_env/2)

Money version 5.12.0

08 Jun 00:24
Compare
Choose a tag to compare

Enhancements

  • Add Money.localize/2 to convert a money amount into the currency in affect for the given locale.

Money version 5.11.0

13 May 21:19
Compare
Choose a tag to compare

Enhancements

  • Adds support for ISO 24165 Digital Tokens (crypto currency). Digital Token-based money behaves the same as currency-based money with the following exceptions due to limited data availability:

    • Digital token names are not localized (there is no localised data available in CLDR)
    • Digital token names are not pluralized (also because there is no localised data available)
    • Digital token amounts are never rounded (there is no data available to standardise on rounding rules or the number of fractional digits to round to)

Money version 5.10.0

05 Apr 20:40
Compare
Choose a tag to compare

Enhancements

Money version 5.9.0

20 Feb 23:38
Compare
Choose a tag to compare

Enhancements

  • Updates to ex_cldr version 2.26.0 and ex_cldr_numbers version 2.25.0 which use atoms for locale names and rbnf locale names. This is consistent with other elements of t:Cldr.LanguageTag where atoms are used when the cardinality of the data is fixed and relatively small and strings where the data is free format.

  • Adjusts the output of Money.inspect/2 to be executable code. Instead of #Money<:USD, 100> the output will be Money.new(:USD, "100"). This improved developer experience by allowing for copy/paste of inspect/2 results into iex. It is also in line with similar changes being made in Elixir, Decimal and others.

  • Add documentation for :currency_symbol option for Money.to_string/2. Although its an option that is passed through to Cldr.Number.to_string/3, its very relevant to t:Money formatting.

Money version 5.7.4

22 Dec 20:09
Compare
Choose a tag to compare

Bug Fixes

  • Fix Money.to_integer_exp/1 when t:Money has a negative amount. Thanks to @hamptokr for the report and the PR.

Money version 5.7.3

18 Dec 22:38
Compare
Choose a tag to compare

Bug Fixes

  • Fixes retrieving exchange rates on OTP releases before OTP 22. Thanks to @fbettag for the report, collaboration and patience.

Money version 5.7.2

16 Dec 21:01
Compare
Choose a tag to compare

Bug Fixes

  • Fix spec for Money.from_integer/3. Thanks to @jdewar for the report.

Enhancements

  • Support a :fractional_digits option for Money.from_integer/3 and improve the documentation.