Skip to content

Releases: benbjohnson/immutable

v0.4.3

04 Feb 17:40
590e6a6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.2...v0.4.3

v0.4.2

26 Dec 23:04
92be7cb
Compare
Choose a tag to compare

What's Changed

  • List: varargs for Append,Prepend,NewList by @laher in #33
  • Set + SortedSet with tests by @laher in #34

Full Changelog: v0.4.1...v0.4.2

v0.4.1

21 Dec 20:02
d78c769
Compare
Choose a tag to compare

What's Changed

  • Remove references to []byte keys in README by @banks in #24
  • Allow lists to contain non-comparable elements by @BarrensZeppelin in #28
  • generics: widen map key constraint to 'comparable' by @laher in #29
  • readme updates for latest changes by @laher in #30

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0

04 Oct 16:04
d4a6ab5
Compare
Choose a tag to compare

This release changes the API to use Go generics. Thanks to @laher for the pull request for that!

Refactor builders

17 Nov 19:38
065fdb4
Compare
Choose a tag to compare

There was a bug in previous versions where changes to builders would leak if they used existing collections. The API has been changed so that builders can only be used with new collections and are marked as invalid after fetching the underlying collection.

Built-in hashers & comparers

22 Sep 21:39
505776e
Compare
Choose a tag to compare

This release adds built-in Hasher & Comparer types for all int & uint types (e.g. int, int8, int16, etc) as well as stringand[]byte`.

It also includes reflection-based hasher & comparers for int, uint, and string types that have been aliased . For example, reflection based hashers will be used for a type declared like this:

type ID int

Thanks to @adrianboyko for the reflection-based hashers! 🎉

Efficient Builders

07 Mar 01:48
2afb12f
Compare
Choose a tag to compare

The primary improvement in v0.2.0 is the addition of the ListBuilder, MapBuilder, and SortedMapBuilder. These allow multiple mutations to occur on a List, Map, and SortedMap, respectively, while minimizing allocations. Overall performance can improve by more than 10x depending on how many operations are combined. YMMV.

This release also includes some minor docs changes.

v0.1.1

02 Mar 14:23
4423819
Compare
Choose a tag to compare
  • Fix SortedMapIterator initialization bug.
  • Documentation improvements.

Initial release

01 Mar 21:12
2e0d7d4
Compare
Choose a tag to compare
v0.1.0

v0.1.0