driving_conditions 0.5.2
driving_conditions: ^0.5.2 copied to clipboard
Turn weather data into driving safety guidance. Road surface classification, grip estimation, visibility degradation, and Monte Carlo safety scoring. Pure Dart, no Flutter dependency.
Changelog #
0.5.2 #
- Republish from the embedded-target Dart 3.10.1 SDK (Flutter 3.38.3) to correct a stale
^3.11.0SDK floor in the previously-published artifact. No source or behavior change; the source already declaredsdk: ^3.10.0. Restorespub getfor embedded/automotive Dart consumers on Dart 3.10.x.
0.5.1 — 2026-05-10 — Refresh cascade-stale dependency constraints #
driving_weather: ^0.3.0→^0.4.0(consumer-side refresh after driving_weather 0.4.0 release earlier the same day).fleet_hazard: ^0.3.0→^0.4.0.- No source changes; pubspec dep-constraint refresh only.
0.5.0 #
- Dep modernization (republish cascade): bump
navigation_safety_core: ^0.1.0 → ^0.10.0(closes 9-version stale dep) +snow_rendering: ^0.1.0 → ^0.2.0(closes 1-version stale dep). NSC dep update consumes additive surface only (no breaking changes per NSC CHANGELOG 0.2.0–0.10.0). Closes 2-month publish-debt (pub.dev last at 0.3.0 from 2026-03-15). - New:
FleetConfidenceProviderabstract interface — pluggable fleet confidence for safety simulation. - New:
ConstantFleetConfidenceProvider— explicit named replacement for the0.8literal. - New:
FleetHazardConfidenceAdapter— derives confidence fromList<FleetReport>using road condition safety factors (dry 1.0, wet 0.7, snowy 0.4, icy 0.1). CpuSafetyScoreSimulationEngine,NativeSafetyScoreSimulationEngine, andSafetyScoreSimulatornow accept an optionalFleetConfidenceProvider. Default behaviour is unchanged (0.8 constant).- Native
simulation_run_batchC function now acceptsfleet_confidenceas a parameter. Shared library rebuilt. - Adds
fleet_hazard: ^0.3.0as a dependency.
0.4.0 #
- Refactor: drop direct
navigation_safetypackage dependency; consumenavigation_safety_core(pure-Dart core) only. Tracks the NSC pure-Dart core extraction (commit86632c4); driving_conditions only uses the core safety vocabulary types and never required the Flutter+BLoC surface. - Breaking:
SafetyScoreSimulator.simulate()andSafetyScoreSimulationEngine.simulate()now returnSimulationResultinstead ofSafetyScore. - New type:
SimulationResult— wraps the meanSafetyScorewith statistical measures:variance,incidentCount, and (native engine only)executionMs. - Promoted:
NativeSafetyScoreSimulationEngineis now part of the public API. Edge developers can instantiate it directly to access native-engine execution timing. CpuSafetyScoreSimulationEngine.simulate()now computes and exposesvarianceandincidentCountfrom the Monte Carlo runs.
0.3.0 #
- Harmonize package version to 0.3.0 for Sprint 80 Direction F.
- Align internal ecosystem dependency constraints to ^0.3.0 where applicable.
- No breaking API changes in this package for this release.