github immutable-js/immutable-js 3.0.0

latest releases: v5.0.0-beta.5, v4.3.5, v5.0.0-beta.4...
9 years ago

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.

Don't miss a new immutable-js release

NewReleases is sending notifications on new releases.