Skip to content

Releases: benbjohnson/immutable

v0.4.3

Choose a tag to compare

@benbjohnson benbjohnson released this 04 Feb 17:40
590e6a6

What's Changed

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

v0.4.2

Choose a tag to compare

@benbjohnson benbjohnson released this 26 Dec 23:04
92be7cb

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

Choose a tag to compare

@benbjohnson benbjohnson released this 21 Dec 20:02
d78c769

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

Choose a tag to compare

@benbjohnson benbjohnson released this 04 Oct 16:04
d4a6ab5

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

Refactor builders

Choose a tag to compare

@benbjohnson benbjohnson released this 17 Nov 19:38
065fdb4

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

Choose a tag to compare

@benbjohnson benbjohnson released this 22 Sep 21:39
505776e

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

Choose a tag to compare

@benbjohnson benbjohnson released this 07 Mar 01:48
2afb12f

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

Choose a tag to compare

@benbjohnson benbjohnson released this 02 Mar 14:23
4423819
  • Fix SortedMapIterator initialization bug.
  • Documentation improvements.

Initial release

Choose a tag to compare

@benbjohnson benbjohnson released this 01 Mar 21:12
2e0d7d4
v0.1.0

v0.1.0