Releases: ex-money/money
Money version 5.5.0
Enhancements
-
Adds format options to
t:Moneyto allow per-money formatting options to be applied with theString.Charsprotocol. Thanks to @morinap for the feature request. -
Adds
Money.put_format_options/2
Money version 5.4.0
Enhancements
- Add support for CLDR 38
Money version 5.3.1
Bug Fixes
- Support
nimble_parsecversions that match~> 0.5 or ~> 1.0
Money release 5.3.0
Bug Fixes
- Fix parsing money amounts to use Unicode definition of whitespace (set
[:Zs:]). Thanks to @sanjibukai for the report.
Enhancements
- Add
Money.sum/2to sum a list ofMoney, converting them if required.
Money version 5.2.1
Enhancements
-
Configure the
Money.Applicationsupervisor via the arguments toMoney.Application.start/2and configure defaults inmix.exs. This permits different restart strategies and names. -
Add
Money.ExchangeRates.Supervisor.default_supervisor/0to return the name of the default supervisor which isMoney.Supervisor -
Change
Money.ExchangeRates.Supervisor.stop/0to becomeMoney.ExchangeRates.Supervisor.stop/{0, 1}allowing the supervisor name to be passed in. The default isMoney.ExchangeRates.Supervisor.default_supervisor/0
Bug Fixes
- Add back the name of the Application supervisor,
Money.Supervisor. Thanks for the report of the regression to @jeroenvisser101. Fixes #117.
Money version 5.2.0
Enhancements
- Adds a configuration option
:verify_peerwhich is a boolean that determines whether to verify the client certificate for any exchange rate service API call. The default istrue. This option should not be changed without a very clear understanding of the security implications. This option will remain undocumented but supported for now.
Bug fixes
- Handle expired certificate errors on the exchange rates API service and log them. Thanks to @coladarci. Fixes #116
Money version 5.1.0
Enhancements
-
Extract default currency from locale when calling
Money.parse/2on a money string. The updated docs now say::default_currencyis any valid currency code orfalse
that will used if no currency code, symbol or description is
indentified in the parsed string. The default isnil
which means that the default currency associated with
the:localeoption will be used. Iffalsethen the
currency assocated with the:localeoption will not be
used and an error will be returned if there is no currency
in the string being parsed.
-
Add certificate verification for exchange rate retrieval
Money version 5.0.2
Bug Fixes
- Update the application supervisor spec to the modern module-based approach
Money version 5.0.1
Bug Fixes
- Make
nimble_parseca required dependency since it is required for parsing money amounts. Thanks to @jonnystoten for the report.
Money version 4.4.3
Backports a requirement to ensure that nimble_parsec is a required dependency. Using ex_money version 5.x is preferred.