Releases: ascartabelli/lamb
Releases · ascartabelli/lamb
v0.54.1
- Fixed:
setPath
andupdatePath
weren't returning unary functions, and further arguments would have overwritten the previous ones - Updated doc comments
- Updated linting rules
v0.54.0
- Added
mapValues
andmapValuesWith
- Added
@since
tags to doc comments - Added linting for tests
- Updated dev dependencies
v0.53.1
- Fixed:
hasKeyValue
was returningtrue
for any existent property when searching for anundefined
value - Updated object checking tests
- Updated dev dependencies
v0.53.0
- Unfilled placeholders in functions built with
asPartial
now assume anundefined
value range
now converts to number its parameters and will return an empty array if the specified range is invaliddifference
is now a binary function and returns a result without duplicates- Changed the name of the property holding the library's version
- Added the possibility to use custom placeholders in partial application
v0.52.0
partial
is no longer variadic and accepts a function and an array of arguments insteadgetArgAt
and all array accessors now convert their index parameter to integer- Reverted change made in v0.50.0 about
compose
andpipe
: now they return again theidentity
function if called without arguments merge
andmergeOwn
now throw fornil
values and convert to object everything else as beforeintersection
now return an empty array if called without parameters- Fixed:
transpose
andzip
now correctly throw whennil
values, preceded by empty array-likes, are encountered - Added
partialRight
difference
andintersection
are now correctly documented to work with array-like objects- Updated dev dependencies
- Moved variables shared by tests to an external file
- Updated tests and shared variables usage
- Updated
insert
andinsertAt
tests - Removed support for Node < 4
v0.51.0
- Removed the
iteratee
parameter fromuniques
- Removed
fromIndex
parameter fromcontains
andisIn
tapArgs
isn't variadic anymore and accepts an array of "tappers" as the second parameter- Renamed
drop
andtake
todropFrom
andtakeFrom
- Renamed
dropN
andtakeN
todrop
andtake
- The
falseFn
parameter ofcondition
is no longer optional - Added
case
to quickly build cases foradapter
- Added
unionBy
anduniquesBy
v0.50.0
- Renamed
is
toareSame
andisSVZ
toareSVZ
. The old names are now used for curried version of those functions - Removed
isNot
- Renamed
isGT
,isGTE
,isLT
andisLTE
togt
,gte
,lt
,lte
. The old names are now used for right curried versions of these functions. compose
andpipe
now build a function throwing an exception if they are called without arguments- Renamed
add
tosum
.add
is now used as a curried version ofsum
. - Added
deduct
as a right curried version ofsubtract
- Added
multiplyBy
as a curried version ofmultiply
- Added
divideBy
as a right curried version ofdivide
- Added optimized currying for functions with arity 2 and 3
- Performance improvement for
compose
andpipe
- Split "object.js" in two files for easier management
- Added a
_makeArrayFlattener
private function to group common behavior of the public flattening functions - Updated dev dependencies
- Updated doc comments and tests
v0.49.0
- Removed optional context parameter in every function that was using it
aritize
now will simply convert itsarity
parameter to integer, instead of giving it a special meaning when isundefined
- Fixed:
skip
andskipKeys
now convert to string every value in theblacklist
- Fixed:
hasKeyValue
now correctly returnsfalse
when searching for anundefined
value in a non-existent property - Fixed:
pathExists
,pathExistsIn
andhasPathValue
will no longer see valid paths when a negative array index is out of bounds - Minor performance improvements for
pick
,pickIf
,skip
andskipIf
- Removed
_partialWithIteratee
and added_makePartial3
and_makePartial4
to group together common cases of partial application - Added tests with sparse arrays where needed and updated existing ones with misleading texts / specs
- Tidied up test code a bit by grouping some common variables
- Updated tests for
hasPathValue
and "pick" and "skip" functions - Updated tests of
updatePath
to check negative array indexes that are out of bounds - Updated dev dependencies
v0.48.0
slice
isn't a generic anymore to ensure that dense arrays are returned and has no optional parameters- Fixed:
pull
andpullFrom
now considernil
s received as thevalues
parameter as empty arrays - Added
sliceAt
- All array functions always return dense arrays now
- Updated tests
v0.47.0
- renamed
apply
toapplication
- renamed
applyArgs
toapplyTo
clamp
now converts to number its arguments and returnsNaN
ifmin
is greater thanmax
- removed
wrap
- Re-added
apply
as a left-curried version ofapplication
- Added
clampWithin
andisInstanceOf
- Updated tests and doc comments