decimal v2.0.0-rc.0 Release Notes

Release Date: 2020-01-21 // 9 months ago
  • Decimal v2.0 requires Elixir v1.2+.

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿ”„ Change to return :lt | :eq | :gt
    • ๐Ÿ”„ Change Decimal.cast/1 to return {:ok, t} | :error
    • ๐Ÿ”„ Change Decimal.parse/1 to return {t, binary} | :error
    • โœ‚ Remove :message and :result fields from Decimal.Error
    • โœ‚ Remove sNaN
    • ๐Ÿ“‡ Rename qNaN to NaN
    • โœ‚ Remove deprecated support for floats in
    • โœ‚ Remove deprecated Decimal.minus/1
    • โœ‚ Remove deprecated
    • โœ‚ Remove deprecated Decimal.reduce/1
    • Remove deprecated Decimal.with_context/2, Decimal.get_context/1, Decimal.set_context/1, and Decimal.update_context/1
    • โœ‚ Remove deprecated Decimal.decimal?/1

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ Deprecate Decimal.cmp/2