Releases: javadev/underscore-java
Releases · javadev/underscore-java
Version 1.23
- Moved push(), pop(), shift() and unshift() to the underscore library.
- Removed each and print support from template.
Version 1.22
- Added support for the $.sortWith(list, comparator) method.
Version 1.21
- Added methods firstOrNull(list), firstOrNull(list, pred), lastOrNull(list) and lastOrNull(list, pred) for chain.
- Added methods $.checkNotNull(), Optional.map(function1) and Optional.orThrow(function).
- Changed newHashSet with newLinkedHashSet for uniq/distinct methods.
- Added lastIndex(array), distinct(array) and distinctBy(array, func) methods.
- Added support for the
$.chain(int[]) and $ .map(int[], function) methods.
Version 1.20
- Added more checks for the limit(size) method in chain.
- Added support for the connectTimeout and readTimeout parameters in $.fetch() method, lodash plugin.
- Added xml() method to the FetchResponse.
Version 1.19
- Improved perfomance for
$.intersection(list1, list2) and $ .difference(list1, list2) methods. - Added forEach(inerator) and forEachRight(inerator) for chain.
- Improved $.join(iterable, separator) method.
- Improved
$.debounce(function, delay) method and added $ .throttle(function, wait) method.
Version 1.18
- Replaced call for guava collection objects with java collection objects.
- Added createPermutationWithRepetition method to the math plugin.
- Added ScheduledFuture return type support for the
$.defer(function) and $ .delay(function, delayMilliseconds) methods. - Added
$.fetch(url), $ .fetch(url, method, body) and $.fetch(url, method, body, headerFields) methods to the lodash plugin.
Version 1.17
- Added
$.push(values), $ .pop(),$.shift() and $ .unshift(values) methods to the lodash plugin. - Added
$.copyOf(), $ .copyOfRange(start, end),$.elementAt(index), $ .elementAtOrElse(index, defaultValue) and $.elementAtOrNull(index) methods support. - Changed argument type for the template.apply(map) method.
Version 1.16
- Added $.memoize(function) method.
- Added support for the get(object, path) method in lodash plugin.
Version 1.15
- Made max parameter inclusive in random method.
- Added $.random(int max) method support.
Version 1.14
- Added new methods: first(list, predicate), firstOrNull(list),
firstOrNull(list, predicate), last(list, predicate), lastOrNull(list),
lastOrNull(list, predicate).