errflow 0.5.0 errflow: ^0.5.0 copied to clipboard
A Dart package for easier and more comprehensible flow of error handling and logging.
0.5.0 #
- Refactor error notifiers.
- Dart 2.15 or above is required.
- Add
CombinedResult
andcombiningScope()
. - Rename local variables and a test file.
- Improve documentation.
- Improve the example and add another one.
0.4.1 #
- Update dependencies.
- Update CI workflow.
- Improve documentation and example.
- Disable directives_ordering.
0.4.0 #
- Stable null safety release.
0.4.0-nullsafety.2 #
- Allow the default error value to be null.
- Minor improvements of documentation, tests, etc.
0.4.0-nullsafety.1 #
- Fix the issue of
Loggingnotifier.set()
not passing the provided error to listeners. - Fix the signatures of the default logger and some others to match
ErrFlow.logger
. - Change the return types of scopes and logger from
Future
toFutureOr
. - Minor improvements of documentation, tests, etc.
0.4.0-nullsafety.0 #
- Migrate to null safety.
0.3.0 #
- BREAKING CHANGE
- Change logger signature in accordance with new api of firebase_crashlytics package.
- Update documentation and dependencies.
0.2.2 #
- Internal changes
- Rename
defaultError
todefaultValue
. - Change
_State
class tomixin
. - Change factory constructors to named constructors.
- Rename
- New features
- Add
toString()
to each public class for better outputs byprint()
. - Add
defaultValue
toErrFlow
. - Add
hasError
toErrNotifier
,LoggingErrNotifier
andIgnorableErrNotifier
.
- Add
- Small improvements of documentation
0.2.1 #
- Fix inheritance relationship of IgnorableNotifier to be consistent with other classes.
0.2.0 #
- Correct version number.
- Minor version number should have been incremented for the last breaking changes.
0.1.4 #
- BREAKING CHANGES to fix a serious flaw in concurrency.
- Major API changes.
ErrFlow
does not extendErrInfo
.ErrInfo
is renamed toErrNotifier
.- The first parameter of a listener is renamed from
type
toerror
. - An
ErrNotifier
object is passed to the function executed byscope()
.set()
andlog()
need to be called on the passed object.
lastError
is a property ofErrNotifier
, not ofErrFlow
.loggingScope()
andignorableScope()
are added.
- File containing
ErrNotifier
cannot be imported separately.
- Major API changes.
- Update documentation, tests and example.
0.1.3 #
- Improve README.
- Explain assertion errors.
0.1.2 #
- Enable omit_local_variable_types rule.
- Minor updates of documentation.
0.1.1 #
- Minor updates of documentation.
- Lower the
meta
version to avoid a dependency issue.
0.1.0 #
- Initial release