Repository navigation
Releases
Releases · thalesfsp/go-common-types
v0.2.7 - critical collection fixes
Fixes collection deadlocks, concurrent-access crashes and data integrity failures.
- Run callbacks and serialization over snapshots; decode outside locks and commit atomically.
- Snapshot binary operations, make indexed set operations atomic, and give LastN independent storage.
- Replace formatting-based set identity with Go equality for comparable values and structural equality otherwise.
- Preserve percentile fractions on the 0..1 scale and safely reject invalid inputs.
- Encode and decode actual BSON documents, preserving typed values and ordered keys.
Compatibility: requires Go 1.26.11 or newer; local development and CI use Go 1.27.4. SafeSet insertion and membership use documented O(n) equality scans. Public method signatures and the existing ToSlice borrowed-view behavior are retained. Callbacks observe container snapshots; element references are not deep copied.
Validation: 151 passing unit/regression cases, 95.5% coverage, race checks, vet, vulnerability checks and zero lint issues. Original-code negative controls reproduce all seven defects. Hosted PR and default-branch CI passed before publication.