modularity_contracts 0.2.1 copy "modularity_contracts: ^0.2.1" to clipboard
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.identityKey for imports where multiple instances of the same module class must coexist with different runtime constructor state.
  • ModuleRetentionContext now exposes moduleIdentityKey so Flutter retention can include Module.identityKey in default cache identity.
  • Module.onDispose can now return FutureOr<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 RegistrationStrategy and RegistrationAwareBinder so containers can control how re-registrations behave (used for hot reload / overrides).
  • Added ModuleRetentionPolicy enum (strict, routeBound, keepAlive).

0.0.2 #

  • Added sealPublicScope() and resetPublicScope() to ExportableBinder
  • Added isExportModeEnabled and isPublicScopeSealed getters
  • Improved package metadata for pub.dev (topics, issue_tracker, description)

0.0.1 #

  • Initial release.
1
likes
160
points
79
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Zero-dependency interfaces and contracts for Modularity framework. Defines Binder, Module and other core abstractions.

Homepage
Repository (GitHub)
View/report issues

Topics

#dependency-injection #di #interfaces #contracts

License

MIT (license)

More

Packages that depend on modularity_contracts