Skip to content

Releases: 92green/unmutable

fix: set() did not correctly set new negative index values

23 Jan 05:29
Compare
Choose a tag to compare

Bug fix for set() with new negative index values like set(-4, 'hello')(['a','b'])

add: stableSortBy() and toEntries()

23 Jan 05:29
Compare
Choose a tag to compare

fix: shallow equals should treat NaN === NaN

23 Jan 05:31
Compare
Choose a tag to compare
unmutable@0.46.1

unmutable@0.46.1

Add setMutate(), deleteMutate(), flip(), mapEntries(), mapKeys(), interleave(), speed up map(), filter()

23 Jan 05:33
Compare
Choose a tag to compare

Add replaceEqual(), replaceEqualDeep()

03 Mar 23:50
Compare
Choose a tag to compare
  • add replaceEqual()
  • add replaceEqualDeep()
  • No breaking changes

Add startsWith(), endsWith(), fix single argument reduce()

03 Mar 23:49
Compare
Choose a tag to compare
  • add startsWith()
  • add endsWith()
  • fix: reduce and reduceRight should work without initial reductions
  • No breaking changes

Add remove(), remove recordAsObject()

11 Feb 20:37
Compare
Choose a tag to compare
  • BREAKING CHANGE remove recordAsObject
  • add remove() function, as Immutable.js has this as an alias of delete()

Add top level exports and top level errors, fix flow

18 Dec 23:43
Compare
Choose a tag to compare

Contains #96, #97

  • BREAKING CHANGE: throw TypeError instead of Error if wrong value is passed to an unmutable function
  • fix: removed broken flow files. Will add these back in manually as I work on the docs (#53), rather than via a script.
  • add: improve error message
  • add: throw errors from top level unmutable file #94
  • add: publish function files from top level, so import map from 'unmutable/map' will work #93
  • refactor: add jest lint
  • refactor: rename prep.js to unmutable.js so origin of errors is clearer

Babel runtime fix

18 Dec 23:42
Compare
Choose a tag to compare
  • Fix execution on non-babel 6 build environments by actually including babel-runtime
  • Also, add preliminary docs with a gatsby site
  • No breaking changes

More unmutable-compatible functions

29 Nov 03:45
Compare
Choose a tag to compare
  • fix: flow types for immutable js predicates

  • add: made the following functions compatible with "unmutable compatible" data types:

    • butLast
    • count
    • every
    • filterNot
    • findEntry
    • findIndex
    • findKey
    • find
    • first
    • forEach
    • isEmpty
    • isNotEmpty
    • keyOf
    • last
    • maxBy
    • max
    • minBy
    • min
    • rest
    • size
    • some
  • Additionally, adding equals to unmutable compatible data types now yields:

    • includes
    • indexOf
    • notEquals
  • No breaking changes