Releases: deckarep/golang-set
Releases · deckarep/golang-set
v2.7.0 - Proper support for JSON Marshaling/Unmarshaling, no more workarounds needed.
What's Changed
- Mention of sister project: Ziglang-set for Zig developers
- Once and for all fixes a long-standing JSON bug that was introduced with a previously large refactor which was designed to remove a layer of pointer indirection. It turns out, it's required to properly support Unmarshaling without having to resort to workarounds. Contribution by @ryclarke - Thank you! #122
Full Changelog
v2.6.0 - Adds ContainsOne method to mitigate allocations
What's Changed
- Adds ContainsOne method to mitigate allocation as discussed in: #118
- Comprehensive benchmarks and unit-tests added to warrant and prove this change out
- Brought to you by: @vladvalkov - Thank You and Happy Holidays! 🎊 🍾
Full Changelog
v2.5.0 - Adds generic Sorted method to easily get elements into a sorted slice.
What's Changed
- Add Sorted method - easily get elements of a set into a sorted slice.
- Move to own file that can be build tagged
- Also test go 1.21
Full Changelog
v2.4.0 - Improvements/fixes to docs and a new IsEmpty method.
What's Changed
- Docs were fixed for the Union method - prepared by @ravanscafi
- Install instructions added to README.MD - prepared by @cemremengu
- New
IsEmpty
method added - prepared by @Jibaru
Full Changelog
Patch Release: Bug fix affecting JSON deserialization
What's Changed
- After a simplification previous refactor to get rid of one layer of indirection a bug was introduced that affected JSON unmarshaling that resulted in a panic - fix prepared by @fujie-xiyou
Full Changelog
Minor Release: Performance optimization to minimize memory allocs on allocation of Set
What's Changed
- Utilizes map capacity hint in all constructors to minimize memory allocation churn with instantiation and population of Set - originally proposed by @fy0
- New
*WithSize
constructors:NewThreadUnsafeSetWithSize
andNewSetWithSize
to allow for minimizing allocation churn and unnecessary resizing of internal state. - Adds a
RemoveAll
convenience method
Full Changelog
Minor release: better docs, small optimizations, additional convenience methods and constructors.
What's Changed
- Streamline pointer indirection, and docs and optimized Clear method by @fakefloordiv
NewSetFromMapKeys
andNewThreadUnsafeSetFromMapKeys
convenience constructor methods by @jay-babuAppend
method for adding multiple elements in a single command by @SignorMercurio
Full Changelog
Major release with generics support
What's Changed
- Remove dead code by @jeffwidman in #85
- Make
NewThreadUnsafeSet()
take optional vals. by @jeffwidman in #83 - Delete
New*SetFromSlice()
andNewSetWith()
APIs by @jeffwidman in #84 - feat: improve Add performance by @orisano in #88
New Contributors
- @jeffwidman made their first contribution in #85
- @orisano made their first contribution in #88
Full Changelog: v2.0.0...v2.1.0
Fixes Threadsafe bug in PowerSet
- Fixes PowerSet functionality which previously caused panic
- Adds additional unit-testing
Fixes and new API additions.
- Includes Go cleanup.
- New .Each iteration method.
- Locking semantic fixes.