Skip to content

Releases: ascartabelli/lamb

v0.54.1

09 Mar 09:18
Compare
Choose a tag to compare
  • Fixed: setPath and updatePath weren't returning unary functions, and further arguments would have overwritten the previous ones
  • Updated doc comments
  • Updated linting rules

v0.54.0

01 Aug 06:24
Compare
Choose a tag to compare
  • Added mapValues and mapValuesWith
  • Added @since tags to doc comments
  • Added linting for tests
  • Updated dev dependencies

v0.53.1

06 Apr 08:49
Compare
Choose a tag to compare
  • Fixed: hasKeyValue was returning true for any existent property when searching for an undefined value
  • Updated object checking tests
  • Updated dev dependencies

v0.53.0

30 Mar 11:15
Compare
Choose a tag to compare
  • Unfilled placeholders in functions built with asPartial now assume an undefined value
  • range now converts to number its parameters and will return an empty array if the specified range is invalid
  • difference 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

17 Mar 11:37
Compare
Choose a tag to compare
  • partial is no longer variadic and accepts a function and an array of arguments instead
  • getArgAt and all array accessors now convert their index parameter to integer
  • Reverted change made in v0.50.0 about compose and pipe: now they return again the identity function if called without arguments
  • merge and mergeOwn now throw for nil values and convert to object everything else as before
  • intersection now return an empty array if called without parameters
  • Fixed: transpose and zip now correctly throw when nil values, preceded by empty array-likes, are encountered
  • Added partialRight
  • difference and intersection 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 and insertAt tests
  • Removed support for Node < 4

v0.51.0

20 Feb 13:38
Compare
Choose a tag to compare
  • Removed the iteratee parameter from uniques
  • Removed fromIndex parameter from contains and isIn
  • tapArgs isn't variadic anymore and accepts an array of "tappers" as the second parameter
  • Renamed drop and take to dropFrom and takeFrom
  • Renamed dropN and takeN to drop and take
  • The falseFn parameter of condition is no longer optional
  • Added case to quickly build cases for adapter
  • Added unionBy and uniquesBy

v0.50.0

08 Feb 14:00
Compare
Choose a tag to compare
  • Renamed is to areSame and isSVZ to areSVZ. The old names are now used for curried version of those functions
  • Removed isNot
  • Renamed isGT, isGTE, isLT and isLTE to gt, gte, lt, lte. The old names are now used for right curried versions of these functions.
  • compose and pipe now build a function throwing an exception if they are called without arguments
  • Renamed add to sum. add is now used as a curried version of sum.
  • Added deduct as a right curried version of subtract
  • Added multiplyBy as a curried version of multiply
  • Added divideBy as a right curried version of divide
  • Added optimized currying for functions with arity 2 and 3
  • Performance improvement for compose and pipe
  • 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

24 Jan 09:22
Compare
Choose a tag to compare
  • Removed optional context parameter in every function that was using it
  • aritize now will simply convert its arity parameter to integer, instead of giving it a special meaning when is undefined
  • Fixed: skip and skipKeys now convert to string every value in the blacklist
  • Fixed: hasKeyValue now correctly returns false when searching for an undefined value in a non-existent property
  • Fixed: pathExists, pathExistsIn and hasPathValue will no longer see valid paths when a negative array index is out of bounds
  • Minor performance improvements for pick, pickIf, skip and skipIf
  • 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

10 Jan 11:44
Compare
Choose a tag to compare
  • slice isn't a generic anymore to ensure that dense arrays are returned and has no optional parameters
  • Fixed: pull and pullFrom now consider nils received as the values parameter as empty arrays
  • Added sliceAt
  • All array functions always return dense arrays now
  • Updated tests

v0.47.0

16 Dec 10:19
Compare
Choose a tag to compare
  • renamed apply to application
  • renamed applyArgs to applyTo
  • clamp now converts to number its arguments and returns NaN if min is greater than max
  • removed wrap
  • Re-added apply as a left-curried version of application
  • Added clampWithin and isInstanceOf
  • Updated tests and doc comments