Releases: kipcole9/money
Releases · kipcole9/money
Money version 5.15.1
Bug Fixes
- Fixes the exchange rate retriever, removing the double retrieval loop. Thanks to @dbernheisel for the report. Closes #152.
Money version 5.15.0
Enhancements
- Adds an option
:no_fraction_if_integer
toMoney.to_string/2
. Iftruthy
this option will setfractional_digits: 0
ifmoney
is an integer value. This may be helpful in cases where integer money amounts such asMoney.new(:USD, 1234)
should be formatted as$1,234
rather than$1,234.00
.
Money version 5.14.1
Bug Fixes
-
Fix
Looger.warn/1
warnings by moving toLogger.warning/1
. -
Fix failing test case.
Money version 5.14.0
Enhancements
- Adds
Money.integer?/1
to return a boolean indicatng if a money amount is an integer value (ie has no significant fractional digits).
Money version 5.13.0
Enhancements
-
Updates to ex_cldr version 2.37.0 which includes data from CLDR release 43
-
Tests now assume Decimal ~> 2.0 since the
Inspect
protocol implementation now emits executable code examples.
Money version 5.12.4
Bug Fixes
- Delegates http requests (used in exchange rates retrieval) to
Cldr.Http.get_with_headers/2
. This centralizes all HTTP get requests for allex_cldr_*
libraries to this one function which can then be reviewed and managed for security concerns.
Money version 5.12.3
Bug Fixes
- Fix
NaN
andInf
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
Bug Fixes
- Don't create "NaN" or "Inf" valued Money structs. Thanks for @coladarci for the report. Closes #143.
Money version 5.12.1
Bug Fixes
- Removes compile-time warnings for Elixir 1.14 (use
Application.compile_env/2
, notApplication.get_env/2
)
Money version 5.12.0
Enhancements
- Add
Money.localize/2
to convert a money amount into the currency in affect for the given locale.