diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f50145..0820581 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.0 +- `safeCallSync` method added to README + ## 1.0.0-rc.3 - synchronous`safeCallSync` method added for cubits diff --git a/README.md b/README.md index 0ed0be0..a46cf38 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ class MyAppCubit extends SafeCubit { MyAppState Function(UnexpectedError error) get errorState => MyAppErrorState.new; } ``` - +Alternatively, if your cubit method is synchronous, you can wrap it in `safeCallSync` method. Each time an exception occurs, it is caught by the parent class and `MyAppErrorState` is emitted. This state contains an `UnexpectedError` object with additional information about the exception including the exception itself. Both `onSafe` and `safeCall` provide a unique `trackingId` that can be used to track the user actions. Both methods also provide additional parameters: diff --git a/pubspec.yaml b/pubspec.yaml index fb2bd86..6153ed0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: safe_bloc description: An extension to bloc state management library that manages unexpected exceptions. -version: 1.0.0-rc.3 +version: 1.0.0 repository: https://github.com/netglade/safe_bloc issue_tracker: https://github.com/netglade/safe_bloc/issues