github immutable-js/immutable-js 3.7.0

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

New:

  • merge() family of functions now get the currently merging key as a 3rd argument, in case merge strategy should alter based on key.
  • IndexedCursor now has push(), pop(), unshift() and shift() to more closely mirror List.
  • Records initialize lazily. Creating a new Record type with Record({foo:"bar"}) involves a small bit of work. For applications with a large amount of Records, lazy initialization should help startup times.
  • Maps can now be constructed by a List of Lists instead of only a List of Arrays.
  • toString() prints Map string keys in quotes.

Fixes:

  • is() allows usage of valueOf to return primitives without recursing or encountering a reference error.
  • merge()/union() work inside withMutations when initial collection is empty. #405
  • Producing subcursors using cursor.cursor() now returns a proper typed cursor. #381
  • When a Record is passed to the same Record creation function, it's now returned directly.
  • Ensure Records toString() correctly. #383
  • Iterating over a sliced Seq can no longer cause an infinite recursion. #394
  • Ensure we don't throw when hashing non-extensible object in a modern environment.
  • Fix issue where non-existent function could be called if a collection doesn't have a size.

Don't miss a new immutable-js release

NewReleases is sending notifications on new releases.