responsibility_chain 2.1.1
responsibility_chain: ^2.1.1 copied to clipboard
An asynchronous Responsibility Chain design pattern implementation with functional and object-oriented approaches to implementing handlers of responsibility.
2.1.1 #
- Reverted
IResponsibilityNodeBaseto an abstract class: 2.1.0 made it an interface class, which broke classes extending it. It can be both extended and implemented again. - Fixed
handlethrowing aConcurrentModificationErrorwhen a node was chained while it was running. Nodes chained during ahandlecall are now used starting from the next call. - Lowered the
metaconstraint to^1.9.1, so the package resolves on Dart 3.0+ and on Flutter versions that pin oldermetaversions again. - Updated the documentation and the example to chain object handlers by their
callmethod, which avoids theimplicit_call_tearoffslint. - Fixed the outdated library documentation and the README badge link.
2.1.0 #
- Made the IResponsibilityNodeBase an interface instead of abstract class, so that classes that already extend other classes can still be responsibility nodes.
- Lifted the Dart SDK version constraint to
>=3.0.0. - Upgraded package dependencies.
- Updated GitHub Actions workflows.
2.0.0 #
- Unified the handler types with new
IResponsibilityNodesignature andIResponsibilityNodeBasehint interface. - Added a
chainmethod to replace the existingnodeandfuncNodemethods. - Removed the
ResponsibilityNode,FunctionNode,FunctionHandler,ResponsibilityChain.node, andResponsibilityChain.funcNodeentities.
1.1.0 #
- Unified the handler types with new
IResponsibilityNodesignature andIResponsibilityNodeBasehint interface. - Added a
chainmethod to replace the existingnodeandfuncNodemethods. - Deprecated the
ResponsibilityNode,FunctionNode,FunctionHandler,ResponsibilityChain.node, andResponsibilityChain.funcNodeentries. These will be removed in 2.0.0.
1.0.3 #
- Reordered the CHANGELOG.md for the latest changes to appear first.
1.0.2 #
- Raised the maximum Dart SDK version to support Dart 3.
1.0.1 #
- Added exports for the
FunctionHandlerandVoidFunctionHandlertypedefs to allow easier implementation of the function handlers. - Removed debug prints.
1.0.0 #
- Initial version.