Skip to content

v4.1.0

Choose a tag to compare

@windischb windischb released this 11 Jan 14:31
· 50 commits to develop since this release

Fixed

  • Optional rules now consistently return objects instead of null - Fixed inconsistency where source-based providers (File, HTTP) returned null on failure while collection-based providers (Environment, CommandLine) returned empty objects. All providers now return {} when data is unavailable, with failures tracked via health monitoring. (#[ISSUE_NUMBER])

Changed

  • Internal API simplification - RuleManager.ComputeAsync now returns ReadOnlyMemory<byte>? instead of (bool include, ReadOnlyMemory<byte>) tuple (internal change, no external impact)

Migration Notes

If you're checking for null to detect configuration failures:

// Before: checking null
if (config == null) { /* handle unavailable */ }

// After: use health monitoring
var health = manager.GetHealthService().Snapshot;
if (health.Rules.Any(r => r.Status == RuleResultStatus.Down)) { /* handle */ }

See ADR-003 for full details.


Full Changelog: https://github.com/cocoar/cocoar.configuration/compare/v4.0.0...v4.1.0