Skip to content

Commit 0f71e25

Browse files
committed
Release v2.0.0-rc.0
1 parent 70c0d3a commit 0f71e25

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# CHANGELOG
22

3+
## v2.0.0-rc.0 (2020-01-21)
4+
5+
Decimal v2.0 requires Elixir v1.2+.
6+
7+
### Breaking changes
8+
9+
* Change `Decimal.compare/2` to return `:lt | :eq | :gt`
10+
* Change `Decimal.cast/1` to return `{:ok, t} | :error`
11+
* Change `Decimal.parse/1` to return `{t, binary} | :error`
12+
* Remove `:message` and `:result` fields from `Decimal.Error`
13+
* Remove sNaN
14+
* Rename qNaN to NaN
15+
* Remove deprecated support for floats in `Decimal.new/1`
16+
* Remove deprecated `Decimal.minus/1`
17+
* Remove deprecated `Decimal.plus/1`
18+
* Remove deprecated `Decimal.reduce/1`
19+
* Remove deprecated `Decimal.with_context/2`, `Decimal.get_context/1`, `Decimal.set_context/1`,
20+
and `Decimal.update_context/1`
21+
* Remove deprecated `Decimal.decimal?/1
22+
23+
### Deprecations
24+
25+
* Deprecate `Decimal.cmp/2`
26+
327
## v1.9.0-rc.0 (2020-01-07)
428

529
### Enhancements

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Decimal.Mixfile do
22
use Mix.Project
33

4-
@version "2.0.0-dev"
4+
@version "2.0.0-rc.0"
55

66
def project() do
77
[

0 commit comments

Comments
 (0)