Releases: ex-money/money
Money version 5.10.0
Enhancements
-
Add
Money.zero?/1,Money.positive?/1andMoney.negative?/1. Thanks to @emaiax for the PR. -
Update CLDR to release 41 in ex_cldr version 2.28.0 and ex_cldr_numbers 2.26.0.
Money version 5.9.0
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.LanguageTagwhere 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/2to be executable code. Instead of#Money<:USD, 100>the output will beMoney.new(:USD, "100"). This improved developer experience by allowing for copy/paste ofinspect/2results intoiex. It is also in line with similar changes being made inElixir,Decimaland others. -
Add documentation for
:currency_symboloption forMoney.to_string/2. Although its an option that is passed through toCldr.Number.to_string/3, its very relevant tot:Moneyformatting.
Money version 5.7.4
Bug Fixes
- Fix
Money.to_integer_exp/1whent:Moneyhas a negative amount. Thanks to @hamptokr for the report and the PR.
Money version 5.7.3
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
Bug Fixes
- Fix spec for
Money.from_integer/3. Thanks to @jdewar for the report.
Enhancements
- Support a
:fractional_digitsoption forMoney.from_integer/3and improve the documentation.
Money version 5.7.1
Bug Fixes
-
Fix dialyzer warnings on Elixir 1.12 and 1.13
-
Replace
use Mix.Configwithimport Configin configuration files since the former is deprecated.
Money version 5.7.0
Note this release requires at least Elixir 1.10
Enhancements
- Updates to support CLDR release 40 via ex_cldr version 2.24
Deprecations
- Don't call deprecated
Cldr.Config.get_locale/2, useCldr.Locale.Loader.get_locale/2instead.
Money version 5.5.5
Bug Fixes
- Allow either
phoenix_htmlversion 2.x or 3.x. Thanks to @seantanly for the PR. Closes #129.
Money version 5.5.4
Bug Fixes
- Support
t:Cldr.Number.Format.Optionsas an argument toMoney.to_string/2. Thanks to @jeroenvisser101 for the PR. Closes #127.
Money version 5.5.1
Bug Fixes
- Fix formatting a
t:Moneythat has no:format_optionskey. That can happen if re-hydrating at:Moneyusing:erlang.binary_to_term/1from an older version ofex_moneythat doesn't have the:format_optionskey in the struct. Thanks to @coladarci. Fixes #123.