v3.0.0 brings the Immutable collection API closer to ES6 Map and Set, introduces opt-in lazy operations, clarifies the differences between keyed and non-keyed collections and more.
A lot has changed, please check out the upgrade guide for more details and help for upgrading your code to work with this new version of the library.
New:
- Collection methods (
map
,filter
, etc) are now eager by default. Seq
andtoSeq
for explicit lazy operations.- Renamed
Sequence
toIterable
- Renamed
Vector
toList
- Renamed
length
tosize
- Constructors now always accept Iterable.
empty()
andfrom()
removedof(...values)
on indexed and set collections
contrib/
directoryCursor
now moved to contrib.
- "is type" predicates exist on all major Iterable types, such as
Map.isMap()
. groupBy()
andcountBy()
return concreteMap
.- Added:
keyOf()
andlastKeyOf()
on KeyedIterable are similar toindexOf()
andlastIndexOf()
on IndexedIterable.