Full Changelog: https://github.com/benbjohnson/immutable/compare/v0.4.2...v0.4.3
Published by benbjohnson almost 2 years ago
Full Changelog: https://github.com/benbjohnson/immutable/compare/v0.4.1...v0.4.2
Published by benbjohnson almost 2 years ago
Full Changelog: https://github.com/benbjohnson/immutable/compare/v0.4.0...v0.4.1
Published by benbjohnson about 2 years ago
This release changes the API to use Go generics. Thanks to @laher for the pull request for that!
Published by benbjohnson almost 4 years ago
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.
Published by benbjohnson about 4 years ago
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! 🎉
Published by benbjohnson over 5 years ago
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.
Published by benbjohnson over 5 years ago