core_model 0.1.1
core_model: ^0.1.1 copied to clipboard
Shared primitives with no Flutter dependency: an ownership lease, a cancellation token, a retry backoff, an injectable clock and staged-initialization timings.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2026-09-20 #
Added #
ClockandSystemClock: the current instant as an injected dependency, so a caller can be handed a clock that reports a time the system clock has not reached.SystemClockis the onlyDateTime.now()behind the interface.DiTimingsandDiStepTiming: how long each step of a staged initialization took, recorded in order and readable after the run, including after it failed.DiStepTimingis a typedef over({String name, Duration duration}), so a caller that already speaks in records needs no conversion.- A library doc on
core_model.dart, which is the package's dartdoc landing page.
Changed #
- Dart SDK constraint raised to
^3.13.4. - Formatter settings dropped from
analysis_options.yaml;lints_tool1.1.1 supplies them. README.mdand the package description cover the whole surface, andREADME.mdinstalls from pub.dev rather than by git ref.
0.1.0 - 2026-09-04 #
Added #
- First released version:
Lease,CancelToken,RetryBackoffandRetryNotifierwith their tests;Guid,IDeviceInfoand a platform-neutralVoidCallback.
Changed #
- Versioned
0.1.0: the API is young and may still move. The build number a Flutter template writes means nothing on a library and is gone.