Changelog#
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog ,
and this project adheres to Semantic Versioning
.
[1.0.0] - 2023-05-07#
The library was refactored and improved drastically with more functionality and better design, the previous version, however, is not supported and no longer maintained, and almost everything is a breaking change.
This section highlights the most remarkable changes;
Added#
The
Reporterused to gather failures between functions and reports them,
it is also used to execute functions (normal or async) in an isolated environment to automatically capture errors.The
Failurenamed tuple to encapsulate failure information.The
FailureExceptionis custom exception that stops the execution and sends failure information to the outer layer scope or handler.The
@scopeddecorator that automatically labels the function’s scope with its name or a custom name and processes the passed reporter, supports both normal and asynchronous functions.The
Handlerobject used to capture and process failures eitherFailureExceptionorFailurefrom the reporter, it supports multiple handler functions and conditional handlers that only targets a specific group of failures.The
print_failureis a default handler that prints the failure information as log with a date to the standard output.The
Notutility used to counteract a filter or filters.Full library documentation using
sphinxandmyst_parser.
Changed#
All internal and external API was changed between version
0and version1.
Removed#
Dropped plugin support for third party failure handlers, they can be directly implemented by the user.
handlein favor ofHandlerwith much more functionality.scopeandScopedin favor of a more sophisticated failure reporterReporter.
[0.1.0] - 2023-04-04#
First release.