Repository navigation
v0.7.4
Documented complexity, enforced bounds
Summary
v0.7.4 adds a complexity bounds contract documenting the cost of every public method, resolves all known complexity violations, and applies a focused readability pass to volume internals. No API changes; no migration required.
Highlights
CONTRACT_COMPLEXITY.md: Every public method now has documented cost in store calls, memory, and CPU — cost exceeding the bound is a bug- 4 complexity violations fixed: sort-at-load-time for blocks (CX-1/CX-6), single-pass
ListPartitions(CX-3),filepath.WalkDirforfsStore.List(CX-7) - 3 complexity items reclassified:
ListManifestsvalidation Gets (contractually required),Snapshot(id)degraded fallback (documented path),Writepartitioned memory (interface aliases, not copies) - Cross-references: 4 existing contracts now link to
CONTRACT_COMPLEXITY.mdfor cost definitions - Readability pass: 10×
fmt.Errorf→errors.New, extractedresolveParentmethod andensureBlocksSortedByOffsethelper
Upgrade Notes
- No API changes; all improvements are internal and transparent
- No migration required; existing data is compatible without modification
- Safe to upgrade from v0.7.3
References
Full Changelog: v0.7.3...v0.7.4
What's Changed
- docs(contracts): 📝 add complexity bounds contract and cross-references by @justapithecus in #129
- perf(core): ⚡️ resolve complexity violations and activate CONTRACT_COMPLEXITY by @justapithecus in #130
- refactor(core): ♻️ post-complexity readability pass in volume.go by @justapithecus in #131
- docs(meta): 📝 v0.7.4 changelog and README update by @justapithecus in #132
Full Changelog: v0.7.3...v0.7.4