Skip to content

Commit

Permalink
version bump to 0.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ascartabelli committed Mar 21, 2016
1 parent 6fa46f5 commit 21f3471
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ You can refer to the [changelog](#changelog) to see if your code is affected.

## <a name="changelog"></a> Changelog

- **v0.15.3 - *2016/03/21***
- **Fully compatible with versions down to 0.15.x**
- Updated `generic` function and removed unused Function.prototype caching
- Added specific tests for `generic`, `sorter` and `sorterDesc`
- Minor improvements in documentation

- **v0.15.2 - *2016/03/17***
- **Fully compatible with versions down to 0.15.x**
- Added support for Travis CI and Coveralls
Expand Down
16 changes: 8 additions & 8 deletions dist/lamb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @overview lamb - A lightweight, and docile, JavaScript library to help embracing functional programming.
* @author Andrea Scartabelli <andrea.scartabelli@gmail.com>
* @version 0.15.2
* @version 0.15.3
* @module lamb
* @license MIT
* @preserve
Expand All @@ -18,14 +18,13 @@
* @category Core
* @type String
*/
lamb._version = "0.15.2";
lamb._version = "0.15.3";

// alias used as a placeholder argument for partial application
var _ = lamb;

// some prototype shortcuts for internal use
var _arrayProto = Array.prototype;
var _fnProto = Function.prototype;
var _objectProto = Object.prototype;
var _reProto = RegExp.prototype;

Expand Down Expand Up @@ -101,7 +100,7 @@
* Creates generic functions out of methods.
* @memberof module:lamb
* @category Core
* @author [Irakli Gozalishvili]{@link https://github.com/Gozala/}. Thanks for this *beautiful* one-liner (never liked your "unbind" naming choice, though).
* @author A very little change on a great idea by [Irakli Gozalishvili]{@link https://github.com/Gozala/}. Thanks for this *beautiful* one-liner (never liked your "unbind" naming choice, though).
* @function
* @example
* // Lamb's "filter" is actually implemented like this
Expand All @@ -116,7 +115,7 @@
* @param {Function} method
* @returns {Function}
*/
var generic = _fnProto.call.bind(_fnProto.bind, _fnProto.call);
var generic = Function.bind.bind(Function.call);

/**
* The I combinator. Any value passed to the function is simply returned as it is.
Expand Down Expand Up @@ -1279,8 +1278,9 @@
* Returns a [stably]{@link https://en.wikipedia.org/wiki/Sorting_algorithm#Stability} sorted copy of an
* array-like object using the given criteria.<br/>
* Sorting criteria are built using Lamb's {@link module:lamb.sorter|sorter} function, but you can also
* pass simple "reader" functions and default ascending sorters will be built.<br/>
* A "reader" is a function that evaluates the array element and supplies the value to be used in the comparison.
* pass simple "reader" functions and default ascending sorters will be built for you.<br/>
* A "reader" is a function that evaluates the array element and supplies the value to be used in the comparison.<br/>
* Please note that if the arguments received by the default comparer aren't of the same type, they will be compared as strings.
*
* @example <caption>Stable sort:</caption>
* var persons = [
Expand Down Expand Up @@ -2770,7 +2770,7 @@
* luckyNumbers: [13, 17]
* });
*
* // Any of these statements will fail and possibly
* // All of these statements will fail and possibly
* // throw a TypeError (see the function description)
* user.name = "Joe";
* delete user.name;
Expand Down

0 comments on commit 21f3471

Please sign in to comment.