money v1.8.0 Release Notes

Release Date: 2020-10-04 // about 1 year ago
  • ๐Ÿš€Enhancements

    • ๐Ÿ‘Œ Improves error message when Money.parse! fails
    • โž• Add Money.cmp/2 function
    • โž• Add [email protected] to optional list in mix.exs

    ๐Ÿ›  ๐Ÿ›Bug Fixes

    • ๐Ÿ›  Fix: avoic float rounding in Money.to_string
    • ๐Ÿ›  Fix some type specs (did not include valid types)
    • ๐Ÿ›  Fix Elixir 1.11.0 complain about variable usage
    • ๐Ÿ›  Fix duplicate doc for Money.Currency.get/1

Previous changes from v1.7.0

  • ๐Ÿš€Enhancements

    • โž• Add Elixir 1.9 and 1.10 to CI [#97]
    • ๐Ÿ‘Œ Support embedded schema for Money.Ecto.Amount.Type and Money.Ecto.Map.Type ecto types
    • ๐Ÿ‘Œ Support parsing %Decimal{} values in parse/3 and parse!/3 functions
    • ๐Ÿ‘Œ Support Money.to_decimal/1 to return the value as %Decimal{}
    • โž• Add currency ISO 4217 numbers support
    • Money.equals? no longer raises when comparing different currencies
    • ๐Ÿ“œ Money.parse and Money.parse! now accept any number as argument