Skip to content

Commit ded9bc6

Browse files
committed
Bump to v4.17.20.
1 parent 63150ef commit ded9bc6

9 files changed

+381
-357
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# lodash v4.17.19
1+
# lodash v4.17.20
22

33
[Site](https://lodash.com/) |
44
[Docs](https://lodash.com/docs) |
@@ -20,11 +20,11 @@ $ lodash core -o ./dist/lodash.core.js
2020

2121
## Download
2222

23-
* [Core build](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.core.js) ([~4 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.core.min.js))
24-
* [Full build](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.js) ([~24 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.min.js))
23+
* [Core build](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.core.js) ([~4 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.core.min.js))
24+
* [Full build](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.js) ([~24 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.min.js))
2525
* [CDN copies](https://www.jsdelivr.com/projects/lodash)
2626

27-
Lodash is released under the [MIT license](https://raw.githubusercontent.com/lodash/lodash/4.17.19/LICENSE) & supports modern environments.<br>
27+
Lodash is released under the [MIT license](https://raw.githubusercontent.com/lodash/lodash/4.17.20/LICENSE) & supports modern environments.<br>
2828
Review the [build differences](https://github.com/lodash/lodash/wiki/build-differences) & pick one that’s right for you.
2929

3030
## Installation

dist/lodash.core.js

+27-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
var undefined;
1414

1515
/** Used as the semantic version number. */
16-
var VERSION = '4.17.16';
16+
var VERSION = '4.17.20';
1717

1818
/** Error message constants. */
1919
var FUNC_ERROR_TEXT = 'Expected a function';
@@ -1183,6 +1183,12 @@
11831183
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
11841184
return false;
11851185
}
1186+
// Check that cyclic values are equal.
1187+
var arrStacked = stack.get(array);
1188+
var othStacked = stack.get(other);
1189+
if (arrStacked && othStacked) {
1190+
return arrStacked == other && othStacked == array;
1191+
}
11861192
var index = -1,
11871193
result = true,
11881194
seen = (bitmask & COMPARE_UNORDERED_FLAG) ? [] : undefined;
@@ -1293,6 +1299,12 @@
12931299
return false;
12941300
}
12951301
}
1302+
// Check that cyclic values are equal.
1303+
var objStacked = stack.get(object);
1304+
var othStacked = stack.get(other);
1305+
if (objStacked && othStacked) {
1306+
return objStacked == other && othStacked == object;
1307+
}
12961308
var result = true;
12971309

12981310
var skipCtor = isPartial;
@@ -1935,6 +1947,10 @@
19351947
* // The `_.property` iteratee shorthand.
19361948
* _.filter(users, 'active');
19371949
* // => objects for ['barney']
1950+
*
1951+
* // Combining several predicates using `_.overEvery` or `_.overSome`.
1952+
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
1953+
* // => objects for ['fred', 'barney']
19381954
*/
19391955
function filter(collection, predicate) {
19401956
return baseFilter(collection, baseIteratee(predicate));
@@ -2188,15 +2204,15 @@
21882204
* var users = [
21892205
* { 'user': 'fred', 'age': 48 },
21902206
* { 'user': 'barney', 'age': 36 },
2191-
* { 'user': 'fred', 'age': 40 },
2207+
* { 'user': 'fred', 'age': 30 },
21922208
* { 'user': 'barney', 'age': 34 }
21932209
* ];
21942210
*
21952211
* _.sortBy(users, [function(o) { return o.user; }]);
2196-
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
2212+
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
21972213
*
21982214
* _.sortBy(users, ['user', 'age']);
2199-
* // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
2215+
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
22002216
*/
22012217
function sortBy(collection, iteratee) {
22022218
var index = 0;
@@ -3503,6 +3519,9 @@
35033519
* values against any array or object value, respectively. See `_.isEqual`
35043520
* for a list of supported value comparisons.
35053521
*
3522+
* **Note:** Multiple values can be checked by combining several matchers
3523+
* using `_.overSome`
3524+
*
35063525
* @static
35073526
* @memberOf _
35083527
* @since 3.0.0
@@ -3518,6 +3537,10 @@
35183537
*
35193538
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
35203539
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
3540+
*
3541+
* // Checking for several possible values
3542+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
3543+
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
35213544
*/
35223545
function matches(source) {
35233546
return baseMatches(assign({}, source));

dist/lodash.core.min.js

+25-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lodash.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
var undefined;
1313

1414
/** Used as the semantic version number. */
15-
var VERSION = '4.17.19';
15+
var VERSION = '4.17.20';
1616

1717
/** Used as the size to enable large array optimizations. */
1818
var LARGE_ARRAY_SIZE = 200;
@@ -15588,7 +15588,7 @@
1558815588
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
1558915589
*
1559015590
* // Checking for several possible values
15591-
* _.filter(users, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
15591+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
1559215592
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
1559315593
*/
1559415594
function matches(source) {
@@ -15625,7 +15625,7 @@
1562515625
* // => { 'a': 4, 'b': 5, 'c': 6 }
1562615626
*
1562715627
* // Checking for several possible values
15628-
* _.filter(users, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
15628+
* _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
1562915629
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
1563015630
*/
1563115631
function matchesProperty(path, srcValue) {

dist/lodash.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)