Skip to content

3.0.0

Compare
Choose a tag to compare
@leebyron leebyron released this 29 Oct 03:21
· 1119 commits to main since this release

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 and toSeq for explicit lazy operations.
  • Renamed Sequence to Iterable
  • Renamed Vector to List
  • Renamed length to size
  • Constructors now always accept Iterable.
    • empty() and from() removed
    • of(...values) on indexed and set collections
  • contrib/ directory
    • Cursor now moved to contrib.
  • "is type" predicates exist on all major Iterable types, such as Map.isMap().
  • groupBy() and countBy() return concrete Map.
  • Added: keyOf() and lastKeyOf() on KeyedIterable are similar to indexOf() and lastIndexOf() on IndexedIterable.