Reakt 2.0.0.RELEASE
·
64 commits
to master
since this release
We went to version 2.x because we are using semantic versioning and we changed the interface in a breaking way.
Ref
has been renamed to Expected
.
Result.getRef()
has been renamed to Result.expect()
.
Result.thenRef()
has been renamed to Result.thenExpect()
.
We added a orElse
to Result
and this allows you to provide a default value if the result resulted in an error.
Note that a Promise
is a Result
and a promise is a Callback
, thus, it has the same changes as Result
.