levit_dart_core 0.0.11
levit_dart_core: ^0.0.11 copied to clipboard
Core Dart runtime for Levit scopes, controllers, stores, and reactive ownership.
0.0.11 #
- Add reusable
LevitResourceOwnerandLevitResourceOwnershiplifecycle contracts withown,autoDispose,disposed, and idempotent awaited cleanup. - Extend auto-linking to every returned
LevitResourceOwner, not onlyLevitController. - Apply resource ownership consistently to controllers and stores.
- Expose
bindExistingthroughLevit,LevitRef, and store references. - Make
Levit.delete,Levit.reset, andLevit.runInScopeawait deterministic scope teardown. - Updated internal package constraints to
^0.0.11.
0.0.10 #
LevitRef.scopenow throws a clearStateErrorwhen accessed before the store is resolved in a scope (replaces a null-check crash).- Coordinated release version bump.
- Updated internal package constraints to
^0.0.10.
0.0.9 #
- Clarified
permanentonput/lazyPut/lazyPutAsyncvs scopedispose(force). - Documented
autoDispose(LxWorker(...))as the preferred controller reload recipe. - Coordinated release version bump.
- Updated internal package constraints to
^0.0.9.
0.0.8 #
- Hardened controller cleanup handling for known disposable types and centralized fallback cleanup paths.
- Improved auto-linking diagnostics for missing capture-zone state.
- Coordinated release version bump.
- Updated internal package constraints to
^0.0.8.
0.0.7 #
- Bumped version to 0.0.7
0.0.6 #
Breaking Changes #
- REMOVED
LevitState. Replaced withLevitStore.- API remains largely similar but class name and semantics have shifted to "Store".
New Features #
- Enhanced LevitRef:
- Added
ref.put(),ref.lazyPut(), andref.lazyPutAsync()allowing full DI registration capabilities directly from within a store/controller definition.
- Added
0.0.5 #
- Production-ready documentation (Effective Dart compliance)
- Added
topicsto pubspec for improved discoverability - Performance and stability improvements
0.0.4 #
- Optimized
Zone.currentlookups for auto-linking (fast-path when no capture is active). - Integrated with unified
LevitReactiveMiddlewaresystem. - Renamed
LevitScopeMiddleware.onInittoonDependencyInit. - Improved controller lifecycle management and async initialization.
0.0.3 #
- Linting fixes and dependencies update.
0.0.2 #
- Added example project.
0.0.1 #
- Initial release.