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.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 beMoney.new(:USD, "100")
. This improved developer experience by allowing for copy/paste ofinspect/2
results intoiex
. It is also in line with similar changes being made inElixir
,Decimal
and others. -
Add documentation for
:currency_symbol
option forMoney.to_string/2
. Although its an option that is passed through toCldr.Number.to_string/3
, its very relevant tot:Money
formatting.