Releases: 92green/unmutable
Releases · 92green/unmutable
fix: set() did not correctly set new negative index values
Bug fix for set()
with new negative index values like set(-4, 'hello')(['a','b'])
add: stableSortBy() and toEntries()
- add
stableSortBy()
, a stable sort. - add
toEntries()
fix: shallow equals should treat NaN === NaN
unmutable@0.46.1 unmutable@0.46.1
Add setMutate(), deleteMutate(), flip(), mapEntries(), mapKeys(), interleave(), speed up map(), filter()
unmutable@0.46.0 unmutable@0.46.0
Add replaceEqual(), replaceEqualDeep()
- add
replaceEqual()
- add
replaceEqualDeep()
- No breaking changes
Add startsWith(), endsWith(), fix single argument reduce()
- add
startsWith()
- add
endsWith()
- fix: reduce and reduceRight should work without initial reductions
- No breaking changes
Add remove(), remove recordAsObject()
- BREAKING CHANGE remove
recordAsObject
- add
remove()
function, as Immutable.js has this as an alias ofdelete()
Add top level exports and top level errors, fix flow
- BREAKING CHANGE: throw
TypeError
instead ofError
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
tounmutable.js
so origin of errors is clearer
Babel runtime fix
- 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
-
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