Skip to content

Releases: ascartabelli/lamb

v0.28.0

03 Jun 13:12
Compare
Choose a tag to compare
  • difference now accepts array-like objects
  • String padding functions now convert to string non-nil sources before using them
  • String padding functions won’t throw errors for nil values passed as padding chars and use the default value instead
  • flatten and shallowFlatten now throw an exception only for nil values, converts array-likes to arrays and treat every other value as an empty array
  • difference now throws an exception only for nil values passed as the main parameter; other unexpected values will be treated as empty arrays
  • difference parameters but than the main one will be treated as an empty array if they aren’t array-like
  • fromPairs now throw exceptions only for nil values, other unexpected values will be treated as empty arrays
  • has and hasKey now throw exceptions only for nil values, other unexpected values will be converted to Object
  • Completed "first round" of test updating

v0.27.0

23 May 12:43
Compare
Choose a tag to compare
  • Renamed insert to sortedInsert
  • Added insert, insertAt, reduceWith and reduceRightWith

v0.26.0

16 May 09:11
Compare
Choose a tag to compare

Added rename, renameKeys and renameWith

v0.25.1

10 May 12:01
Compare
Choose a tag to compare
  • Added keys as a shim of ES6’s Object.keys
  • enumerables, pairs, tear and values now throw a TypeError if supplied with null or undefined
  • ownPairs, ownValues and tearOwn now throw a TypeError only if supplied with null or undefined regardless of the ECMAScript engine you are using
  • minor optimization in accessors’ internals

v0.24.0

05 May 15:08
Compare
Choose a tag to compare
  • Added updatePath and updatePathIn
  • setPath and setPathIn now treat non-enumerable properties encountered in a path as non-existent properties
  • Updated dev dependencies and .travis.yml

v0.23.0

27 Apr 15:35
Compare
Choose a tag to compare
  • Added getIndex, setIndex and updateIndex
  • getPath and getPathIn now support negative indexes
  • The function returned by getAt now throw exceptions only if called with null or undefined and returns undefined for any other non-array-like object

v0.22.0

19 Apr 12:44
Compare
Choose a tag to compare

Added updateIn, updateKey and updateAt

v0.21.0

13 Apr 12:53
Compare
Choose a tag to compare
  • getPathIn and getPath now return undefined for any non existent path, instead of throwing exceptions when an undefined value was a part of the path instead of being its target
  • Renamed sequence to generate to avoid confusion with other languages, concepts and libraries
  • Added count, countBy, index, indexBy

v0.20.0

08 Apr 11:50
Compare
Choose a tag to compare
  • Added setPath and setPathIn
  • The mergeOwn function now converts null and undefined values to empty objects instead of throwing exceptions
  • Improved setIn / setKey tests

v0.19.0

05 Apr 11:11
Compare
Choose a tag to compare
  • Renamed getWithPath to getPathIn
  • Added getPath and reverse