modularity_contracts 0.2.1
modularity_contracts: ^0.2.1 copied to clipboard
Zero-dependency interfaces and contracts for Modularity framework. Defines Binder, Module and other core abstractions.
0.2.1 #
- Added
Module.identityKeyfor imports where multiple instances of the same module class must coexist with different runtime constructor state. ModuleRetentionContextnow exposesmoduleIdentityKeyso Flutter retention can includeModule.identityKeyin default cache identity.Module.onDisposecan now returnFutureOr<void>so modules can await async cleanup for databases, sockets, clients, and subscriptions.
0.2.0 #
- Added typed exception hierarchy:
ModularityException,DependencyNotFoundException,CircularDependencyException,ModuleConfigurationException,ModuleLifecycleException. - Added comprehensive dartdoc coverage on all public APIs.
- Added strict
analysis_options.yaml(strict-casts, strict-inference, strict-raw-types). - Migrated to native Dart workspaces (from melos).
0.1.0 #
- Added
RegistrationStrategyandRegistrationAwareBinderso containers can control how re-registrations behave (used for hot reload / overrides). - Added
ModuleRetentionPolicyenum (strict,routeBound,keepAlive).
0.0.2 #
- Added
sealPublicScope()andresetPublicScope()toExportableBinder - Added
isExportModeEnabledandisPublicScopeSealedgetters - Improved package metadata for pub.dev (topics, issue_tracker, description)
0.0.1 #
- Initial release.