Skip to content

Releases: kipcole9/money

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.

Money version 5.7.1

08 Dec 08:11
Compare
Choose a tag to compare

Bug Fixes

  • Fix dialyzer warnings on Elixir 1.12 and 1.13

  • Replace use Mix.Config with import Config in configuration files since the former is deprecated.

Money version 5.7.0

29 Oct 01:56
Compare
Choose a tag to compare

Note this release requires at least Elixir 1.10

Enhancements

Deprecations

  • Don't call deprecated Cldr.Config.get_locale/2, use Cldr.Locale.Loader.get_locale/2 instead.

Money version 5.5.5

15 Aug 04:00
f087d35
Compare
Choose a tag to compare

Bug Fixes

  • Allow either phoenix_html version 2.x or 3.x. Thanks to @seantanly for the PR. Closes #129.

Money version 5.5.4

17 Jun 05:28
Compare
Choose a tag to compare

Bug Fixes

  • Support t:Cldr.Number.Format.Options as an argument to Money.to_string/2. Thanks to @jeroenvisser101 for the PR. Closes #127.

Money version 5.5.1

18 Feb 04:31
Compare
Choose a tag to compare

Bug Fixes

  • Fix formatting a t:Money that has no :format_options key. That can happen if re-hydrating a t:Money using :erlang.binary_to_term/1 from an older version of ex_money that doesn't have the :format_options key in the struct. Thanks to @coladarci. Fixes #123.