Skip to content

Commit

Permalink
Version bump to 0.58.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ascartabelli committed Jun 18, 2019
1 parent c532e45 commit 62936c2
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 36 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,20 @@ or
Doing so a `lamb` variable will be created in the global object.
The source map for the minified file is in the same `dist` folder.

Since version 0.58.0 there is also a one file ES modules build, always in the `dist` folder, named `lamb.esm.js` and its minified version `lamb.esm.min.js`.

Lamb it's also delivered on a CDN, courtesy of [cdnjs](https://cdnjs.com/), [jsDelivr](https://www.jsdelivr.com/) and [unpkg](https://unpkg.com/):

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/lamb/0.57.0/lamb.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lamb/0.58.0/lamb.min.js"></script>
```

```html
<script src="https://cdn.jsdelivr.net/npm/lamb@0.57.0/dist/lamb.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lamb@0.58.0/dist/lamb.min.js"></script>
```

```html
<script src="https://unpkg.com/lamb@0.57.0/dist/lamb.min.js"></script>
<script src="https://unpkg.com/lamb@0.58.0/dist/lamb.min.js"></script>
```

Please note that Lamb is served by jsDelivr since version 0.42.0.
Expand Down Expand Up @@ -113,6 +115,16 @@ You can check the [recent](#recent_changes) or the [full](https://ascartabelli.g
## <a name="recent_changes"></a> Recent changes
You can also check the [full changelog](https://ascartabelli.github.io/lamb/changelog.html).

- **v0.58.0 - *2019/06/18**
- Added one file ES modules build
- **API change**: `invoker` now accepts an array of bound arguments
- **API change**: benched `immutable` for the moment being
- Added `join` and `joinWith`
- Added `findLast`, `findLastWhere`, `findLastIndex`, `findLastIndexWhere`
- Added `dropLastWhile` and `takeLastWhile`
- Switched from uglify-js to terser
- Updated docs, linting and tests

- **v0.57.0 - *2019/02/12***
- Splitted the library into ES modules
- **API change**: `sort`, `sortWith` and `sortedInsert` now accept an array of sorters
Expand All @@ -134,8 +146,3 @@ You can also check the [full changelog](https://ascartabelli.github.io/lamb/chan
- **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 - *2017/08/01***
- Added `mapValues` and `mapValuesWith`
- Added "@since" tags to doc comments
- Added linting for tests
12 changes: 6 additions & 6 deletions dist/lamb.esm.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.58.0-alpha.9
* @version 0.58.0
* @module lamb
* @license MIT
*/
Expand Down Expand Up @@ -1547,8 +1547,8 @@ function findLast (arrayLike, predicate) {
var findLastIndexWhere = _curry2(findLastIndex, true);

/**
* A curried version of {@link module:lamb.findLast|findLast} expecting the array-like object
* to search.
* A curried version of {@link module:lamb.findLast|findLast} that uses the given
* predicate to build a function expecting the array-like object to search.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var findEven = _.findLastWhere(isEven);
Expand All @@ -1571,8 +1571,8 @@ var findLastIndexWhere = _curry2(findLastIndex, true);
var findLastWhere = _curry2(findLast, true);

/**
* A curried version of {@link module:lamb.find|find} expecting the array-like object
* to search.
* A curried version of {@link module:lamb.find|find} that uses the given
* predicate to build a function expecting the array-like object to search.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var findEven = _.findWhere(isEven);
Expand Down Expand Up @@ -4115,7 +4115,7 @@ function unary (fn) {
* to mimic conditional logic or pattern matching, and also to build polymorphic functions.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var filterString = _.compose(_.invoker("join", [""]), _.filter);
* var filterString = _.compose(_.joinWith(""), _.filter);
* var filterAdapter = _.adapter([
* _.invoker("filter"),
* _.case(_.isType("String"), filterString)
Expand Down
2 changes: 1 addition & 1 deletion dist/lamb.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lamb.esm.min.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 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.58.0-alpha.9
* @version 0.58.0
* @module lamb
* @license MIT
*/
Expand Down Expand Up @@ -1553,8 +1553,8 @@
var findLastIndexWhere = _curry2(findLastIndex, true);

/**
* A curried version of {@link module:lamb.findLast|findLast} expecting the array-like object
* to search.
* A curried version of {@link module:lamb.findLast|findLast} that uses the given
* predicate to build a function expecting the array-like object to search.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var findEven = _.findLastWhere(isEven);
Expand All @@ -1577,8 +1577,8 @@
var findLastWhere = _curry2(findLast, true);

/**
* A curried version of {@link module:lamb.find|find} expecting the array-like object
* to search.
* A curried version of {@link module:lamb.find|find} that uses the given
* predicate to build a function expecting the array-like object to search.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var findEven = _.findWhere(isEven);
Expand Down Expand Up @@ -4121,7 +4121,7 @@
* to mimic conditional logic or pattern matching, and also to build polymorphic functions.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var filterString = _.compose(_.invoker("join", [""]), _.filter);
* var filterString = _.compose(_.joinWith(""), _.filter);
* var filterAdapter = _.adapter([
* _.invoker("filter"),
* _.case(_.isType("String"), filterString)
Expand Down
2 changes: 1 addition & 1 deletion dist/lamb.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lamb.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
"node": ">=4.0.0"
},
"files": [
"dist/lamb.js",
"dist/lamb.min.js",
"dist/lamb.min.js.map",
"src/*.js",
"src/**/!(__tests__)/*.js"
"dist"
],
"homepage": "https://ascartabelli.github.io/lamb/",
"keywords": [
Expand Down Expand Up @@ -51,7 +47,7 @@
"unpkg": "dist/lamb.min.js",
"sideEffects": false,
"tonicExample": "var _ = require('lamb');",
"version": "0.58.0-alpha.9",
"version": "0.58.0",
"devDependencies": {
"@babel/preset-env": "^7.4.5",
"coveralls": "^3.0.4",
Expand Down
4 changes: 2 additions & 2 deletions src/array/findLastWhere.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import _curry2 from "../privates/_curry2";
import findLast from "./findLast";

/**
* A curried version of {@link module:lamb.findLast|findLast} expecting the array-like object
* to search.
* A curried version of {@link module:lamb.findLast|findLast} that uses the given
* predicate to build a function expecting the array-like object to search.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var findEven = _.findLastWhere(isEven);
Expand Down
4 changes: 2 additions & 2 deletions src/array/findWhere.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import _curry2 from "../privates/_curry2";
import find from "./find";

/**
* A curried version of {@link module:lamb.find|find} expecting the array-like object
* to search.
* A curried version of {@link module:lamb.find|find} that uses the given
* predicate to build a function expecting the array-like object to search.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var findEven = _.findWhere(isEven);
Expand Down
2 changes: 1 addition & 1 deletion src/logic/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import _makeTypeErrorFor from "../privates/_makeTypeErrorFor";
* to mimic conditional logic or pattern matching, and also to build polymorphic functions.
* @example
* var isEven = function (n) { return n % 2 === 0; };
* var filterString = _.compose(_.invoker("join", [""]), _.filter);
* var filterString = _.compose(_.joinWith(""), _.filter);
* var filterAdapter = _.adapter([
* _.invoker("filter"),
* _.case(_.isType("String"), filterString)
Expand Down

0 comments on commit 62936c2

Please sign in to comment.