All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.34 - 7 May 2019
debounce
- docstring, react example, signature changed
- Remove docstring from test files
- Add
@see
where suitable deepEqual
,elapsedTIme
,distinct
,endsWith
,findIndexBy
,find
- add docstringanyBy
,allBy
,countBy
,filter
,filterBy
,findBy
,remove
- add docstring & testsclone
- add docstring & tests, simpler rewrite, added to main indexescape
,escapeHTML
,escapeRegExp
- move into same file, add docstringfindFiles
- add deprecation notice (useglob
)
checkType
- unused
0.33 - 14 March 2019
- add
mergeTwoWith
andmergeWith
- add
uncurry
- add
rename
- refactor
mergeTwo
andmerge
to depend onmergeTwoWith
andmergeWith
, respectively - refactor
reduce
- likeArray.reduce
, it no longer requires a default accumulator for non-empty arrays
0.32 - 08 March 2019
- add
allBy
andanyBy
- add
entries
andfromEntries
for[key, value][]
<->Object
conversion - add
mergeTwo
toreduce
just two objects, and makemerge
reduce over it
- refactor
pluck
to be much simpler - refactor
pick
to take a predicate and rename the old implementation topickKeys
- delete
props
since it's redundant
0.31 - 06 March 2019
zipFindWith
,zipFind
,zipByWith
,zipBy
- zip variants which allow custom matching predicates
indexBy
- Allow multiple values at each key in the outputany
- Fix docstring so it appears asany
in the documentation (previously it was showing asall
)
0.30.1- 04 March 2019
hasKey
- Also work on objects created without base prototype, viaObject.create(null)
.
0.30- 04 March 2019
findIndexBy
- Find the position of first element that matches the filter criteria
0.29 - 04 March 2019
last
- Return last element in arrayflip
,flipUncurried
- Reverse function parameterslens
,lenses
- Create a pair of lenses, functions for retrieving or updating the value at an object key.props
- Get a set of properties from an object
0.28 - 30 January 2019
- Add
isEqual
- tripple equal
0.27 - 28 January 2019
- Add
cases
- Functionalswitch
statement
- Change
ifThen
type that the return types of thethen
andelse
branches must match
0.26 - 25 January 2019
- Add
concat
- Merge two arrays into one
- Add
concat
,zip
,zipWith
to flow lib def
0.25 - 24 January 2019
- Convert all to ES6 import/export
- Test files loads testing function from main index file
indexBy
takes array and returns object of objectsget
is nowprop
. Also exportingget
as aliasall
andany
accept non array inputisMatch
accepts predicate functions
coinToss
,random
,raise
0.24 - 24 January 2019
- Add
zip
,zipWith
list processing functions
- Reimplement
*By
functions in terms of a new helper function,byMatch
- Consolidate variations of the same function in the same module
0.23.1 - 21 January 2019
- Remove
findFiles
from main index file.
0.23 - 16 January 2019
- Add flow types for several common functies:
map
,filter
,reduce
,all
,any
,if-then
,pipe
- Only distribute
index.js.flow
in build artifact, not other.js.flow
files. This file is generated at build time by the scriptlib/build-flow-libdef.js
, which concatenates all.js.flow
files insrc/
together. This change was made to work around facebook/flow/issues/6650.
0.22.1 - 14 January 2019
- Distribute .flow files in build artifact so library consumers can use types
0.22 - 10 January 2019
- Start using FlowType (
partition
,groupBy
) - Generating documentation with
documentation.js
based on code comments
0.21.1 - 14 December 2018
- Export
groupBy
andpartition
functions
0.21.0 - 14 December 2018
- Add
groupBy
andpartition
functions
0.20.0 - 11 December 2018
- Add babel to
test
script - Add
index.test.js
totest
script
- Cleanup & rename folders
0.19.4 - 27 November 2018
- Update
forEach
to return the original array
0.19.3 - 20 November 2018
- Remove
findFiles
from main index. Loading thepath
module crashes frontend builds
0.19.2 - 20 November 2018
- Change
findBy
to accept a return value if nothing is found - Change
pick
to throw error if input not object
0.19.1 - 16 November 2018
- Add
findFiles
- Recursive dir walk with regular expression matching on file name - Add
endsWith
- Test if string ends with substring
0.19.0 - 16 November 2018
- Add
elapsedTime
- Calculate elapsed time between to dates. In days, hours, minutes and seconds - Add test for
protoChain
,clone