Skip to content

Releases: kipcole9/money

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.

Money version 5.5.0

10 Feb 15:43
Compare
Choose a tag to compare

Enhancements

  • Adds format options to t:Money to allow per-money formatting options to be applied with the String.Chars protocol. Thanks to @morinap for the feature request.

  • Adds Money.put_format_options/2

Money version 5.4.0

01 Nov 00:42
Compare
Choose a tag to compare

Enhancements

Money version 5.3.1

26 Sep 06:27
Compare
Choose a tag to compare

Bug Fixes

  • Support nimble_parsec versions that match ~> 0.5 or ~> 1.0

Money release 5.3.0

05 Sep 05:17
Compare
Choose a tag to compare

Bug Fixes

  • Fix parsing money amounts to use Unicode definition of whitespace (set [:Zs:]). Thanks to @sanjibukai for the report.

Enhancements

  • Add Money.sum/2 to sum a list of Money, converting them if required.

Money version 5.2.1

22 Jun 21:03
Compare
Choose a tag to compare

Enhancements

  • Configure the Money.Application supervisor via the arguments to Money.Application.start/2 and configure defaults in mix.exs. This permits different restart strategies and names.

  • Add Money.ExchangeRates.Supervisor.default_supervisor/0 to return the name of the default supervisor which is Money.Supervisor

  • Change Money.ExchangeRates.Supervisor.stop/0 to become Money.ExchangeRates.Supervisor.stop/{0, 1} allowing the supervisor name to be passed in. The default is Money.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

30 May 23:02
Compare
Choose a tag to compare

Enhancements

  • Adds a configuration option :verify_peer which is a boolean that determines whether to verify the client certificate for any exchange rate service API call. The default is true. 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

26 May 07:17
Compare
Choose a tag to compare

Enhancements

  • Extract default currency from locale when calling Money.parse/2 on a money string. The updated docs now say:

    • :default_currency is any valid currency code or false
      that will used if no currency code, symbol or description is
      indentified in the parsed string. The default is nil
      which means that the default currency associated with
      the :locale option will be used. If false then the
      currency assocated with the :locale option 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

28 Apr 23:00
Compare
Choose a tag to compare

Bug Fixes

  • Update the application supervisor spec to the modern module-based approach