driving_consent 0.4.2
driving_consent: ^0.4.2 copied to clipboard
Privacy-first per-purpose consent gate where UNKNOWN equals DENIED. GDPR / CCPA / APPI-ready, pluggable storage. Pure Dart.
Changelog #
0.4.2 — 2026-05-10 — Pana score recovery (Theme α P4) #
- Trim pubspec
descriptionto within the pana 60–180 character target. - Apply
dart formatto clear any formatter findings. - No SDK source changes; metadata + format pass only.
0.4.1 #
- Renamed the
AlertSeverityenum (introduced in 0.4.0) toAlertSeverityClass. The 0.4.0 name collided withAlertSeverityinnavigation_safety_coreandnoaa_nws_adapter, breaking compilation for any consumer importing both packages. The renamed name is consistent with the other instrumentation enums (...Class/...State/...Reason). - Consumers that pulled 0.4.0 in the brief window before 0.4.1 should
update
AlertSeverityreferences onAlertFired.severitytoAlertSeverityClass. The values (info,warning,critical,unknown) are unchanged. - No other API changes.
0.4.0 #
- Added: 4 new
ConsentPurposeenum values for instrumentation-class consent —alertExperienceInstrumentation,voiceExperienceInstrumentation,cohortCalibrationInstrumentation,tripContextInstrumentation. - Added:
InstrumentationServiceabstract interface withrecordEvent,readEvents,getRetention,setRetention,deleteAllEvents,pruneExpired, and a stable per-installdriverPseudonym. - Added:
InstrumentationEventsealed class with 4 subtypes —AlertFired,VoicePaceAdjusted,CohortMultiplierObserved,TripContextCaptured. Zero GPS, zero destination, zero PII. - Added:
InMemoryInstrumentationServicetest-class implementation carrying an explicit not for production comment at the file top; pseudonym derived fromdart:mathRandom.secure()plusDateTime.microsecondsSinceEpoch. No new package dependencies. - Jidoka extended to instrumentation:
recordEventthrowsStateErrorunless the corresponding consent status is explicitlygranted. UNKNOWN equals DENIED at this gate too. - Reserved: data-flow scopes beyond on-device (integrator-aggregated / maintainer-class aggregation) for v0.5+ separate substrate-class decisions. v0.4.0 keeps instrumentation events on-device by default.
- No breaking changes; the v0.3.0 API is preserved verbatim.
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.