inject_x 0.0.6 copy "inject_x: ^0.0.6" to clipboard
inject_x: ^0.0.6 copied to clipboard

A minimalistic Dependency Injestion solution similar to the Angular one

0.0.1 #

  • Initial release

0.0.2 #

  • Automated publishing to pub.dev

0.0.3 #

  • Return the instance it's adding in the method add

0.0.4 #

  • Improve dart compliance

0.0.5 #

  • Implementation of a call to an init() method to allow circular references
  • Added support for async get where the called init method is async
  • Revised internal working (use Type instead of String as key, to avoid possible collisionss)

0.0.6 #

  • contains<T>() to check registration without throwing
  • registerLazy<T>() for factory-based lazy creation
  • registerAsync<T>() for async factory registration
  • Init errors now propagate to the caller in both get and getAsync
  • Cleared _pendingInit on failed async init so the next call retries
  • remove<T>() no longer triggers init() lifecycle
  • Dispose error handling aligned to on NoSuchMethodError
  • clear() disposes all instances even if one throws, always cleans up maps
  • Circular dependency detection with clear error messages
  • Updated SDK constraint to >=3.8.0 <4.0.0 with latest lints and test
  • CI workflow (analyze + test matrix) and README badge
0
likes
160
points
217
downloads

Documentation

API reference

Publisher

verified publisherbabisoft.com

Weekly Downloads

A minimalistic Dependency Injestion solution similar to the Angular one

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on inject_x