From 9ee05fe1c6a92f49e77386ff5b2d7506fb248273 Mon Sep 17 00:00:00 2001 From: higorlapa Date: Sat, 3 Dec 2022 07:53:55 -0300 Subject: [PATCH] feat: add 2.0.0 to CHANGELOG.md --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f85964..6415f0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.0.0] - 12/03/2022 + +* BREAKING: Rename `getSuccess` to `tryGetSuccess` and `getError` to `tryGetError` methods. +* BREAKING: Flip the order of the Success and Error types. Thanks to [JoDeveloper](https://github.com/JoDeveloper) for executing and [RalphBergmannKMB](https://github.com/RalphBergmannKMB) for proposing. + * If you `Result` now you must use `Result` to improve readability. +* Add `onSuccess` and `onError` methods to handle the result only in these cases. + ## [1.0.4] - 07/19/2021 * Adds getSuccess and getError methods