drip_core 0.1.0-alpha
drip_core: ^0.1.0-alpha copied to clipboard
High-performance, zero-dependency reactive engine for the DRIP framework. Synchronous-only tracking with microtask coalescing.
0.1.0-alpha - 2024-05-13 #
Initial Release of the DRIP Reactive Engine.
Added #
DripState<T>— atomic reactive value with version clock and equality checkDripComputed<T>— lazy, cached derived value with automatic dependency trackingDripEffect— side-effect runner with automatic re-execution on dependency changeDripScope— lifetime owner with LIFO disposal guaranteeDripBatch— microtask-based coalescing scheduler (O(1) propagation passes)TrackingContext— stack-based, synchronous-only dependency registrationEquality<T>interface withDefaultEqualityandIdentityEqualityimplementationsDripCircularDependencyError— thrown on circular computed dependencyDripDisposedScopeError— thrown on access to disposed scope- Top-level
dripState<T>()factory function
Architecture #
- Zero Flutter dependency — usable in Dart CLI and server applications
- Zero Zone-based tracking — async gaps never register spurious dependencies
- Pure Dart SDK
>=3.3.0— no third-party runtime dependencies
Testing #
- 30+ unit tests covering all invariants
- CI-gated benchmark tests: write throughput, propagation efficiency, batching