driving_conditions 0.5.5
driving_conditions: ^0.5.5 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.
0.5.5 #
Widens the navigation_safety_core constraint to >=0.10.0 <0.12.0.
The previous ^0.10.0 constraint excluded core 0.11.x, so a project that asked
for the current core could not also take this package at its current version.
The resolver silently selected an older release of this package instead, with no
error and no warning. Core 0.11.0 and 0.11.1 are additive (a re-export, and a
percent-to-fraction humidity factory); this package compiles and its full test
suite passes against 0.11.1.
Also removes a dependency_overrides block that referenced sibling packages by
relative path. It was inert for consumers, but it prevented this package from
resolving standalone from its published archive.
No API or behaviour change.
Changelog #
0.5.4 #
- deps: allow
fleet_hazard: ^0.4.0→^0.5.0(the anonymized-HazardZonedignity fix).driving_conditionsconsumes only theFleetReportinput atom and theRoadConditionenum viaFleetHazardConfidenceAdapter— neither changed in fleet_hazard 0.5.0 (only the retainedHazardZone.reportstype was anonymized fromList<FleetReport>toList<ZoneObservation>, which this package never reads). Source-compatible; nolib/code change. Unblocks integrators that pull both packages from pub.dev.
0.5.3 #
- Docs: de-promote the optional native (C FFI)
NativeSafetyScoreSimulationEngine. The README now states the pure-DartCpuSafetyScoreSimulationEngineis the default, and that the native path requires compiling the C library (native/build/lib...) first — it throws (DynamicLibrary.open/UnsupportedError) otherwise, with no silent fallback. Updated the README install snippet pin to^0.5.3. No code change.
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.