cubepod_core 0.1.5
cubepod_core: ^0.1.5 copied to clipboard
Core dependency injection and inversion of control container for the CubePod framework.
0.1.5 #
- Fixed
CubeDevToolsObserver: removed the self-delegatingimplements CubeObserverimplementation that could cause aStackOverflowError. It is now a clean static holder (CubeDevToolsObserver.instance) for the active observer. - Fixed
CircularDependencyErrormessage grammar: "dep" → "dependency". - Improved
CubeScope.of()error message to include a remediation hint. - Added comprehensive
///doc comments to all public APIs:CubeContainer,CubePod,Scope,FactoryFunc,Disposable. - Added
CircularDependencyErrordetection test. - Added
ResourcePoolunit tests.
0.1.4 #
Finally got around to fixing a few things that were bugging me.
Singleton resolution is now O(1) — singletons live in their own separate map so cached lookups never share a bucket with factory registrations. The hot-path for CubePod.get<T>() no longer touches the factory map at all once a singleton is cached.
Also cleaned up the scoped container teardown. Calling CubePod.popScope() now correctly calls dispose() on all scoped instances that implement Disposable.
Added DevTools observer hooks for dependency registration and resolution events. Useful for debugging DI graphs in development.
0.1.2 #
First stable release of the DI container and observability layer. Includes cycle detection, factory/singleton/scoped lifetimes, and named registrations.
0.1.0 #
Initial release.