Skip to content

Commit

Permalink
Release v2.0.0-rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Jan 21, 2020
1 parent 70c0d3a commit 0f71e25
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# CHANGELOG

## v2.0.0-rc.0 (2020-01-21)

Decimal v2.0 requires Elixir v1.2+.

### Breaking changes

* Change `Decimal.compare/2` 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 `Decimal.new/1`
* Remove deprecated `Decimal.minus/1`
* Remove deprecated `Decimal.plus/1`
* 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`

## v1.9.0-rc.0 (2020-01-07)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Decimal.Mixfile do
use Mix.Project

@version "2.0.0-dev"
@version "2.0.0-rc.0"

def project() do
[
Expand Down

0 comments on commit 0f71e25

Please sign in to comment.