javascript/lodash Tune Source
-
3.5.0
Released at March 8, 2015
Mar. 8, 2015 — Diff — Docs
See the release notes for overviews & highlights of this & other releases.
Use lodash-migrate to help migrate older lodash code to the latest release.- Added string
replace&splitchaining methods - Ensured lazy
dropworks when applied afterfilter - Optimized curried method performance
Check out the lodash-cli changelog for changes to lodash-cli as well.
- Added string
-
3.4.0
Released at March 6, 2015
Mar. 6, 2015 — Diff — Docs
- Added _.add, _.sortByOrder, & _.sum
- Adjusted
rootassignment to work in Safari when bundled with webpack & used in a web worker - Ensured lazy chaining works with combinations of
drop&dropWhile - Ensured
_.defaultsworks as an iteratee for_.reduce - Reduced side effects of shortcut fusion by only applying it for iteratees that accept one param
- Optimized
baseFlatten,baseIndexOf,indexOfNaN,_.flow, &_.flowRight - Optimized lazy evaluation for iteratees with one param
-
3.3.1
Released at Feb. 24, 2015
-
3.3.0
Released at Feb. 20, 2015
Feb. 20, 2015 — Diff — Docs
- Added _.inRange
- Added links to each method’s npm package to the documentation
- Allowed
_.cloneto work with more truthyisDeepvalues - Ensured each lodash wrapper module sets up their inheritance
- Ensured
isIterateeCallworks withNaNvalues - Ensured
_.mergeavoids iterating stringobjectorsourceparams - Optimized
_.attempt - Reduced nested dependencies of
_.template
-
3.2.0
Released at Feb. 12, 2015
Feb. 12, 2015 — Diff — Docs
- Added _.fill, _.matchesProperty, & _.spread
- Added _#commit & _#plant
- Added
_#runalias of _#value - Added support for lazy
_.compact&_.toArray - Allowed
_.attemptto provide additional arguments tofunc - Ensured
_.flow&_.flowRightreturn an identity function when no arguments are provided - Ensured
_#reversetracks__chain__values - Ensured lazy
_.slicehandles floating-pointstart&endparams - Fixed lazy
_.slicewhen used after_.filter
-
3.1.0
Released at Feb. 3, 2015
Feb. 3, 2015 — Diff — Docs
- Added _.startCase
- Ensured
isIterateeCallworks correctly with objects
-
3.0.1
Released at Jan. 30, 2015
-
3.0.0
Released at Jan. 26, 2015
Jan. 26, 2015 — Diff — Docs
<h5> Compatibility Warnings</h5>-
Aligned _.isFinite & _.keys with ES
// in 2.4.1 _.isFinite('1'); // → true _.keys('hi'); // → [] // in 3.0.0 _.isFinite('1'); // → false _.keys('hi'); // → ['0', '1']
-
Ensured
_.matcheswhich is used by methods like_.find,_.findWhere, &_.where, performs own property checks when comparing source objectsfunction Foo() { this.a = 1; } Foo.prototype.b = 2; function Bar(a) { this.a = 1; this.b = 2; } var objects = [new Foo, new Bar], sourceAB = { 'a': 1, 'b': 2 }, sourceB = { 'b': 2 }, sourceC = { 'c': undefined }; // in 2.4.1 _.find(objects, sourceAB); // → objects[0] _.findWhere(objects, sourceAB); // → objects[0] _.where(objects, sourceAB); // → [objects[0], objects[1]] _.find(objects, sourceB); // → objects[0] _.findWhere(objects, sourceB); // → objects[0] _.where(objects, sourceB); // → [objects[0], objects[1]] _.find(objects, sourceC); // → objects[0] _.findWhere(objects, sourceC); // → objects[0] _.where(objects, sourceC); // → [objects[0], objects[1]] // in 3.0.0 _.find(objects, sourceAB); // → objects[1] _.findWhere(objects, sourceAB); // → objects[1] _.where(objects, sourceAB); // → [objects[1]] _.find(objects, sourceB); // → objects[1] _.findWhere(objects, sourceB); // → objects[1] _.where(objects, sourceB); // → [objects[1]] _.find(objects, sourceC); // → undefined _.findWhere(objects, sourceC); // → undefined _.where(objects, sourceC); // → [] // using the `_.matchesProperty` shorthand _.find(objects, 'b', 2); // → objects[0] _.filter(objects, 'b', 2); // → [objects[0], objects[1]] // using `_.matchesProperty` for matching `undefined` _.find(objects, _.matchesProperty('c', undefined)); // → objects[0] _.filter(objects, _.matchesProperty('c', undefined)); // → [objects[0], objects[1]]
-
Expanded the number of arguments provided to
customizercallbacks of
_.assign, _.clone, _.cloneDeep, _.isEqual, & _.mergevar object = { 'a': 1 }, other = { 'a': 2 }, customizer = function() { console.log(arguments); }; // in 2.4.1 _.merge(object, other, customizer); // → logs [1, 2] // in 3.0.0 _.merge(object, other, customizer); // → logs [1, 2, 'a', object, other]
-
Made the execution of chained methods lazy, that is, execution is deferred until
_#valueis implicitly or explicitly calledvar wrapped = _([1, 2, 3]); // in 2.4.1 wrapped.forEach(function(n) { console.log(n); }); // → logs each value from left to right and returns the lodash wrapper // in 3.0.0 wrapped.forEach(function(n) { console.log(n); }); // → returns the lodash wrapper without logging until `value` is called wrapped.forEach(function(n) { console.log(n); }).value(); // → logs each value from left to right and returns the array
-
Ensured each segment of a chain creates a new wrapper & lazy sequence of actions that may be repeatly applied
var array = [1], wrapped = _(array); // in 2.4.1 var a = wrapped.push(2), // pushes `2` to `array` b = wrapped.push(3); // pushes `3` to `array` a === b; // → true a.value(); // → returns `array`; [1, 2, 3] b.value(); // → returns `array`; [1, 2, 3] // in 3.0.0 var a = wrapped.push(2), // creates a lazy sequence to push `2` to `array` b = wrapped.push(3); // creates a lazy sequence to push `3` to `array` a === b; // → false a.value(); // → pushes `2` to `array` and returns `array`; [1, 2] b.value(); // → pushes `3` to `array` and returns `array`; [1, 2, 3] a.value(); // → pushes `2` to `array` and returns `array`; [1, 2, 3, 2] b.value(); // → pushes `3` to `array` and returns `array`; [1, 2, 3, 2, 3] // use `_#commit` to commit a sequence and continue chaining var a = wrapped.push(2).commit(), // pushes `2` to `array` b = wrapped.push(3).commit(); // pushes `3` to `array` a === b; // → false a.value(); // → returns `array`; [1, 2, 3] b.value(); // → returns `array`; [1, 2, 3]
-
Made _.clone & _.cloneDeep return a new object for unsupported types
// in 2.4.1 _.clone(document.body); // → document.body // in 3.0.0 _.clone(document.body); // → {}
-
Made _.flatten shallow by default & remove
callbacksupportvar array = [1, [[2], 3]], objects = [{ 'a': [1] }, { 'a': [2, 3] }]; // in 2.4.1 _.flatten(array); // → [1, 2, 3] _.flatten(objects, 'a'); // [1, 2, 3] // in 3.0.0 _.flatten(array); // → [1, [2], 3] _.flattenDeep(array); // → [1, 2, 3] _(objects).pluck('a').flatten().value(); // [1, 2, 3] // legacy usage path available for those writing code for both lodash & underscore _.flatten(array, !!_.flattenDeep);
-
Made _.max & _.min non-chainable by default
var array = [2, 3, 1]; // in 2.4.1 _(array).max().value(); // → 3 // in 3.0.0 _(array).max(); // → 3
-
Made _.memoize caches have the ES
Mapinterface ofdelete,get,has, &setvar m = _.memoize(_.identity); m('a'); // in 2.4.1 m.cache; // → { '1420168181178a': 'a' } // in 3.0.0 m.cache.has('a'); // → true
-
Made _.unzip its own method instead of an alias for _.zip
var array = [['a'], [1]]; // in 2.4.1 _.zip(array); // → [['a', 1]] _.unzip(array); // → [['a', 1]] // in 3.0.0 _.zip(array); // → [[['a']], [[1]]] _.unzip(array); // → [['a', 1]]
-
Removed result sorting from _.functions
var object = { 'c': _.noop, 'b': _.noop, 'a': _.noop }; // in 2.4.1 _.functions(object); // → ['a', 'b', 'c'] // in 3.0.0 _.functions(object); // → ['c', 'b', 'a']
-
Removed the
dataparameter from _.templatevar string = '<%= o.a %>', options = { 'variable': 'o' }, data = { 'a': 'b' }; // in 2.4.1 _.template(string, data, options); // → 'b' // in 3.0.0 _.template(string, options)(data); // → 'b' // legacy usage path available for those writing code for both lodash & underscore _.template(string, null, options)(data); // → 'b'
-
Restricted
_.mixinto iterating only own properties ofsourceobjectsfunction Foo() {} Foo.prototype.bar = function() {}; var object = {}; // in 2.4.1 _.mixin(object, new Foo); _.has(object, 'bar'); // → true // in 3.0.0 _.mixin(object, new Foo); _.has(object, 'bar'); // → false _.mixin(object, _.toPlainObject(new Foo)); _.has(object, 'bar'); // → true
-
Split _.first & _.last out into _.take, _.takeWhile, _.takeRight, & _.takeRightWhile for
n&predicateusevar array = [1, 2, 3], lessThanTwo = function(value) { return value < 2; }, greaterThanTwo = function(value) { return value > 2; }; // in 2.4.1 _.first(array); // → 1 _.first(array, 2); // → [1, 2] _.first(array, lessThanTwo); // → [1] _.last(array); // → 3 _.last(array, 2); // → [2, 3] _.last(array, greaterThanTwo); // → [3] // in 3.0.0 _.first(array); // → 1 _.take(array, 2); // → [1, 2] _.takeWhile(array, lessThanTwo); // → [1] _.last(array); // → 3 _.takeRight(array, 2); // → [2, 3] _.takeRightWhile(array, greaterThanTwo); // → [3]
-
Split _.initial & _.rest out into _.dropRight, _.dropRightWhile, _.drop, & _.dropWhile for
n&predicateusevar array = [1, 2, 3], lessThanTwo = function(value) { return value < 2; }, greaterThanTwo = function(value) { return value > 2; }; // in 2.4.1 _.initial(array); // → [1, 2] _.initial(array, 2); // → [1] _.initial(array, greaterThanTwo); // → [1, 2] _.rest(array); // → [2, 3] _.rest(array, 2); // → [3] _.rest(array, lessThanTwo); // → [2, 3] // in 3.0.0 _.initial(array); // → [1, 2] _.dropRight(array, 2); // → [1] _.dropRightWhile(array, greaterThanTwo); // → [1, 2] _.rest(array); // → [2, 3] _.drop(array, 2); // → [3] _.dropWhile(array, lessThanTwo); // → [2, 3]
Changed the categories of
_.clone,_.cloneDeep, &_.isXyzmethods from “Object” to “Lang”- Changed the categories of
_.escape,_.template, &_.unescapefrom “Utility” to “String” - Changed the category of
_.rangefrom “Array” to “Utility” - Changed the category of
_.toArrayfrom “Collection” to “Lang” - Made method categories singular
- Moved ./dist/lodash.js to ./lodash.js in master & to ./index.js in npm
- Moved ./dist/lodash.compat.js to the lodash/lodash-compat repository
- Moved support for sorting by multiple properties from
_.sortByto _.sortByAll - Removed the
underscorebuild - Renamed
_.createCallbackto _.callback - Renamed
_.support.argsClass&_.support.nodeClassto _.support.argsTag & _.support.nodeTag
- Added customizable argument placeholder support to _.bind, _.bindKey, _.curry, _.curryRight, _.partial, & _.partialRight
- Added support for matching
NaNto _.difference, _.includes, _.indexOf _.intersection, _.lastIndexOf, _.union, _.uniq, & _.xor - Ensured
_.assign&_.mergedon’t assign thecustomizerresult if it’s the same as the destination value - Ensured
_.mixindoes not extend lodash whenobjectis provided with an emptyoptionsobject - Ensured
_.sortedIndexreturns values that align with the sort order of_.sortBy - Ensured functions created by
_.matchesreturntruewhen comparing emptysourcevalues - Ensured functions created by
_.matchesperform own property checks on objects regardless of the number ofsourceproperties - Made
_.chainuse an existing wrapper if available instead of creating a new wrapper - Removed the
argCountparameter from_.callback
-
Added 47 methods
17 string methods:
_.camelCase, _.capitalize, _.deburr, _.endsWith, _.escapeRegExp, _.kebabCase, _.pad, _.padLeft, _.padRight, _.repeat, _.snakeCase, _.startsWith, _.trim, _.trimLeft, _.trimRight, _.trunc, & _.words11 array methods:
_.chunk, _.dropRight, _.dropRightWhile, _.dropWhile, _.flattenDeep, _.pullAt, _.slice, _.sortedLastIndex, _.takeRight, _.takeRightWhile, & _.takeWhile6 function methods:
_.ary, _.before, _.curryRight, _.flow, _.negate, & _.rearg5 lang methods:
_.isError, _.isMatch, _.isNative, _.isTypedArray, & _.toPlainObject3 utility methods:
_.attempt, _.matches, & _.propertyOf2 collection methods:
_.partition & _.sortByAll2 object methods:
_.keysIn & _.valuesIn1 chain method:
_.thru
-
Added 5 aliases
-
_.backflow&_.composeas aliases of _.flowRight -
_.containsas an alias of _.includes -
_.iterateeas an alias of _.callback -
_#toJSONas an alias of _#valueOf
-
-
Performance improvements
- Improved overall performance 20-40%
Method chaining supports lazy evaluation
Methods with support for shortcut fusion:
_.drop,_.dropRight,_.dropRightWhile,_.dropWhile,_.filter,_.first,_.initial,_.last,_.map,_.pluck,_.reject,_.rest,_.reverse,_.slice,_.take,_.takeRight,_.takeRightWhile,_.takeWhile, &_.whereOther optimized methods:
_.bind,_.clone,_.cloneDeep,_.compact,_.compose,_.contains,_.difference,_.escape,_.flatten,_.invoke,_.isEqual,_.isObject,_.matches,_.max,_.min,_.partial,_.shuffle,_.unescape,_.uniq,_.without, &_.zip
-
Functional goodies
- Added _.ary, _.curryRight, _.flow, & _.rearg
Added customizable argument placeholder support to _.bind, _.bindKey, _.curry, _.curryRight, _.partial, & _.partialRight
Methods that work as an iteratee for
_.map, & the like, out of the box:
_.ary,_.callback,_.chunk,_.clone,_.create,_.curry,_.curryRight,_.drop,_.dropRight,_.flatten,_.invert,_.max,_.min,_.parseInt,_.slice,_.sortBy,_.take,_.takeRight,_.template,_.trim,_.trimLeft,_.trimRight,_.trunc,_.random,_.range,_.sample,_.uniq, &_.wordsMethods that work as an iteratee for
_.reduce, & the like, out of the box:
_.assign,_.defaults,_.merge, &_.sortAllBy
- Added
cancelmethod to debounced & throttled functions - Added
multiValueflag to _.invert,defaultValueargument to _.result, &thisArgargument to _.tap - Added _.memoize.Cache to enable ES
Map/WeakMapto be used - Added support for cloning array buffers & typed arrays to _.clone & _.cloneDeep
- Added support for comparing error objects & typed arrays to _.isEqual
- Avoided memory leaks in
_.bind,_.bindKey,_.curry,_.partial, &_.partialRight - Ensured
_.at,_.invoke,_.matches,_.property, &_.pullAtwork with falseyarray&collectionvalues when keys are provided - Ensured
_.callbackdoesn’t error whenfuncis nullish & athisArgis provided - Ensured
_.callbacksupports binding built-in methods - Ensured
_.debounce&_.throttlework if the system time is set backwards - Ensured
_.differenceworks with arrays regardless of argument position - Ensured
_.includessupportsfromIndexwhen iterating objects - Ensured
_.indexOf([], undefined, true)returns-1instead of0 - Ensured
_.intersectionignores non-array secondary values - Ensured
_.isEqualworks with wrapped arrays & plain objects containingconstructorproperties - Ensured
_.keystreats sparse arrays as dense - Ensured
_.keysworks with string objects in IE < 9 - Ensured
_.matchescomparison isn’t affected by changes tosourceobjects - Ensured
_.max&_.minreturn the correct value whencallbackcomputes ±Infinity - Ensured
_.mergeignoresundefinedvalues ofsourceobject properties - Ensured
_.omit&_.pickwork on primitives - Ensured
_.partial&_.partialRightwork with curried functions - Ensured
_.pluckalways uses_.property&_.findWhere&_.wherealways use_.matches - Ensured
_.randomreturns1or0when called with no arguments - Ensured
_.range,_.slice, & other methods handleNaNarguments - Ensured
_.runInContextuses a zeroed_.uniqueIdcounter - Ensured
_.transformchecks thatobjectis an object before using it as theaccumulator[[Prototype]] - Ensured
_.wherehandlessourceobjects withundefinedproperty values - Ensured
_.whereonly returns elements that contain all source array/object values - Ensured browserified lodash works in web workers
- Ensured customizing
_.indexOfaffects_.includeswhen iterating objects - Ensured lodash works in NW.js
- Ensured lodash doesn’t add
Function.prototypeextensions to its prototype - Fixed
_.isFunctionfor typed array constructors in Safari 8 - Made
_.escape&_.unescapehandle backticks - Made
_.isElementmore robust - Made
_.parseIntmore closely follow spec - Made
_.wrapuse_.identitywhenwrapperis nullish - Made templates avoid referencing
_.escapeif “escape” delimiters are not used - Made array-like object checks follow ES ToLength
- Made use of ES Set in
_.difference,_.intersection, &_.uniq - Removed array & object pools
- Removed all method compilation from the
compatbuild - Updated sourceURL syntax & allowed the
sourceURLoption of_.templateto work in production builds
-
-
2.5.0-pre
Released at May 31, 2014
- Fix typo in test description and reduce sauce test timeouts.
- Add doc note to `_.zip` about unzipping values. [ci skip] [closes #418]
- Tweak readme layout of downloads and add not about 100% code coverage. [ci skip]
- Avoid adding `Function.prototype` additions to `_`.
- Added oneToMany option to _.invert()
- Added oneToMany option to _.invert()
- Built dist files after adding oneToMany support to _.invert
- Regenerated README.md after adding oneToMany support to _.invert
- Merge pull request #420 from dr-skot/master Add oneToMany support in _.invert.
- Cleanup previous commit, add a `_.invert` unit test, and rebuild docs.
- Cleanup docs. [ci skip]
- Reduce sauce timeouts.
- Optimize `_.unescape`.
- Optimized compact method by using a counter in place of Array.prototype.push()
- Cleanup `_.compact` optimization.
- Ensure _.xor() returns new unique array.
- Cleanup `_.xor` patch and add a unit test.
- Update .gitignore to ignore npm-debug.log and coverage folders. [ci skip]
- Add semantic versioning note to readme. [ci skip]
- Add support for writing the coverage.json file for phantomjs runs in test/test.js. [ci skip]
- Allow amd builds to test for bizarro methods.
- Ignore all log files in .gitignore. [ci skip]
- Avoid swallowing errors in the test setup in .travis.yml.
- Reduce the amount of `phantomjs` runs in travis.yml and tweak for 100% coverage in amd tests.
- Add .log files to volo's ignore list. [ci skip]
- Update dojo to 1.9.2.
- Add files to bower and volo ignore lists. [ci skip]
- Tweak documentation for `{un,}escape` [ci skip]
- Merge pull request #426 from lodash/docs Tweak documentation for `{un,}escape`. [ci skip]
- Add more to the "features" section of the readme and use the github url for lodash-amd references. [ci skip]
- Merge branch 'master' of github.com:lodash/lodash
- Add more semicolons to the docs. \ht @mathias [ci skip]
- Make `_.isElement` more robust. [closes #427]
- Fix failing test in node.
- No longer compile `_.assign`, `_.defaults`, or `_.forOwn`.
- Simplify `iteratorTemplate`.
- Fix bizarro `setTimeout` and `clearTimeout` for requirejs test runs.
- Fix readme typo in build differences wiki link. [ci skip] [closes #428]
- Avoid issues with variable `window`.
- Switch from `chrome` to `googlechrome` browser name in saucelabs.js.
- Improve links formatting for docs
- Merge pull request #429 from d10/master Improve links formatting for docs. [ci skip]
- Cleanup and rebuild docs and diet.
- Move "escape" and "evaluate" delimiters to their own regexes. Cleanup the `_` docs and `iteratorTemplate`.
- Keep code coverage up for `_.isElement`.
- Fix IE compat mode bug with `clearTimeout` and `setTimeout` in test/index.html.
- Reduce the chance of a slow script warning in some browsers in test.js.
- Fix doc typos for `_.mapValues` and `_.sample`.
- Add result of array tests.
- Cleanup `iteratorTemplate` code comments. [ci skip]
- Add tests for `_.support.funcDecomp` and `WinRTError`.
- Fix comment typo in test/index.html. [ci skip]
- Update node version to 0.10 for sauce in travis.yml since they've upgraded their node 0.10 version.
- Update tested browsers in the readme. [ci skip]
- Update Firefox version in sauce and try Opera again.
- Add opera 9 and 10 to sauce tests.
- Avoid sparatic fails with Firefox 26 and amd tests.
- Add `thisArg` to `_.tap`.
- Rebuild docs and dist.
- Avoid chance fails by `noConflict` race conditions.
- Improve regexp for `reNative`.
- Disable testing Opera 10 in sauce until they fix it.
- Simplify the `_.support.dom` check.
- Relax `reNative` as it's limited in scope.
- Correct typo in `iteratorTemplate` code comment. [ci skip]
- Remove opera 9 from sauce too.
- Ensure AMD tests it all of the `debounce` coverage.
- Fix _.template docs typo [ci skip]
- Optimize `_.contains` by using native `String#contains` when available.
- Merge pull request #432 from d10/master Fix _.template docs typo. [ci skip]
- Update docdown to fix doc bugs related to params that are properties of other params. [ci skip]
- Minor tweaking, moving var order.
- Add bad shim tests for String#contains and remove those for Function#bind as we don't use native bind.
- Update the tested version of node in readme. [ci skip]
- Use node --harmony for code coverage tests.
- Use `Boolean` to fake out the `isNative` check and allow environments to test the native `String#contains` fork of `_.contains`
- Simplify nvm use in travis.yml.
- Reduce `_.escape` and `_.unescape` dependencies
- Add .editorconfig
- Merge pull request #435 from d10/master Add .editorconfig. [ci skip]
- Merge branch 'master' of github.com:lodash/lodash
- Remove trailing newlines in .html files and add .php to .editorconfig. [ci skip]
- Use a fixed version, 1.1.0, until sauce-tunnel fixes their corrupt 1.1.1 npm package.
- Fix `reEscapedHtml` for underscore builds.
- Add another `_.constant` test for falsey values.
- Go back to a version range in travis.yml now that sauce-tunnel has fixed its npm issues.
- Add `_.match`.
- Minor doc tweaks to `_.pluck` and `_.match`. [ci skip]
- Cleanup lodash and lodash.underscore builds.
- Fix `_.reduce` for modern and underscore builds.
- Ensure `_.reduce` doesn't assign `accumulator` a collection value if its `length` is `0`.
- Ensure `_.random()` returns `1` or `0`.
- Fix node 0.6 tests with npm registry's new cert.
- Optimize `_.sortBy` by adding `baseCompareAscending` and `compareMultipleAscending`.
- Cleanup `arrayReg` and `splice` references.
- Beef up `_.parseInt` support and add `trim` internally.
- Ensure the `trim` fallback is tested and counted for code coverage.
- Optimize `trim`.
- Replace `isWhitespaceAt` with `trimmedLeftIndex` and `trimmedRightIndex`.
- Update year to 2014. [ci skip]
- Remove `forEach` dep from `mixin`.
- Rearrange source to better match the doc order.
- Expose `trim`, `trimLeft`, and `trimRight`.
- Add doc note for `options.init` to `createIterator`. [ci skip]
- Fix lodashBizarro tests for trim, trimLeft, and trimRight.
- Avoid ternary operations that aren't part of an assignment.
- Add `_.capitalize`.
- Doc cleanup. [ci skip]
- Add tests for `_.capitalize`.
- Rebuild diet and docs.
- Ensure `shimIsPlainObject` returns true for plain objects with a `constructor` property that has a function value.
- Expose `_.slice`.
- Remove test until v3.0 when we'll enforce uniform skipping of the constructor property of prototype objects.
- Allow `_.trim`, `_.trimLeft`, and `_.trimRight` to remove specified `chars`.
- Avoid using a unique key for `keyPrefix` as it causes issues when lodash is modularized into individual npm packages. [closes #446]
- Update vendors.
- Add doc note to `_.bind`, `_.bindAll`, `_.partial`, `_.partialRight`, and `_.curry` about not setting the resulting functions `.length`. [closes #444]
- Make the guard checks in `_.assign` and `_.defaults` more thorough.
- Make `_.isEqual` work with plain objects containing `constructor` properties with like object values and make `_.invert` assign arrays when using the `multiValue` flag. [closes #420]
- Make checks for `_.map` and `_.reduce` use consistent with `indexTypes`.
- Merge branch 'master' of github.com:lodash/lodash
- Remove `keyPrefix` for using a simple `_` prefix.
- Rebuild dist/lodash.underscore.js with `breakIndicator` and reverted `_.invert`.
- Fix the underscore build of `_.memoize`.
- Update `_.template` docs to mark `data` as optional. [ci skip]
- Reduce `objectTypes` and `indexTypes` deps.
- Use a more preferred command to enable npm on Node 0.6 in travis.yml.
- Increase test coverage of `trim` methods and `_.sortBy`.
- Qualify coverage claim in readme. [ci skip]
- Make stable multi prop sort unit test more complex.
- Fixing indexOf([], undefined, true) to return -1 insead 0
- Add more `_.indexOf` tests.
- Use vars to store bitmask flags to improve readability.
- Indicate slow path in lodash wrapper perf test. [ci skip] [closes #452]
- Make each build in travis.yml so users don't have to include them in pull requests for tests to pass.
- Added default value to _.result
- Make the coverage run in .travis.yml use the generated modern build.
- Missed a BIND_FLAG use in `baseCreateCallback`.
- Merge pull request #454 from pistacchio/master Added default value to `_.result`.
- Ensure sauce tests run against builds created by travis-ci.
- Cleanup `_.result` default value patch. [closes #455]
- Rebuild dist files.
- Fix typo in travis.yml.
- Use ES6 Set to optimize for large arrays in `_.uniq`, `_.difference`, & `_.intersection`.
- Use `baseEach`, `baseForOwn` and `baseForIn` to reduce dependencies on `baseCreateCallback`.
- Ensure we use an underscore build of `_.result`.
- Conditionally define `createCache` base on feature inference.
- Use `baseEach` in underscore build of `_.sortBy`.
- Add coverage for `Set` for environments w/o native support.
- Fix large array optimization in `baseDifference`.
- Fix test typo in test/index.html.
- Update .travis.yml dep versions and make coveralls reporting optional so we don't fail when their service is down.
- Cleanup assign/defaults/merge unit test. [ci skip]
- Ensure `_.flatten` works with `_.map` in underscore builds.
- Track arity of functions created by `_.bind`, `_.bindKey`, `_.bindAll`, `_.partial`, `_.partialRight`, `_.curry`, and `_.wrap`.
- Update vendor/qunit-extras. [ci skip]
- Make `breakIndicator` use `expando` in underscore builds.
- Allow legacy build tests to pass.
- Dumb `_.curry` down for consistent feature support for old environments.
- Avoid leaking a `data` var in compat/legacy builds and remove dead code from the underscore build.
- Rebuild docs and updated tested Chrome version in readme. [ci skip]
- Add `_.callback` as an alias of `_.createCallback`.
- Comment nit in the underscore build. [ci skip]
- Cleanup the perf and test ui files.
- Add `freeGlobal.self` check to test/asset/set.js.
- Cleanup lodashBizarro code to get coverage up in AMD modules.
- Add `freeGlobal.self` check to support browserified code running in a web worker. `self` is the global context name in web workers. So `freeGlobal.self === freeGlobal` is `true` in that environment when lodash is packaged in a library/site for use in web workers.
- Add `freeGlobal.self` checks to benchmark.js and quinit-extras to support browserified code running in a web worker.
- Remove trailing slash in `locationPath` of test/underscore.html.
- Fix `Function.prototype.toString` mock in test/ to avoid errors in Firefox.
- Fix regression in test-ui.js. [ci skip]
- Add `_.memoize` test and normalize on using properties of `a` and `b` instead of `x` and `y`.
- Drop 'use strict' in the unit tests and make its IIFE more closely resemble lodash's.
- Fix typo in throttle test.
- Update vendor/qunit-extras and simplify its load/install.
- Fix test fails in older Safari and cleanup `setProperty` in test.js.
- Add `baseEach` tests.
- Tweak documented arg name `key` for `_.pluck`. [ci skip]
- Minor test cleanup. [ci skip]
- Rebuild dist & docs. [ci skip]
- Replace `_.createCallback` reference in readme with `_.callback`. [ci skip]
- Update `freeGlobal` assignment in lodash builds, benchmark.js, and qunit-extras to work in node-webkit. [closes #419]
- Fix loading `baseEach` for commonjs modularize tests.
- Avoid accessing `body.completed` if `body` isn't truey in saucelabs.js.
- Consistent use of `getConfig` in test/index.html and test/underscore.html.
- Minor comment nit for consistency across projects. [ci ckip]
- Minor code format nit in test.js. [ci skip]
- Avoid detecting the `global` function in Java based environments like Rhino as the `freeGlobal`.
- Avoid detecting the `global` function in Java based environments like Rhino as the `freeGlobal`.
- Minor doc nit for `_.runInContext`. [ci skip]
- Ensure `_.where` handles `properties` with `undefined` properties. [closes #461]
- Add `_.zipObject` test for extra `values`.
- Fix setting the selectedIndex of dropdown lists in test-ui.js and perf-ui.js.
- Fix lodash-node unit tests.
- Add `_.cloneDeep` doc note to `_.clone` too. [ci skip]
- Use `.apply` for initial function call in `_.compose` then use `.call` in loop. [closes #463, #464]
- Cleanup perf tests and adjust for `LARGE_ARRAY_SIZE` of 40.
- Set `LARGE_ARRAY_SIZE` to 40.
- Cleanup `_.compose`.
- Correct `_.compose` unit test.
- Minor whitespace nits in `_.compose` and `_.pull`. [ci skip]
- Rebuild dist/ and docs.
- Fix tests for lodash-amd.
- Simplify resolving `filePath` in perf/perf.js. [ci skip]
- Fix underscore build modifications to `match`.
- Add note to contributing.md to not worry about regenerating docs or dist files. [ci skip]
- Fix test/test.js in lodash-node and carry fixes over to perf/perf.js.
- Avoid installing coveralls in travis runs when not needed.
- More perf.js cleanup and add `_.compose` benchmarks. [ci skip]
- Add "browser" field for Browserify Browserify and other CJS builders will look for a "browser" field to use as an alternate "main" when targeting the browser environment. https://github.com/substack/node-browserify#packagejson Pointing it to the compat build would prevent issues like #288 happening out of the box, without any extra configuration.
- Merge pull request #466 from aearly/patch-1 Add "browser" field in package.json for Browserify. [ci kip]
- Add `baseEachRight` and `baseForOwnRight`.
- Minor whitespace nits. [ci skip]
- Make default BUILD="compat" in travis.yml. [ci skip]
- Move `browser` field in package.json. [ci skip]
- Rebuild /dist files.
- Add ` as a character to escape/unescape and a doc note on unquoted html attribute values.
- Add doc note about escaping backticks. [ci skip]
- Revert the backtick escape/unescape patch but keep the docs.
- Reduce the complexity of a minor Underscore build optimization.
- Add `_.isEqual` test to ensure regexes are compared regardless of flag order.
- Update vendors and the tested Node version in the readme. [ci skip]
- Optimize `_.invoke` for arrays.
- Add `_.isEqual` test for being used as a callback for `_.every`.
- Reduce code samples for `_.assign` and `_.defaults`. [ci skip]
- Allow `_.omit` and `_.pick` to work as a callback for `_.map` when combined with `_.partialRight`.
- Minor nit, add default greeting to bind benchmark. [ci skip]
- Avoid setting arity/processing args if `func` is not passed to methods like `_.bind`.
- Ensure functions can be used as default values for `_.result`.
- Rebuild docs/dists and update tested browsers in readme.
- Fix `basename` in perf/perf.js. [ci skip]
- Cleanup `_.result`.
- Optimize `_.callback`.
- Rebuild dist/docs.
- Fix `_.every` test in perf/perf.js.
- Simplify `_.every` and `_.some`.
- Remove sauce labs hook, `global_test_results`, to add it to QUnit Extras.
- Reduce code in doc code examples. [ci skip]
- Update vendors.
- Add `_.partition`.
- Minor doc tweaks to `_.partition` and `_.zip`. [ci skip]
- Revert allowing `_.omit` and `_.pick` to work as a callback for `_.map` when combined with `_.partialRight` to be solved with `_.partial` placeholders in v3.
- Update vendor/bechmark.js. [ci skip]
- Rename `_.match` to `_.matches`.
- Update vendor/underscore to v1.6.0.
- Rebuild docs and dist.
- Update Underscore version in doc header. [ci skip]
- Fix copyright header in lodash.compat.js and lodash.min.js files. [ci skip]
- Add v8 issue note to `parseInt` and make other v8 issue use the same protocol. [ci skip]
- Cleanup docs in `_.matches` and `_.where`. [ci skip]
- Add `_.matches` test and cleanup `_.property` and `_.constant` tests.
- Remove node 0.6 fix from travis.yml as travis-ci now does it for us.
- Update qunit-extras to respect `QUnit.config.hidepassed`.
- Remove extra var from `createWrapper`.
- Add new feature notes to its section in readme. [ci skip]
- Tweak features bullets in readme. [ci skip]
- Fix minor typo [ci skip]
- Ensure `_.throttle` & `_.debounce` work if the system time is set backwards.
- Test cleanup.
- Add a module id of "underscore" to the Underscore build.
- Add placeholder support to `_.bind`, `_.partial`, and `_.partialRight`.
- Fix test fails in Rhino.
- Update test files to work with underscore builds defined as named amd modules.
- Update vendor/curl.
- Remove placeholder support from non-underscore builds.
- Update underscore builds.
- Avoid `packages` config for monolithic modules in tests.
- Update Backbone tests to 1.1.1.
- Update Backbone tests.
- Fix AMD test fails for Underscore builds. [ci skip]
- Add more details to the `_.template` docs. [ci skip] [closes #472]
- Cleanup tests.
- Fix doc typos in `_.template`. [ci skip]
- Fix `compseArgs` and `composeArgsRight` and cleanup and correct partial placeholder tests.
- Reduce passing arguments to helper functions by converting them to arrays.
- Rebuild docs & dist.
- Reorganize `_.template` tests.
- Templates should not reference `_.escape` if "escape" delimiters are not used. [closes #484]
- Add the version of Underscore our underscore build aligns to in readme. [ci skip]
- Fix `_.template` doc typo. [closes #484] [ci skip]
- Simplify `baseUniq`.
- Remove array and object pools.
- Cleanup `low` and `high` assignment in `_.sortedIndex`. [ci skip]
- Fixed _.indexBy() thisArg example in documentation
- Merge pull request #486 from rexxars/indexby-thisarg-docfix Fixed `_.indexBy` `thisArg` example in documentation. [ci skip]
- Optimize `_.isEqual` for primitives.
- Add falsey value optimizations for `baseDifference`, `baseFlatten`, `baseUniq`, `_.flatten`, and `_.uniq`.
- Cleanup the `callback` assignment in `_.clone` and `_.cloneDeep`.
- Add test to ensure `_.flatten` returns empty arrays for non array-like objects.
- Minor comment nits for `-0` and `+0`. [ci skip]
- Rebuild docs and dist.
- Tweak ticks around "callback" in test titles. [ci skip]
- Add a test for `_.uniq` with `isSorted`.
- Update the tested node version in readme. [ci ckip]
- Add placeholder support tests for `_.bind`.
- Update large array benchmarks in perf.js. [ci skip]
- Add common case paths to `_.difference` and `_.uniq`.
- Rebuild docs and dist.
- Reduce the Underscore build.
- Cleanup `_.first`, `_.initial`, `_.last`, and `_.rest`.
- Remove more code from the Underscore build.
- Build docs & dist including whitespace adjustments.
- Add partial application in `_.bind` to `_.curry` partial combo test.
- Add to lodash chaining doc note. [ci skip]
- Don't send test coverage results to coveralls for pull requests.
- Simplify component.json.
- Add support for `_.camelCase`, `_.endsWith`, `_.escapeRegExp`, `_.kebabCase`, `_.pad`, `_.padLeft`, `_.padRight`, `_.repeat`, `_.snakeCase`, `_.startsWith`, and `_.truncate`. [closes #425]
- Rebuild dist files. [ci skip]
- Escape a few more characters for in `_.escapeRegExp` for better narwhal/ringo/rhino support.
- Change `truey` to `truthy` in docs. [ci skip]
- Separate out `_.drop`, `_.dropWhile`, `_.take`, and `_.takeWhile` and modify docs to use "predicate" where appropriate.
- Rebuild dist.
- Minor whitespace nits. [ci skip]
- Add more string methods to the features note in readme. [ci skip]
- Make`_.dropRight`, `_.dropRightWhile`, `_.takeRight`, and `_.takeRightWhile` their own methods.
- Fix newly added string methods/docs.
- Reduce browser ranges to test in readme. [ci skip]
- Lots of doc tweaks. [ci skip]
- Add `_.negate`, `_.keysIn` and `_.valuesIn`.
- Deopt `_.invoke`.
- Remove `iteratorTemplate` and compiled methods.
- Further reduce browser ranges to test in readme. [ci skip]
- Add npm package.json `scripts` entry to echo testing instructions. [ci skip]
- Use `_.constant` where possible to cleanup tests.
- Remove `_.isObject` dep from `_.merge` and ensure `_.assign` and `_.defaults` don't error when `object` is `null` or `undefined` and source objects are provided.
- Ensure `_.intersection` handles non-array secondary values correctly.
- Use `args` in `_.merge` where possible.
- Rebuild dist.
- Add object values to secondary arguments tests for `_.difference`, `_.intersection`, `_.union`, and `_.xor`.
- Correct underscore builds.
- Remove duplicate `isArguments` method and move`negate` to the "Functions" category.
- Remove legacy and mobile builds from travis.yml tests.
- Remove legacy/mobile tests.
- Add the development underscore build to the test-ui dropdown list.
- Optimize `_.without` in IE.
- Ensure `_.truncate` doesn't truncate strings if they are equal to the given `length`.
- Add `_.pad`, `_.padLeft`, `_.padRight`, `_.repeat`, and `_.truncate` tests.
- Tweak wording on tests for options objects. [ci skip]
- Close `_.difference` test coverage gap.
- Fix minified compat/modern builds.
- Clamp indexes and lengths where appropriate.
- Make the code style in test.js consistent.
- Fix `_.camelCase` with consecutive capitalized words.
- Add unit tests for `_.camelCase`, `_.kebabCase`, and `_.snakeCase`.
- Rebuild dist.
- Add `chars` test for pad methods.
- Cleanup type coercions.
- Add `_.range` tests for `NaN` values for `start` and `end` arguments.
- Add doc examples for isXyz methods. [ci skip]
- Ensure `_.slice` coerces `start` and `end` arguments appropriately.
- Update vendors benchmark.js and qunit-extras.
- Reduce `_.find`, `_.findLast`, and `_.defaults`.
- Move `_.range` to the Utilities category.
- Use shorthand for package.json "repository" field. [ci skip]
- Rebuild dist.
- Update vendor/qunit-extras.
- Fix the Underscore build of `_.random`.
- Adjust `fromIndex` and `length` coercions.
- Add slow path note to `_.times` with `thisArg` benchmark. [ci skip]
- Cleanup ticks in method docs. [ci skip]
- Add `toLength` helper.
- Tweak `support.nonEnumArgs` assignment.
- Rebuild dist.
- Remove `toLength`.
- Allow `null` or `undefined` elements in `_.pluck`, `_.property`, and `_.invoke`.
- Avoid returning `assignDefaults` if no `object` is provided to `_.defaults`.
- Add array-like tests for "Collections" methods.
- Ensure `_.find` and `_.findLast` pass "Collections" tests for the compat build.
- Ensure find methods work with strings.
- Rebuild dist.
- Cleanup large array tests.
- Add large array test for `_.intersection` that tests large arrays combined with missing arguments.
- Add `baseFind` to simplify `_.find`, `_.findLast`, `_.findKey`, `_.findLastKey`.
- Comment nits. [ci skip]
- Whitespace nit. [ci skip]
- Simplify `_.find` by having it use `_.findIndex`.
- Add `maxSafeInteger` to tests and rename `LARGE_ARRAY_SIZE` to `largeArraySize`.
- Clarify `_.isEmpty` and add tests for array-like objects for `_.isEmpty` and `_.size`.
- Rebuild dist.
- Update tested Chrome version range in README. [ci skip]
- Add more methods to the features section of the README. [ci skip]
- Use the argument `predicate` instead of `func` for `_.negate`.
- Add doc notes for deprecated arguments of `_.first`, `_.initial`, `_.last`, and `_.rest`. [ci skip]
- Remove `legacy` and `mobile` from .gitignore. [ci skip]
- Update .travis.yml dependencies.
- Update vendor/backbone and vendor/requirejs.
- Remove unneeded parenthesis from .travis.yml.
- Add Underscore `_.now` test to the excused list.
- Rebuild dist. [ci skip]
- Update supported Firefox version in readme. [ci skip]
- Rewrite test/saucelabs.js.
- Comment nit. [ci skip]
- More cleanup in test/saucelabs.js.
- Avoid `^` caret use in travis until they update npm.
- Add chalk to test/saucelabs.js.
- Update vendor/jquery
- Avoid `a`, `b` variable names and cleanup `_.isEqual` docs.
- Remove `a` and `b` use from `baseIsEqual`.
- Adjust `_.camelCase`, `_.kebabCase` and `_.snakeCase` doc examples and tests.
- Fix `baseIsEqual` in Rhino, Ringo, Narwhal.
- Rebuild dist.
- Add `_.isEqual` test for `arguments` objects and tweak `phantom` detection.
- Add tests for `_.map`, `_.invoke`, `_.shuffle`, and `_.sortBy` for treating numbers as empty.
- Update docs [ci skip]
- Update Underscore license year [ci skip]
- Simplify `_.chain`
- Merge pull request #508 from d10/docs Docs improvements. [ci skip]
- Merge pull request #509 from d10/chain Simplify `_.chain`.
- Update link to curry post in readme. [ci skip]
- Merge branch 'master' of github.com:lodash/lodash
- Formalize all instances of `meta data` as `metadata` [ci skip]
- Improve docs [ci skip]
- Merge pull request #510 from d10/docs More doc cleanup. [ci skip]
- Merge branch 'master' of github.com:lodash/lodash
- Ensure sparse arrays are treated as dense by `_.keys` and `_.keysIn` and ensure support for string objects in `_.keys` and `_.keysIn`.
- Avoid formal param use in `_.difference`.
- Fix perf regression in `_.intersection`.
- Rebuild dist.
- Add `_.intersection` test for working with only secondary arguments.
- Cleanup test wording.
- Tweak `_.union` tests.
- Fix test title typos. [ci skip]
- Remove tab as a character to escape in template strings.
- Remove Bitdeli badge. [ci skip]
- Ensure `_.camelCase` handles acronyms and numbers.
- Remove unused vars.
- Simplify `_.camelCase` and add tests.
- Add `_.keys` test for string objects.
- Cleanup `fromIndex` coercions.
- Add `_.support.nonEnumStrings` and coerce key to a number in `_.keysIn` and `shimKeys`.
- Add `isPreBuild` flag and cleanup tests.
- Make `nativeMax` style consistent.
- Add placeholder support to `_.curry`.
- Tweak var names in `_.once` tests.
- Add placeholder tests to for `_.bindKey`.
- Fix typo in `_.once` test.
- Avoid unnecessarily coercing `start` to a number.
- More adjustments to coerced values.
- Add `_.keys` and `_.keysIn` tests.
- Only check indexes for arrays in `_.keysIn` dense array support.
- Rebuild dist.
- Cover `nonEnumArgs` in modern builds too.
- Remove unused `index` var and prevent leaking `keyIndex` var.
- Add `noglobals=true` to some sauce test runs in travis.yml.
- Comment and cleanup `support` properties.
- Ensure `_.initial` and `_.last` work with `NaN` values for `n`.
- Wrap `support.nonEnumArgs` assignment in a try-catch to avoid errors in Ringo, Rhino, and Narwhal.
- Rebuild dist.
- Replace `equal` with `strictEqual` and fix `ok` test typo.
- Tweak `support` property comments and `nonEnumArgs` test.
- Change `_.forEach` to `_.each` in tests.
- Add more `-Infinity`, `NaN`, and `Infinity` tests.
- Cleanup tests.
- Add `_.startsWith` and `_.endsWith` tests.
- Make `_.where` return all elements when the props object is empty.
- Add more `_.endsWith` and `_.startsWith` tests.
- Newline nit fixed by lodash-cli patch. [ci skip]
- Fix typos [ci skip]
- Merge pull request #520 from d10/docs Fix doc typos. [ci skip]
- More doc tweaks. [ci skip]
- Use `ok` when appropriate in test/test.js.
- Avoid var conflicts in the `support` IIFE in minified builds.
- Remove unneeded `@type` tag from the underscore build. [ci skip]
- Add `toJSON` alias of `valueOf`. [closes #521]
- Rebuild dist.
- Test format cleanup.
- Add `JSON.stringify` test.
- Add more `_.callback` tests.
- Minor comment nit. [ci skip]
- Add `null` and `undefined` values tests for `thisArg`.
- Add more falsey value tests.
- Ensure `_.contains` works with a `fromIndex` for objects.
- Add doc note to `_.isEqual` about not supporting comparing DOM nodes or functions. [ci skip]
- Ensure functions created by `_.matches` don't error when comparing falsey `object` values. [closes #523]
- Add `partitionInitializer` helper.
- Add `arrayEach`, `arrayEachRight` and `arrayMap` helpers.
- Doc nit for `_.pairs`. [ci skip]
- Whitespace nits.
- Fix semicolon/comma typo.
- Add mutation notes to `_.pull` and `_.remove`. [ci skip]
- Update sauce-tunnel in travis.yml.
- Remove `source` initialization from `matches`.
- Rebuild dist.
- Update `sauce-tunnel` require call.
- Add comment blocks and `browserName` helper to test/saucelabs.js.
- Case nit in test/saucelabs.js.
- Inline `partitionInitializer`.
- Simplify `_.contains`. Thanks @phated.
- Rebuild dist.
- Add test for custom `_.indexOf` methods, `_.contains`, and objects.
- Avoid strict comparison to function reference in `_.callback` test.
- Update narwhal, rhino, and ringo source links in travis.yml.
- Ensure `_.matches` is tested against sources with more than one property too.
- Increase code coverage when testing AMD modules.
- Cleanup tests.
- Add doc note to `_.isPlainObject` for objects created by `Object.create(null)`. [closes #526] [ci skip]
- More doc tweaks. [ci skip]
- Move doc node from `shimIsPlainObject` to `_.isPlainObject`. [ci skip]
- Use `arrayEach` for `baseClone`, `baseMerge`, and `transform`.
- Ensure `resolver` provided to `_.memoize` is a function if it's truthy.
- Add more tests for `null` `thisArg` arguments.
- Rebuild dist.
- Make `_.where` work with empty sources.
- Use `matched` instead of `found` in docs. [ci skip]
- Update vendor/underscore and underscore tests.
- Update other vendors.
- Add `_.findWhere` as its own method.
- Excuse invalid underscore `_.intersection` tests.
- Remove `_.isObject` use from `_.findWhere` and `_.where`.
- Prevent test fails for the npm build.
- Make more underscore tests pass.
- Fix error in Firefox < 4.
- Update underscore tests and vendor again.
- Simplify `_.isEmpty`.
- Ensure `pluck` always used `property` and `findWhere` and `where` always use `matches`.
- Avoid `!=` in `createCallback`.
- Use `_.noop` more in test/test.js.
- Add tests for `_.pluck`, `_.findWhere`, and `_.where` for their `key` or `source` arguments.
- Rebuild dist.
- Add `_.intersection` and `_.union` tests.
- Whitespace nits in test/test.js. [ci skip]
- Add `_.difference`, `_.intersection`, and `_.xor` tests.
- Ensure `_.difference` works with arrays regardless of arg position.
- Fix assert count.
- Remove native `trim`, `trimLeft`, & `trimRight` use.
- Treat `\x85` as whitespace.
- Add whitespace tests.
- Remove unneeded `lodashBizarro` tests.
- Update tested Chrome version in readme. [ci skip]
- Remove more native trim test scaffolding .
- Don't designate `\x85` as whitespace.
- Add an error message to each TypeError.
- Update vendor/qunit-extras.
- Implement `_.isError`
- Cleanup `_.isError` and add more tests.
- Add `_.isError` to the features section of the readme. [ci skip]
- Newline nits. [ci skip]
- Minor test cleanup. [ci skip]
- Ensure `_.keys` and `_.keysIn` always skip the `constructor` property on prototype objects.
- Liberal use of parentheses.
- Fix missing comma in test/test.js.
- Increase test coverage.
- Ensure error objects from iframes are tested.
- Update tested browsers in sauce.
- Allow `getIndexOf` to work when there is no external `_.indexOf` defined.
- Rebuild dist.
- Correct attempt count in test/saucelabs.js.
- Update ecstatic sauce test dep.
- Try documented tunnel identifier key over undocumented one.
- Change wording to `retry`.
- Ensure `_.max` and `_.min` return the correct value when `callback` computes +/-Infinity.
- Clarify `_.uniq` docs on `callback`. [ci skip]
- Add list of modern browser version ranges to readme. [ci skip]
- Cleanup throbber interval in vendor/qunit-extras.
- Move the dom/function check up in `baseIsEqual`.
- Add more DOM element tests.
- Avoid `RegExp#teat` error in older Opera.
- Add doc examples for `_.max` and `_.min` for +/-Infinity. [ci skip]
- Rebuild dist.
- Try mobile browsers with sauce rest api.
- Update vendor/qunit-extras.
- Add `/` to characters escaped by `_.escapeRegExp`
- Add `_.escapeRegExp`, pad, & trim tests.
- Tweak `_.max`, `_.min`, and trim helper comments. [ci skip]
- Cleanup `_.isObject` and `_.isRegExp`.
- Simplify `_.defaults`.
- Make `_.merge` align with `_.assign` exit early snippet.
- More `_.isObject` cleanup.
- Ensure that `_.transform` checks that `object` is an object before using it as the `accumulator` `[[Prototype]]`.
- Remove IIFE in test/saucelabs.js.
- Cleanup platforms in test/saucelabs.js.
- Rebuild dist.
- Add missing comma in test/saucelabs.js.
- Correct `browserName` output.
- Try to stabilize sauce results.
- Adjust modern build testing for older Android.
- Add some debug.
- Fix spelling mistake
- Fix doc typos `fourty` to `forty`. [ci skip]
- Apply `idle-timeout` to queued jobs too.
- `_.where` should perform a partial comparison of *all* objects within arrays of `source`. [closes #536]
- Add more `_.where` tests.
- Make `_.mixin` chainable and make it assign to `this` instead of hard coding assignment to `lodash`.
- Only apply `idleTimeout` to queued jobs.
- Try to use the `tunnel-identifier` key.
- Update formatting for tested browsers in readme. [ci skip]
- Remove `isPreBuild` checks from test/test.js.
- Fix `_.mixin` doc typo.
- Rebuild dist.
- Keep skipping placeholder tests for modularized builds.
- Add placeholders note to the features section of the readme. [ci skip]
- Add job throttle to test/saucelabs.js.
- Make `logInline` treat nullish values as an empty string.
- Add `Job#restart` and `Job#stop` to test/saucelabs.js.
- Ensure `_.callback` doesn't error if provided a nullish `func` argument and a `thisArg`.
- Cleanup test titles.
- Fix `dequeue`.
- Remove unused color from `ansiCodes`.
- Add retry limit to sauce retry message.
- Update travis deps to use `^` version indicator instead of `~`.
- Add the ability to retry sauce tunnel connections.
- Add state checks to test/saucelabs.js.
- Fix `Tunnel#stop`.
- Add `running` flag to `Job` and `Tunnel`.
- Fix restarting tunnels.
- Reset jobs when tunnel restarts.
- Reduce flag checking.
- Add `Jobs#reset`.
- Move `SauceTunnel` callbacks out of `Tunnel#start` and `Tunnel#stop` and use `util.inherits`.
- Use `_.partial` where applicable.
- Add doc note on Firefox OS certified apps. [ci skip]
- Fix `_.partialRight` doc example. [ci skip] [closes #540]
- Add doc note to `_.defaults` for a deep version. [ci skip] [closes #154]
- Avoid reporting tests to Sauce Labs when errors occur to force a retry.
- Rebuild dist.
- Update tested version of Node in readme. [ci skip]
- Update tested version of Firefox in readme. [ci skip]
- Restrict script load error excusal a bit.
- Whitespace nits. [ci skip]
- Emit `restart` events for `Job` and `Tunnel`.
- Restart tunnel if all jobs have restarted.
- Remove `_.at` guard for `_.map` use.
- Make documented args names of methods that accept more than one plural. [ci skip]
- Expand the excuse window of load errors to 3 seconds or more.
- Remove `args` var from `_.at`.
- Restart tunnel if all *active* jobs have restarted.
- Add `removeAt` function (cherry picked from commit 06b3eae373484618b58f70f3cd6ecda319bfd977)
- Fix `_.removeAt` with repeated indexes
- Use more descriptive variable name
- Use `else` instead of `continue`
- Rename `_.removeAt` to `_.pullAt`. [closes #490]
- Tweak docs for `_.pull`, `_.pullAt`, and `_.remove`. [ci skip]
- Whitespace nit.
- Add `baseAt` to reduce `_.at` and `_.pullAt`.
- Tweak docs for `_.at`, `_.omit`, and `_.pick`. [ci skip]
- Fix typo in `_.pullAt`.
- Rebuild dist.
- Make `threshold` account for job batch sizes smaller than the `throttled` amount.
- Message format nit for logging retries. [ci skip]
- Use the `chrome` sauce browser identifier in place of `googlechrome`.
- Correct typo in `Job#reset`.
- Remove unnecessary `this` binding and emit register `restart` callbacks so they execute sooner.
- Cleanup initialization of `Job` and `Tunnel` instances.
- Add `_.pullAt` to features section of readme. [ci skip]
- Add `Job#remove` to remove old jobs when restarting.
- Remove `id` check from `Job#stop`.
- Specify Node 0.11.11 to avoid 0.11.13 which isn't compatible with istanbul.
- Add debug.
- Comment nit. [ci skip]
- Use `String` instead of `+''` for consistent style.
- Fix old `pullAt` example
- Merge pull request #541 from danallison/master Fix old `pullAt` doc example. [ci skip]
- Fix resolving job ids.
- Fix url parsing.
- Ensure `_.pullAt` ignores non-index values.
- Make `_.memoize` skip the `__proto__` key.
- Simplify `memoize` doc example. [ci skip]
- Add a doc note for iterating inherited properties to `_.bindAll` and `_.functions`. [ci skip]
- Add `baseFunctions` to ensure `_.mixin` only iterates over own keys of `source` objects.
- Style nit on the IIFE used with `mixin`.
- Rebuild dist.
- Fix typo in `_.times` docs. [ci skip] [closes #549]
- Add `createAssigner`, `defaultsOwn`, and expand the `callback` args of `_.assign` and `_.merge`.
- Rename `assignDefaultsOwn` to `assignOwnDefaults` and remove `createAssigner` and `defaultsOwn`.
- Add `ui.isForeign`, add guards for Worker tests, and remove Dojo loader filter from test.
- Fix `jobUrl` typo in saucelabs.js.
- Make recursive test expand to `_.debounce` too.
- Add `$` signs to bash prompts
- Null out the `descriptor.value` after using it in `setData`.
- Ensure jobs are reset before the tunnel is closed.
- Split out `stop` and `reset` events in `Tunnel#restart`.
- Add more `logInline` calls and move state flag assignment higher in methods.
- Add `Job#resetting` flag.
- Pass more callback args to custom callbacks of `_.clone`, `_.cloneDeep`, and `_.isEqual`.
- Update tested Firefox version on Sauce.
- Null `_timerId` in `Job#status`.
- Cleanup `baseIsEqual` and `baseMerge`.
- Rename `testId` to `taskId`.
- Update sauce-tunnel.
- Avoid unneeded `index` var in `baseBind`.
- Add tunnel timeout support.
- Use result `job_id` instead of parsing the `url` and ensure tunnel can restart if the tunnel failed to start.
- Ensure tunnel stops when jobs are completed.
- Add `compileFunction`.
- Tweak escaping sourceURL in docs. [ci skip]
- Minor comment and code style fixes
- Update vendors.
- Minor style nit in test.js.
- Avoid a false fail in slower Ringo (and other slower environments).
- Excuse assert count expected error in Backbone and add support for excusing them qunit-extras.
- Rename `arrayRef` to `arrayProto` for consistency.
- Update qunit-extras assert `expected` count appropriately and fix typo.
- Only retry a test if it errors not because of unit test fails.
- Simplify .gitattributes. [ci skip]
- Update Underscore tests and excuse tests for edge features from the Underscore build.
- Avoid retrying the tunnel more times than allowed.
- Punt on AMD testing for Android because of stability issues.
- Add `baseAssign`, `baseBindAll`, `baseInvoke`, `basePick`, `basePullAt`, and `createAssigner`.
- Simplify `reWords`.
- Attempt to detect more false test errors.
- Add `_.runInContext` doc example.
- Correct .npm folder permissions in travis.yml.
- Optimize `_.every` and `_.some` and cleanup `_.callback`, `_.forEach`, and `_.forEachRight`.
- Avoid variable assignments in return statements.
- Cleanup `optionToValue`.
- Fix callback use with `_.isEqual`.
- Enhance `callback` args tests for `_.clone`, `_.cloneDeep`, and `_.isEqual`.
- Fix jashkenas/underscore#1621.
- Rebuild dist.
- Remove trailing comma to fix test fails in old IE.
- Update tested Chrome version in readme. [ci skip]
- Make `_.isEqual` callback test circular.
- Make `_.escape` escape backticks as well In Internet Explorer ≤ 8, the backtick character can be used to break out of unquoted attribute values or HTML comments. See http://html5sec.org/#102, http://html5sec.org/#108, and http://html5sec.org/#133.
- Fix doc typo. [ci skip]
- Add a `cancel` function to `debounced` functions. [closes #567]
- Lots of doc tweak removing heavy `will` use. [ci skip]
- Fix `_.throttle` doc typo. [ci skip]
- Add private `isArrayLike` helper and add object classifications for typed arrays with support for cloning and comparing them.
- Minor doc nit. [ci skip]
- Code cleanup and removal of `ctorByClass`.
- Consistent test order.
- Ensure `_.isEqual` works on error objects and add tests for cloning and comparing errors and typed arrays.
- Bump the tested Opera version in readme. [ci skip]
- Update vendor.
- Adjust `callback` arg counts and fast paths.
- Add chaining tests.
- Add chaining tests to string methods.
- Move test error catching code before any other script files.
- Fix test typo.
- Minor source nit in test/test.js.
- Add extra object in doc examples of `_.assign` and `_.defaults`. [ci skip]
- Delay status completion until there is a valid job ID.
- Make `reError` more robust and leverage `console.log` sugar more.
- Rename `_.truncate` to `_.trunc` to align with ES6.
- Ensure tests that timeout are marked as errors.
- Fix test stability.
- Detect sauce error message in result.
- Source cleanup of `onJobStart`.
- Remove unused fork in `baseAssign` and `baseMerge`.
- Add clone tests for array buffers.
- Fix failing test.
- Use Markdown links formatting. [ci skip]
- Updated README.md This commit adds links to Lo-Dash documentation under a specific "Documentation" heading, hopefully improving usability for users searching for the API docs.
- Update readme. [ ci skip]
- Update to version info to 2.5.0-pre.
-
2.4.1
Released at Dec. 2, 2013
-
2.4.0
Released at Nov. 25, 2013
Nov. 25, 2013 — Diff — Docs
- Added
_.constant,_.mapValues,_.now,_.property, &_.xor - Added an
optionsargument to_.mixinto specify whether the functions added are chainable - Added support for
_.sortByto accept an array of property names to sort by - Allowed
_.zipObjectto accept an array ofkeyswith novaluesargument - Removed conditional
setImmediateuse from_.defer
- Added
-
2.3.0
Released at Nov. 10, 2013
Nov. 10, 2013 — Diff — Docs
- Added
_.create&_.noop - Avoided memory leaks in
_.debounce&_.throttle - Enhanced
_.createCallbackto avoid binding functions already bound byFunction#bind - Ensured rebound functions correctly partially apply arguments
- Ensured
_.isEqualworks with objects created byObject.create(null)&_(false) - Ensured
_.min&_.maxwork as callbacks for_.map - Ensured
_.templatecoerces thetextargument to a string - Optimized
_.difference,_.omit, &_.withoutby way ofbaseDifference - Optimized
_.isBoolean,_.isNumber,_.isString,_.omit, &_.withoutfor thefalsecase - Optimized
_.sample&_.shuffleby way ofbaseRandom - Reduced
_.wrapby way ofcreateBound - Removed native
Function#binduse for better_.bindcross-environment consistency
- Added
-
2.2.1
Released at Oct. 3, 2013
-
2.2.0
Discovered at Sept. 28, 2013
Sept. 28, 2013 — Diff — Docs
- Added support for shallow cloning dates, regexes, & other non-plain built-in objects to
_.clone - Ensured
_.randomavoids excessive results of0when returning floating-point numbers - Made
compat&underscorebuilds useDate.nowwhen available - Reduced dependencies on
getObject&releaseObject
- Added support for shallow cloning dates, regexes, & other non-plain built-in objects to
-
2.1.0
Discovered at Sept. 22, 2013
Sept. 22, 2013 — Diff — Docs
- Added
Object.definePropertyfallback for themodernbuild - Added support to
_.randomto explicitly specify floating point numbers - Allowed
_.composeto be invoked without arguments - Ensured
_.flattenworks with extremely large arrays - Ensured
_.supportproperties aren’t minified - Ensured
reThisisn’t used in Windows 8 applications - Made UMD more resistant to false positives
- Optimized
_.isArguments&_.isArrayfallbacks
- Added
-
2.0.0
Discovered at Sept. 12, 2013
Sept. 13, 2013 — Diff — Docs
<h5> Compatibility Warnings</h5>- Aligned
_.afterwith Underscore 1.5.0, making it always return a function - Made
_.unzipan alias of_.zip
- Created lodash methods as npm packages & AMD/Node.js modules
- Made
_.chainforce chaining for all methods, even those that normally return unwrapped values - Moved the build utility to
lodash-cli - Optimized
_.contains,_.debounce,_.isArguments,_.throttle,_.where, & functions created by_.bind,_.bindKey,_.curry,_.partial, &_.partialRight - Added
_.curry,_.forEachRight,_.indexBy,_.findLast,_.findLastIndex,_.findLastKey,_.forInRight,_.forOwnRight,_.pull,_.remove, &_.sample
- Added Curl & Dojo module loaders to the unit tests
- Added the
modularizebuild option - Added support for the
iifecommand to be used without an%output%token - Added support for
_.mixinto accept a destination object - Added support for
_.rangeto accept astepof0 - Ensured “Arrays” methods support
argumentsobjects - Ensured “Functions” methods throw when not passed functions
- Ensured
_.atworks as a callback for_.map - Ensured
_.createCallbackworks when noargCountis specified - Ensured
_.first&_.lastreturn arrays when passed a falseyarraywith annvalue - Ensured
_.flattenworks withargumentsobjects - Ensured minified files work with Dojo’s builder
- Ensured
_.zipObjectskips falsey elements - Improved dead code removal from builds
- Improved JSDoc syntax
- Made
_.eachRightan alias of_.forEachRight - Made
_.memoizeavoid prefixingcachekeys when using aresolverfunction - Removed local
clearTimeout&setTimeoutvariables from theunderscorebuild - Reduced the size of the repo & npm package
- Simplified the bailout in
createCache - Updated sourceURL & sourceMappingURL syntax
- Updated
underscorebuild compatibility to v1.5.2
- Aligned
-
1.3.3
Released at April 10, 2012
- Fix #547 - _.templateSettings is unchanged by custom settings.
- Underscore.js 1.3.3 (tiny bugfix release)
-
1.3.2
Released at April 9, 2012
- Merge branch 'master' into gh-pages
- Fixes #442 -- broken link to Objects/functions on the homepage
- Merge branch 'master' into gh-pages
- Fixes #435 -- allows _.max and _.min on arrays of dates without converting them to numbers.
- Clarify docs: return value of uniqueId
- Merge pull request #444 from mark-rushakoff/uniqueid-doc Clarify docs: return value of uniqueId
- Added documentation for _.isObject
- Added a false case for the isObject test documentation
- Merge pull request #446 from bjh/master documentation for _.isObject
- Fixing isObject documentation.
- Short circuit `isEmpty` for null/undefined
- Merge pull request #453 from braddunbar/isempty Short Circuit `isEmpty` for null/undefined
- Upgrade qunit
- Merge pull request #454 from braddunbar/qunit Upgrade QUnit
- Fixes #437 -- add an 'immediate' parameter to _.debounce.
- Making toArray example clearer.
- Make it clearer that extend and defaults modify in place *and* return
- Merge pull request #462 from joliss/doc Make it clearer that extend and defaults modify in place *and* return
- `_.difference` should perform a shallow flatten
- Merge pull request #463 from michaelficarra/patch-2 `_.difference` should perform a shallow flatten
- Fix for #478 - any and every should be consistent about casting result to boolean
- Merge pull request #481 from dbrans/master Fix for #478 - any and every should be consistent about casting result to boolean
- Test: any and every cast result to boolean. Relates to #478
- Merge pull request #482 from dbrans/master Test: any and every cast result to boolean. Relates to #478
- Issue #484: `_.uniq()` should work with sparse arrays.
- `_.uniq()`: Remove unused `previous` variable.
- Un-golf `_.uniq()`.
- Merge pull request #486 from kitcambridge/uniq `_.uniq()` should work with sparse arrays.
- Added favicon, closes #492
- Merge pull request #493 from mborejdo/master added favicon
- Added favicon, closes #492
- Aliases `_.take()` to `_.first()` and `_.head()`
- Don't call iterable.toArray in _.toArray if not a function
- Allow natural multi-line code evaluation in templates. By escaping `\r`, `\n`, and `\t` earlier, we can unescape them along with backslashes and single quotes allowing for the inclusion of single line comments and code without a terminating semicolon.
- Merge pull request #505 from braddunbar/arbitrary-code Allow natural multi-line code evaluation in templates.
- Handle \u2028 & \u2029 in _.template.
- Merge pull request #506 from braddunbar/line-terminators Handle \u2028 & \u2029 in _.template.
- Clean up _.template. * Cache regexes. * Use object properties for lookup instead of switch.
- Add utility function `getValue`.
- Merge pull request #511 from braddunbar/tmpl-regexes Clean up _.template.
- Cache property value.
- Rename `getValue` to `result`.
- Dispense with abbreviation.
- Merge pull request #512 from braddunbar/getvalue Add utility function `result`.
- Clarify documentation for _.result.
- Merge pull request #514 from braddunbar/result-docs Clarify documentation for _.result.
- Make a small documentation change.
- _.size ludicrous speed improvement
- _.size ludicrous speed improvement - formatting
- Size enhancement as ternary and _.size(arr) test case
- Merge pull request #515 from octatone/master Proposed solution for _.size speed improvement RE issue #496
- _.result calls `property` with the correct context.
- Prefer equal(x, y) over ok(x == y)
- Merge pull request #519 from mark-rushakoff/test-cleanup Prefer equal(x, y) over ok(x == y)
- Attach template source to returned function.
- Add _.isFinite - verifies is a number between Inf && -Inf
- _.isFinite fix and tests
- Formatting
- Test against NaN
- Have sidebar scroll natively on touch devices
- Merge pull request #525 from mislav/touch doc site: have sidebar scroll natively on touch devices
- Documentation for `_.template(...).source`.
- Merge pull request #521 from braddunbar/template-source Attach template source to returned function.
- Test _.isFinite against new Number
- Use _.isNumber for correctly working check
- Add _.restrict(source, *keys) Return a clone of the source with only the properties named in *keys (either stings or arrays containing strings). Especially useful for avoiding mass-assignment vulnerabilities.
- Adding the ability to _.sortBy(list, 'property')
- Allow sortBy to handle undefined values.
- Fixes #538 -- confusing wording around chaining.
- Resolving merge
- Trying to fix whitespace merge problems
- Fixes #538 -- confusing wording around chaining.
- Merge pull request #534 from chris-baynes/master Allow for better handling of undefined values in sortBy.
- Revisions to #534, sortBy(undefined)
- Merging #532 -- allow string as iterator on sortBy
- Merge pull request #523 from chrisleishman/restrict Add _.restrict(source, *keys)
- Adding an initial implementation of a 'pick' function. #523
- Merge pull request #524 from octatone/isFinite New Feature: _.isFinite to compliment _.isNumber and _.isNaN
- Comment tweak
- Merge pull request #504 from mwilliamson/master Don't call iterable.toArray in _.toArray if not a function
- Reordering the patch for #504
- Merge pull request #500 from bryanwoods/master Aliases `_.take()` to `_.first()` and `_.head()`
- Fixes #491 - IE9 / Opera 11 test case.
- Default timeout'd scope is null / global. Fixes #484
- Fixes #465 -- throttled functions return their value when they actually run.
- Remove the unnecessary branch in _.shuffle() The non-zero case works properly for 0 as well.
- Merge pull request #539 from fawek/_.shuffle Remove the unnecessary branch in _.shuffle()
- Removing added speed test
- Add varname to _.templateSettings. * Leave out the with statement when using varname. * Rename source to compiled. * Comments, comments, comments.
- Allow _.templateSettings to be overriden.
- Tweak variable names. Update docs. * Restore template.source. * Use variable instead of varname. * Use text for template input. * Include settings in documentation.
- Merge pull request #540 from braddunbar/template-varname Add variable to _.templateSettings.
- _.template uses concatenation instead of join.
- Correct errant newlines.
- Merge pull request #542 from braddunbar/template-concat _.template Uses Concatenation
- Fixes #541 -- broken docs for tap()
- Merge branch 'master' of github.com:documentcloud/underscore
- First commit
- Merge https://github.com/documentcloud/underscore
- Resolving merge
- Underscore.js 1.3.2
-
1.3.1
Released at June 12, 2013
-
1.3.0
Released at June 11, 2013
June 11, 2013 — Diff — Docs
- Added
_.transformmethod - Added
_.chain&_.findWherealiases - Added internal array & object pooling
- Added Istanbul test coverage reports to Travis CI
- Added
maxWaitoption to_.debounce - Added support for floating point numbers to
_.random - Added Volo configuration to package.json
- Adjusted UMD for
component build - Allowed more stable mixing of
lodash&underscorebuild methods - Ensured debounced function with,
leading&trailingoptions, works as expected - Ensured minified builds work with the Dojo builder
- Ensured minification avoids deoptimizing expressions containing boolean values
- Ensured support for
--outputpaths containing build command keywords - Ensured unknown types return
falsein_.isObject&_.isRegExp - Ensured
_.clone,_.flatten, &_.uniqcan be used as acallbackfor methods like_.map - Ensured
_.forInworks on objects with longer inheritance chains in IE < 9 - Ensured
_.isPlainObjectreturnstruefor empty objects in IE < 9 - Ensured
_.max&_.minchain correctly - Ensured
clearTimeoutuse doesn’t cause errors in Titanium - Ensured that the
--stdoutbuild option doesn’t write to a file - Exposed memoized function’s
cache - Fixed
Error.prototypeiteration bugs - Fixed “scripts” paths in component.json
- Made methods support customizing
_.indexOf - Made the build track dependencies of private functions
- Made the
templatepre-compiler build option avoid escaping non-ascii characters - Made
_.createCallbackavoid binding functions if they don’t referencethis - Optimized the Closure Compiler minification process
- Optimized the large array cache for
_.difference,_.intersection, &_.uniq - Optimized internal
_.flatten&_.indexOfuse - Reduced
_.unzip&_.zip - Removed special handling of arrays in
_.assign&_.defaults
- Added
-
1.2.4
Released at Jan. 4, 2012
- Add failing test for Javascript in templates Uses an escaped character in Javascript embedded in a template. Gets incorrectly replaced when templating.
- Templating fix for when an escaped character is used in Javascript If an escaped character (e.g. \n) is used in embedded Javascript inside a template then it gets escaped to \\n. If someone has put an escaped character in their JS then they probably want it left that way. This commit replaces \\s with a single \ when inside evaluation tags, reverting the previous template escaping.
- Fixes #406
- Fixes #403
- Fixes #397
- Merge pull request #401 from Stuk/template_js_fix Fix escaped chars in Javascript in templates
- Fixes #409 - Unexpected arguments passed to wrapper function in _.wrap when the first argument of calling the wrapper function is an array
- Merge pull request #410 from foobarfighter/wrap-bug-fix Fixes #409 - Unexpected arguments passed to wrapper function in _.wrap when the first argument of calling the wrapped function is an array
- Doc for bind: currying -> partial application
- Use _.isFunction so ClojureScript doesn't break underscore Clojurescript adds a call method to strings, so passing a string to _.invoke produces the wrong behavior.
- Merge pull request #415 from HSSC/master use _.isFunction in _.invoke
- Extends definitions of throttle & debounce to make usage extra-clear.
- Typo
- Fixes #408: _.chain(object) as well as _(object).chain()
- Merge pull request #417 from alanhogan/patch-1 Extends definitions of throttle & debounce to make usage extra-clear.
- Removing voluminous verbose verbiage
- Merge pull request #414 from vovik/master doc for bind: currying vs partial application
- Fixes #411. Partially adding _.templateSettings could break template strings containing the words 'null' or 'undefined'.
- Merge branch 'master' of github.com:documentcloud/underscore
- Underscore.js 1.2.4
-
1.2.3
Released at Dec. 7, 2011
- Provided _.indexOf and _.lastIndexOf with proper sparse array support.
- (Actually) Provided _.indexOf and _.lastIndexOf with proper sparse array support.
- Fixed a scope issue with the returned template function
- Merge pull request #374 from azicchetti/master Fixing a scope issue of the function returned by template()
- Update underscore.js
- Add missing comma to index.html
- Merge pull request #375 from zakj/patch-1 Add missing comma to index.html
- Fixes #372 -- preserve dynamic scope for _.template functions.
- Resolving merge
- Issue #309, adding symmetric difference as _.symDifference, and making _.difference accept any number of arguments.
- Merge pull request #343 from janraasch/indexOf _.indexOf and _.lastIndexOf proper sparse array support.
- Underscore: Fix cross-browser object enumeration issues. [jddalton]
- Merging in @jdalton's #385
- Underscore: Add unit tests and cleanup code for for-in issues. [jddalton]
- Underscore: Allow _.reduce and _.reduceRight to have an explicitly undefined value. [jddalton]
- Merge pull request #391 from jdalton/reduce Allow _.reduce and _.reduceRight to have an explicitly undefined initial value
- Fixing typo.
- Merge branch 'master' of github.com:documentcloud/underscore
- Merge https://github.com/documentcloud/underscore into unittests
- Underscore: Avoid regression and cleanup comments. [jddalton]
- Merge pull request #390 from jdalton/unittests Add unit tests and cleanup code for for-in issues.
- Style tweaks.
- Rolling back to the previous implementation of 'each' ... cancels out #385
- Adding back style and implementation tweaks from #385
- Adding concat reference
- Re-adding 649f62
- Underscore.js 1.2.3
-
1.2.2
Released at Nov. 14, 2011
- Merge branch 'master' into gh-pages
- Removing a redundant finishThrottle check, renaming vars.
- Merge branch 'gh-pages'
- Fixing _.throttle() to only execute once if called once. #170 comments.
- Fixed _.template() HTML escaping for when _ isn't in scope, due to noConflict() and minification.
- `_.isEqual`: Use `[[Class]]` checking for consistency and performance. * Objects with different `[[Class]]` names are no longer equivalent. * String, number, and boolean primitives and their corresponding wrappers (e.g., `"5"` and `new String("5")`) are now equivalent. * Arrays are now recursively compared by their numeric properties only. All non-numeric properties are ignored.
- `_.isEqual`: Fix an erroneous check for the `constructor` property.
- `_.isEqual`: Ensure that an `egal` comparison is performed for number objects and primitives.
- Merge pull request #348 from hx/master Fix for _.template() HTML escaping when using noConflict() and minification.
- Style, clarity
- Merge pull request #353 from braddunbar/style style, clarity
- `_.isEqual`: Issue #355.
- Fixes #335.
- Merge branch 'master' of github.com:documentcloud/underscore
- Fixes Issue #350 -- Making _.escape dumber to allow double-escaping of HTML entities.
- Added explicit definition of global context for compatibility with Adobe JS Signed-off-by: kapooostin <[email protected]>
- Merge pull request #357 from kapooostin/master Explicit definition of global context for compatibility with Adobe JS
- Fixed any() for strings on IE8
- Changed implementation of any to short-circuit when result is truthy
- Fix bug with _.last(a, n) incorrectly handling n > a.length
- _.after(0, callback) now fires callback immediately
- Fixes #369 -- adding extra semicolons to templtes in case you forget.
- Merge branch 'master' of github.com:documentcloud/underscore
- Merge pull request #366 from tillberg/master This commit fixes #364
- Re-styling previous commit.
- Merge pull request #365 from Wachunga/master Fix bug with _.last(a, n) where n > a.length and add test
- Cleaning up _.last implementation.
- Merge pull request #363 from jeffasnome/master fixed any() for strings on IE8
- Fixes #360, documenting _.escape.
- Merging in #351, @kitcambridge's continued quest to implement _.isEqual
- Underscore.js 1.2.2
-
1.2.1
Released at April 29, 2013
Apr. 29, 2013 — Diff — Docs
- Added Component package support
- Updated the build utility to work with changes in GitHub’s API
- Ensured
_.isPlainObjectworks with objects created byObject.create(null) - Ensured “isType” methods return
falsefor subclassed values - Ensured debounced functions, with
leading&trailingcalls enabled, only perform trailing calls after they’re called more than once
-
1.2.0
Released at April 16, 2013
Apr. 16, 2013 — Diff — Docs
- Added
_.unzip - Added an
optionsargument to_.debounce&_.throttle - Allowed non-
underscorebuilds to include_.findWhere&_.chain - Ensured “Arrays” & “Objects” category methods work with
argumentsobjects & arrays respectively - Ensured build utility runs on Windows
- Ensured
underscorebuild versions of “isType” methods align with Underscore - Ensured methods avoid issues with the
__proto__property - Ensured
_.isEqualuses acallbackonly if it’s a function - Ensured
_.mergeapplies acallbackto nested properties - Ensured
_.mergepasses the correctcallbackarguments when comparing objects - Made lodash work with Browserify
- Removed all method compilation from the
modernbuild
- Added
-
1.1.7
Released at Oct. 19, 2011
- Opt in to AMD registration.
- Add support for CommonJS implementations that do not support modules.exports.
- Made the exports check safe
- Fixes #336 ... adds find alias for detect, and reorders to make the ES5 versions canonical.
- Issue #329 -- significant change to _.isEqual semantics.
- Merge branch 'patch-1' of https://github.com/tonylukasavage/underscore
- Fixes #335, exporting for Titanium.
- Merge branch 'master' of https://github.com/documentcloud/underscore into optamd
- Issue #329, special check for the common and magical 'length' property.
- If register as an AMD module, do not create a global, since the goal is to not leak out globals in that case.
- Comment formatting.
- Merge pull request #338 from jrburke/optamd Optionally call AMD define() to register module
- Fixes #341, flattening arrays in the context of taking a union shouldn't be deep. Adding a shallow parameter to _.flatten()
- Merge branch 'master' of github.com:documentcloud/underscore
- Cleaning up AMD comment.
- Fixes #339 -- incorrect memoization example in docs.
- Enhancing _.bind() to support binding constructors ... which you would never, ever want to do.
- Execution time optimisations for `_.isArguments`, stricter es3 fallback
-
1.1.6
Released at Sept. 4, 2011
- Issue #252 #154 #148 documenting numeric length key caveat
- Merging in #194, adding an iterator to _.uniq
- Added link to Underscore.php in the docs
- Merge pull request #267 from brianhaveri/master Link to Underscore.php in docs
- Added link to Underscore.php in the docs
- Adding Underscore-perl
- Adding Underscore-perl
- Added function shuffle, with test case.
- Remove dupe inclusion of underscore-min.js. Get rid of 'reshuffle' in index.html.
- Add an optional index argument to _.last() This makes _.last() behave the same as _.first(). Passing an optional second argument n will return the last n elements of the array.
- Add guard check to _.last() Allows _.last() to work as expected with _.map().
- Reverting some changes to isEqual that were a little too aggressive
-
1.1.5
Released at March 20, 2011
- Remove unused code and avoid variable redeclaration
- Bug fix for _.memoize when key is derived from prototype
- Improve arguments overloading in _.range method
- Merging lifesinger's clarified range.
- Fixing #95 ... Maloptimization of _.keys for sparse arrays.
- Fixing Underscore.string link to new maintainer.
- Merge branch 'gh-pages'
- Issue #107: Fixing issue with _.first([1,2,3], 0) returning first element instead of empty array.
- Greet, exclaim -> exclaim, greet. Issue #110
- Merge branch 'master' of github.com:documentcloud/underscore
- Adding _.defaults, Issue #106
- Adding _.once, for running a function once
- Point out that you can use print() inside of js code inside of templates
- Added support for ECMAScript 5 native `bind` method if available. Additional unit test to cover multiple argument binds.
- Updated 'bind' documentation to reflect native support.
- Updated 'bind' documentation to reflect native support.
- Updated bind method to stop un-needed variable assignment when using native method.
- Use existing alias for function bind.
- Merging maw's doc patch.
- Merge branch 'master' of https://github.com/AdmCrvn/underscore
- Merging in the native bind branch.
- Making interpolate/evaluate more clear.
- Added regression test for issue #95
- Issue #150: `_.bind` should allow binding functions to falsy values.
- Issue #149: `_.keys` should throw a `TypeError` for non-objects.
- New version of qunit ... fixing up tests.
- Merging in michaelficarra's issue95
- Issue #137. Docs for memoize.
- S/Packed/Minified. Issue #136
- Merge branch 'master' of https://github.com/TrevorBurnham/underscore
- Adding _.once ... Issue #121
- Documenting _.once
- Underscore.js 1.1.5
-
1.1.4
Released at Jan. 9, 2011
- Adding a note about the _.each change.
- Fix _.isEquals() for wrapped objects This caught me out when writing some unit tests that use _.isEquals(). They were all passing even though I knew they shouldn't be, and I realised I was checking equality with a wrapped object that I'd forgotten to unwrap.
- Merge branch 'master' of https://github.com/documentcloud/underscore
- Merging in jasondavies isEqual patch for wrapped objects.
- Period.
- Access the `_wrapped` property directly instead of calling `value()` when unwrapping wrapped objects in `isEqual()`
- Improve compliance with Array methods in ES5 when passed a null value. (ES5 Array methods treat `null` like `[]`)
- Improve compliance with Array methods in ES5 when passed a null value. (ES5 Array methods treat `null` like `[]`)
- Merge branch 'master' of http://github.com/ryantenney/underscore
- Issue #79. Correctly setting 'this' in '_.wrap'
- Issue #68. Adding _.sortedIndexOf
- Rework of #68, to use a flag to indexOf, instead of a separate function.
- Switching to canonical isNaN
- Updating _.isNaN comment doc.
- Issue #83 ... typo.
- Safer but slower toArray fallback, in light of .callee throwing in strict mode.
- Trying to avoid obj.callee (strict mode)
- Underscore 1.1.4 is on the books.
-
1.1.3
Released at Dec. 1, 2010
- Removing now unused propertyIsEnumerable reference.
- Fix (grammar) typo.
- Fix reduce() so that if you don't pass in an initial value, the first item in the collection is used
- Fix reduceRight() so that if you don't pass in an initial value, the last item in the collection is used
- Merge branch 'gh-pages' of http://github.com/bkudria/underscore
- Merge branch 'fix_reduce_initial_value' of http://github.com/mcmire/underscore
- Tweaks to Issue #53
- Merge branch 'fix_reduceRight_initial_value' of http://github.com/mcmire/underscore
- Merging in Issue #54
- Added index file for Node.JS
- Adding header + version number to -min.js
- Preserve backslashes in _.template() For example, templates containing things like the literal string `\ribbit` weren't being escaped properly when being compiled. The `\r` was being interpreted as a carriage return character. I've added a test for this too, and all the existing tests pass.
- Adding help info to the homepage.
- Fix spelling: occurence -> occurrence
- Export _ object as the entire module
- Initial draft of _.throttle and _.debounce
- Merge branch 'master' of https://github.com/josh/underscore
- Merging in a patch for _ = require('underscore')
- Tweaking README ... linking to contributors.
- Safer CommonJS detection... module.exports must be defined.
- Removing an errant a.
- Better Underscore isType checking, in the presence of Internet Explorer host objects, which are a bit touchy.
- Issue #70 -- implementing each, find, all, any, etc. without the use of a try/catch/throw. Minor speedup + avoids destroying the stack trace.
- Underscore.js 1.1.3
-
1.1.2
Released at Oct. 15, 2011
- Merge branch 'master' into gh-pages
- Updating filesizes
- Merge branch 'master' into gh-pages
- Fixing bullet points.
- Merge branch 'master' into gh-pages
- Reimplemented _.isEqual tests and patch in a fresh branch.
- Yuchi spotted duplication
- Reducant check spotted by kitcambridge.
- Merge pull request #326 from kmalakoff/is_equal_different_types_take2 Reimplemented _.isEqual tests and patch in a fresh branch.
- Fix typo.
-
1.1.1
Released at March 27, 2013
-
1.1.0
Released at March 26, 2013
Mar. 26, 2013 — Diff — Docs
- Added
rhino -requiresupport - Added
_.createCallback,_findIndex,_.findKey,_.parseInt,_.runInContext, &_.support - Added
callback&thisArgarguments to_.flatten - Added CommonJS/Node support to precompiled templates
- Ensured the
exportsobject is not a DOM element - Ensured
_.isPlainObjectreturnsfalsefor objects without a[[Class]]of “Object” - Made
callbacksupport in_.cloneDeepmore closely follow its documentation - Made
_.objectan alias of_.zipObject - Made the template precompiler create nonexistent directories of
--outputpaths - Optimized method chaining, object iteration,
_.find, &_.pluck - Updated
backbonebuild lodash method dependencies
- Added
-
1.0.4
Released at June 22, 2010
- Adding a main stanza to package.json for npm installation.
- Underscore 1.0.4, with _.memoize
-
1.0.3
Released at June 14, 2010
- Fixed documentation typo. Renamed _.isFuction to _.isString.
- Even though it's not really part of the API, making _.isEmpty work with Strings cross-browser.
- NaN is never equal to NaN. Fixed in underscore.js and underscore-min.js, updated tests in test/objects.js
- Underscore 1.0.3
-
1.0.2
Released at March 23, 2010
- Underscore 1.0.2, with a fixed _.isArguments for Opera
-
1.0.1
Released at Feb. 18, 2013
Feb. 18, 2013 — Diff — Docs
- Added support for specifying source map URLs in
-p/--source-mapbuild options - Ensured the second argument passed to
_.assignis not treated as acallback - Ensured
-p/--source-mapbuild options correctly set thesourceMappingURL - Made
-p/--source-mapbuild options set source map “sources” keys based on the builds performed - Made
_.deferusesetImmediate, in Node.js, when available - Made
_.wheresearch arrays for values regardless of their index position - Removed dead code from
_.template
- Added support for specifying source map URLs in
-
1.0.0-rc.3
Released at Dec. 17, 2012
Dec. 17, 2012 — Diff — Docs
<h5> Compatibility Warnings</h5>- Made
_#join,_#pop, &_#shiftwrapper methods return unwrapped values - Made “Functions” methods wrapper counterparts return wrapped values
- Removed
_.chain&_#chainmethods
- Added
_.onceto thebackbonebuild method dependencies - Ensured
backbonebuilds implement Underscore’s chaining behavior - Ensured the
settings=…build option doesn’t clobber the defaultmoduleId - Ensured lodash’s npm package installation avoids erroring when no other modules have been globally installed
- Made
_.cloneDeepan alias of_.clone(…, true) - Made compiled templates loaded via AMD use the lodash module for their
_references - Removed the “Collections” method
_.forEachdependency from “Arrays” method_.intersection - Optimized
_.isArray&_.isFunctionfallbacks as well as_.intersection,_.isDate,_.isRegExp,_.reduce,_.reduceRight,_.union, &_.uniq
- Made
-
1.0.0-rc.2
Released at Dec. 5, 2012
-
1.0.0-rc.1
Released at Dec. 4, 2012
Dec. 4, 2012 — Diff — Docs
<h5> Compatibility Warnings</h5>- Made
_(…)chain automatically without needing to call_#chain - Made
_.isEqualequateargumentsobjects to similarObjectobjects - Made
_.clonecopy the enumerable properties ofargumentsobjects & objects created by constructors other thanObjectare cloned to plainObjectobjects
- Ensure lodash runs in the JS engine embedded in Adobe products
- Ensured
_.reduce&_.reduceRightpass the correct number ofcallbackarguments - Ensured
_.throttlenulls thetimeoutId - Made deep
_.clonemore closely follow the structured clone algorithm & copy array properties assigned byRegExp#exec - Optimized compiled templates in Firefox
- Optimized
_.forEach,_.forOwn,_.isNumber, &_.isString - Simplified
iteratorTemplate
- Made
-
1.0.0
Released at Feb. 14, 2013
Feb. 14, 2013 — Diff — Docs
<h5> Compatibility Warnings</h5>- Made
_.defaultspreservenullvalues, instead of overwriting them
- Added
_.at&_.partialRight - Added “imports” option to
_.templateSettings - Added
modern&-p/--source-mapbuild options - Added support for “_.pluck” & “_.where”
callbackshorthands - Ensured
_.assign&_.defaultssupport arrays - Ensured
_.mergeassignsnullvalues & produces dense arrays - Deferred minifier downloads until the
lodashutility requires them - Flipped
noNodeClasstest to avoid triggering Firebug’s “break on all errors” feature - Made
_.wheresupport deep object comparisons - Optimized
_.invert,_.pairs, &_.values - Reduced
_.max,_.min,_.pluck,_.toArray, &_.where - Removed support for automatic with-statement removal from
_.template - Simplified
createIterator&iteratorTemplate - Tweaked
_.uniqueIdto avoid problems with buggy minifiers - Updated
underscorebuild compatibility to v1.4.4 - Added
callback&thisArgarguments to_.assign,_.clone,_.cloneDeep,_.first,_.last,_.initial,_.isEqual,_.merge, &_.rest
- Made
-
0.10.0
Released at Nov. 17, 2012
Nov. 17, 2012 — Diff — Docs
<h5> Compatibility Warnings</h5>- Renamed
_.lateBindto_.bindKey - Made
_.defaults&_.extenditerate only own properties ofsourceobjects to align with ESObject.assign
- Added the build commands used to custom build copyright/license headers
- Added
_.assign - Ensured the
underscorebuild of_.findreturns the first, not last, matched value - Ensured
_defaults,_.extends, &_.mergework with_.reduce - Made lodash’s npm package installation work with more system configurations
- Made
_.extendan alias of_.assign - Optimized
_.contains,_.defaults,_.extend, &_.filter - Restricted
_.whereto iterate only own properties ofsourceobjects - Updated
backbonebuild lodash method dependencies
- Renamed
-
0.9.2
Released at Nov. 9, 2012
Nov. 9, 2012 — Diff — Docs
- Added
fromIndexargument to_.contains - Added
moduleIdbuild option - Added Closure Compiler “simple” optimizations to the build process
- Added support for strings in
_.max&_.min - Added support for ES template delimiters to
_.template - Ensured re-minification of lodash by third parties avoids Closure Compiler bugs
- Optimized
_.every,_.find,_.some, &_.uniq
- Added
-
0.9.1
Released at Oct. 31, 2012
-
0.9.0
Released at Oct. 24, 2012
Oct. 24, 2012 — Diff — Docs
- Added a
sourceURLoption to_.template - Ensured
_.wherereturns an empty array if passed an emptypropertiesobject - Expanded
_.isFiniteto returntruefor numeric strings - Reduced
_.intersection,_.omit,_.pick,_.sortedIndex, &_.where - Reduced the npm package size by only downloading minifiers for global installs
- Reduced lodash’s file size
- Improved source code comprehension by removing compilation from
_.bindAll,_.contains,_.countBy,_.every,_.filter,_.find,_.functions,_.groupBy,_.invert,_.invoke,_.isEmpty,_.map,_.merge,_.omit,_.pairs,_.pick,_.pluck,_.reduce,_.reject,_.some,_.sortBy,_.values,_.where, & internalshimKeys
- Added a
-
0.8.2
Released at Oct. 10, 2012
-
0.8.1
Released at Oct. 4, 2012
-
0.8.0
Released at Oct. 1, 2012
Oct. 1, 2012 — Diff — Docs
<h5> Compatibility Warnings</h5>- Made
_.randomreturn0or1when no arguments are passed - Moved late bind functionality from
_.bindto_.lateBind - Removed first argument falsey checks from methods
- Removed support for custom
clone,isEqual,toArraymethods from_.clone,_.isEqual, &_.toArray
- Added
-d/--debug,-m/--minify,minus,plus,settings, &templatebuild options - Added
_.isPlainObject&_.lateBind - Allowed
_.sortedIndexto accept a property name as thecallbackargument - Ensured methods accept a
thisArgofnull - Fixed the
iifebuild option to accept more values - Made
_.timesreturn an array ofcallbackresults - Simplified
_.max,_.min, &_.reduceRight
- Made
-
0.7.0
Discovered at Sept. 11, 2012
Sept. 11, 2012 — Diff — Docs
<h5> Compatibility Warnings</h5>- Renamed
_.zipObjectto_.object - Replaced
_.dropwith_.omit - Made
_.dropan alias of_.rest
- Added
_.invert,_.pairs, &_.random - Added
_.resultto thebackbonebuild - Added
exports,iife,-c/--stdout,-o/--output, &-s/--silentbuild options - Ensured
isPlainObjectworks with objects from other documents - Ensured
_.isEqualcompares values with circular references correctly - Ensured
_.mergework with four or more arguments - Ensured
_.sortByperforms a stable sort forundefinedvalues - Ensured
_.templateworks with “interpolate” delimiters containing ternary operators - Ensured the production build works in Node.js
- Ensured template delimiters are tokenized correctly
- Made pseudo private properties
_chain&_wrappeddouble-underscored to avoid conflicts - Made
minify.jssupportunderscore.js - Reduced the size of
mobile&underscorebuilds - Simplified
_.isEqual&_.size
- Renamed
-
0.6.1
Released at Aug. 29, 2012
-
0.6.0
Released at Aug. 28, 2012
Aug. 28, 2012 — Diff — Docs
- Added
callback&thisArgarguments to_.drop&_.pick - Added
hasObjectSpliceBugtest to avoiddeleteoperator use - Added
_.unescape - Ensured
_.reduceworks with string objects in IE < 9 - Made
_.omitan alias of_.drop - Made compiled methods take advantage of engines with strict mode optimizations
- Optimized
_.intersection& removed its dependency on_.every - Reduced the file size of the
underscorebuild
- Added
-
0.5.2
Released at Aug. 21, 2012
-
0.5.1
Released at Aug. 18, 2012
-
0.5.0-rc.1
Released at Aug. 7, 2012
- Add Unit testing video link to README and minor cleanup to build.js help text. Former-commit-id: 504b69acede1bb4759ba942d01dfd0b899715f00
- Ensure running in IE if concated with other files that enable conditional compilation /*@cc_on @/`. Former-commit-id: cf2d9c01ce92b8b85149116d48145bc4342471a4
- Add unit tests and code comments for the conditional compilation patch. Former-commit-id: 557aa43dc7c8db738452a9f3afb8ff2aadf8061a
- Update CDN link and rebuild documentation. Former-commit-id: 32210baffaed31b7fb4daed58a0c0a4f22daf4f0
- Ensure `reEvaluateDelimiter` is assigned an initial value if `evaluateDelimiter` is undefined by default. [closes #52] Former-commit-id: 6cefeeca164901e611009ce1413e5080027592c9
- Add Underscore ticket reference to `Fix cross-browser object iteration bugs` bullet in README.md. Former-commit-id: 9814daf6b81f1c60b3c6681c10c1fc7b94ac61b8
- Add `_.drop`, unit tests, and cleanup documentation for `_.extend`, `_.defaults`, and `_.pick`. Former-commit-id: a45b0c45d52fdbe5f71984412d631f3dfe87965b
- Add "underscore" build. Former-commit-id: 44e9f4543631cbf342ae7571cf540214623352db
- Update minified build and rebuild documentation. Former-commit-id: e674d7a30c1e5745b0acf90e38aa5757b15a3423
- Add `_.countBy` and related unit tests, benchmarks, and documentation. Former-commit-id: 915eaf414883a1dc344a558b08c7a1337ab5a225
- Update vendor/underscore and backbone. Former-commit-id: 614926653b0b1669f8a5533666adb0aecbd46c03
- Remove Narwhal link from README.md. Former-commit-id: b8bd53c9a19ef18480db14cfa82545aa872416b1
- Cleanup `_.isEqual` comments and ensure `_.isEmpty`/`_.size` detect `arguments` objects correctly. Former-commit-id: 75b044d27b990d55393bf27234aad6ce369f6abe
- Adjust `_.wrap` docs and rebuild/update the minified build/docs. Former-commit-id: b33c4489bde49c98e7e161d0f831e07388a9da22
- Add deep clone support via the `deep` argument to `_.clone`. Former-commit-id: d4fad45364489efb957d29e201846e8c1875b9ed
- Check for custom `isEqual` methods in `_.isEqual` before other comparisons and add cross-browser support for `arguments` objects. Former-commit-id: 56e40f670309aeb0dcda7868c8aa84b5909db1f1
- Keep objects in the `stack` array of `_.isEqual` in case a cyclical object is used in a sibling property. Former-commit-id: 33ffcec837322f4d479f64f9ec6b14184bf5f7a2
- Add `csp` Content Security Policy build. Former-commit-id: f922046de5150c098eb7f6d3b6901552117631e7
- Update minified build and rebuild documentation. Former-commit-id: 5f0ea311b51723c225774d735f67fc58f55a4d6e
- Make `_.range` coerce arguments to numbers. Former-commit-id: 5408800fef0bc8a418c298a112049232b6d85e78
- Fix recent typo in `isEqual`. Former-commit-id: 84cdf90de59c8184a0ac1f78704f61dcc88c91f1
- Ensure the `callback` of `_.filter` can't modify the resulting value. Former-commit-id: 6652dc5926390e8418b524c7ffd2347c2fa65c82
- Ensure `_.isEqual` works correctly for objects from another document and add `_.clone` benchmark. Former-commit-id: b1ef745ec6c24e8ea0c8fae304ead80c60dfd5aa
- Add `_.where`. [closes #22]. Former-commit-id: dec7a9d0df4158a395ec84fb9e774ed20205d421
- Reorganize and cleanup code for `_.where`. Former-commit-id: 769dfafc1701c5ebc2d351abeb729ca6fcfa12e9
- Add unit tests for `_.where`. Former-commit-id: 5247bba20d7aa772867e29def99221faea376db1
- Rebuild documentation and update the minified build. Former-commit-id: c4d4281f16250f50ea4d5337a53acceedd2ce660
- Rework the `noNodeClass` inference to detect the JScript quirk too. Former-commit-id: 3a6b73509490d7e87d2322fe1c09890f5f6b57ea
- Remove `noNodeClass` from "mobile" and "csp" builds. Former-commit-id: 0773f7b1c1ea637d0d519a3015d1534863a9be11
- Add `_.merge`. Former-commit-id: e393655b1fa41c8eb6ae1b925f456aa05231078a
- Update vendors. Former-commit-id: d1dd2ecf337cf8cda71e0da2af0647813b8de24a
- Update minified build and rebuild docs. Former-commit-id: f80bacba89ab171aae61d5ce7269e8507117bffa
- Ensure merge works with sources containing circular references. Former-commit-id: cb3301868299c4e4d32a3d3608199e4269d951ec
- Fix the build to work with `_.merge`. Former-commit-id: cb1d9897b97b357197bb6933c65f4afbecea1aea
- Cleanup build.js and update dependencies for `_.clone`, `_.isEmpty`, `_.isEqual`, `_.merge`, and `_.size`. Former-commit-id: df19990609a3dd8432694798149a5eb5bda142c4
- Add `iteratesOwnLast` bug check. Former-commit-id: fcc42a42f08e60acc1252ec06b045cfee17bd020
- Document how `_.each`, `_.forIn`, and `_.forOwn` may terminate iteration early by explicitly returning `false` in the `callback`. Former-commit-id: e218eae83de880deecf1e45d32ca019efd25b548
- Add `_.keys` unit test for `arguments` objects. Former-commit-id: dd90a9d3dc973a6ea8dce0c10ad511cce82097dd
- Add unit tests for exiting early from `_.forEach`, `_.forIn`, `_.forOwn`. Former-commit-id: 18d55054989d3b55afce1f4d604cd274eb9289c8
- Rebuild documentation. Former-commit-id: d24c2fb65a54b018da9ad08aa3a67363a31c1122
- Ensure `_.keys` works with `arguments` objets cross-browser. Former-commit-id: 1238c9efcfc13a420804c26c5edee1e4aa5a4238
- Fix typo in test-ui.js. Former-commit-id: 95057e80cfac9d7d776170d66f2c2bfdd364944f
- Add note about Chrome extensions to `_.template`. Former-commit-id: 97b5220ebc3dbbd30b0e52f6c804b449b8d451ca
- Fix failing unit tests in various browsers. Former-commit-id: 9b5c6e82e0dfed79c505f41b66030ede81ca9a1c
- Bump to v0.5.0-rc.1. Former-commit-id: f5a29fd34de5aced3287413f40a0a36226465c84
-
0.5.0
Released at Aug. 17, 2012
Aug. 17, 2012 — Diff — Docs
- Added
_.countBy,_.drop,_.merge, &_.where - Added
csp(Content Security Policy) &underscorebuild options - Added deep cloning support to
_.clone - Added Jam package support
- Added support for exiting
_.forEach,_.forIn, &_.forOwnearly by returningfalsein thecallback - Added support for jQuery/MooTools DOM query collections to
_.isEmpty&_.size - Ensured development build works with IE conditional compilation enabled
- Ensured
_.clonedoesn’t clone functions, DOM nodes,argumentsobjects, & objects created by constructors other thanObject - Ensured
_.filter’scallbackcan’t modify result values - Ensured
_.isEmpty,_.isEquals, &_.sizesupportargumentsobjects - Ensured
_.isEqualdoesn’t inspect DOM nodes, works with objects from other documents, & calls customisEqualmethods before checking strict equality - Ensured
_.oncefrees the given function for garbage collection - Ensured
_.sortByperforms a stable sort - Ensured
reEvaluateDelimiteris assigned when_.templateSettings.evaluateis undefined - Made
_.rangecoerce arguments to numbers - Optimized
_.isFunction
- Added
-
0.4.2
Released at July 16, 2012
July 16, 2012 — Diff — Docs
- Added
strictbuild option - Ensured
_.bindAll,_.defaults, &_.extendavoid strict mode errors when attempting to augment read-only properties - Optimized the iteration of large arrays in
_.difference,_.intersection, &_.without - Fixed build bugs related to removing variables
- Added
-
0.4.1
Released at July 11, 2012
-
0.4.0
Released at July 11, 2012
July 11, 2012 — Diff — Docs
- Added
bin&scriptsentries to package.json - Added
legacybuild option - Added cross-browser support for passing strings to “Collections” methods
- Added
_.zipObject - Leveraged
_.indexOf’sfromIndexin_.difference&_.without - Optimized compiled templates
- Optimized inlining the
iteratorTemplatefor builds - Optimized object iteration for “Collections” methods
- Optimized partially applied
_.bindin V8 - Made compiled templates more debuggable
- Made
_.sizework with falsey values & consistent cross-browser withargumentsobjects - Moved
_.groupBy&_.sortByback to the “Collections” category - Removed
argumentsobject from_.range
- Added
-
0.3.2
Released at June 14, 2012
June 14, 2012 — Diff — Docs
- Ensured
_.escapereturns an empty string when passed nullish values - Ensured
sourceURLsupport doesn’t cause errors in Adobe’s JS engine. - Fixed regression in generating custom builds
- Moved
_.invoke&_.pluckback to the “Collections” category - Moved
_.tapto the “Chaining” category
- Ensured
-
0.3.1
Released at June 10, 2012
-
0.3.0-pre
Released at June 4, 2012
- Cleanup README.md. Former-commit-id: b0d0a22ff427b6a5754e2850e2a420e764a1eb39
- Add percent faster than to pref.js results and link to benchmarks in README.md. Former-commit-id: 1c5fb820fe070599aba780f1765538d408105af3
- Update documentation. Former-commit-id: 6d1aa50111b34e0548f96a55fe3dcca0b7e91b5e
- Change performance link in README.md to lodash.com benchmarks. Former-commit-id: 5c851961fd1b8e46599c28967d782551722a03d4
- Format numbers and scroll down results panel in perf.js. Former-commit-id: 9f80b5534e3b46be7ad9c84ebb7e9ed5afdc35b8
- Optimize `this` binding in iterator methods and remove `_.bind` as a dependency for several methods. Former-commit-id: 60af002cd80758fea81fbff9c2b20b1ccf3ccffd
- Fix "prototype" iteration bug with `_.keys`. Former-commit-id: 1e072b2639e21a5c0a920db0ac27693ade34b009
- Add `fromIndex` to `_.indexOf` and `_.lastIndexOf`. [closes #20] Former-commit-id: 3ab67c318a5a7fc2e521a9a2573b694e6920b14d
- Optimize `_.times`. Former-commit-id: beae48853d0e9be1c3016c11bee86a272964dfa2
- Add `_.isEmpty` unit test. Former-commit-id: 066961a929da280421083d3f9d66b838d3d29dfd
- Add more benchmarks. Former-commit-id: bddb4a26073ecd5aaf622f9726be940b6340cc07
- Simplify regexps in build.js. Former-commit-id: 7640f90b6aeca0438579c15c9eef270904c2c523
- Update minified build and docs. Former-commit-id: 3c0463d77c9091c1e66c7d68240de8b7ab2e499f
- Make previous build.js regexp simplification non-greedy. Former-commit-id: e58cfb5e5143e12721bb08445dfd4a6fec119cd1
- Make Firebug Lite console fullscreen in more browsers. Former-commit-id: a42e7d187a582a1caea721860cf3ed4bd0f94368
- Use `typeof == 'number'` more, and default `callback` values to docs. Former-commit-id: 02786903a510d0cc837eeeb7e9f42db2ecd634a4
- Tweak `indexOf isSorted` benchmark. Former-commit-id: 0183b35929a2c1f7113747a67f55abbc797fab8c
- Cleanup console messages in perf.js. Former-commit-id: b3e669d46f21d39f96873167557b4ede80458beb
- Remove unneeded Closure Compiler export around the template string `_.escape(__t)` in pre-compile.js. Former-commit-id: 812bd220cd3baca30a100f07e1d47cd6745a3602
- Added `thisArg` argument to `_.sortedIndex` and `_.uniq`, benchmarks, unit tests, and adjusted related dependencies in build.js. Former-commit-id: a97aa769d760c7cc4d0df6307cebc860345a0da0
- Update minified build, documentation, and Backbone submodule. Former-commit-id: cca2cf2f55e2750486d1d32b8da26fbc5576a65b
- Update Benchmark.js and UglifyJS submodules. Former-commit-id: 78611de2f992dc4d6cc4d336bfb761b98b22ce79
- Switch to an `htmlEscapes` object for use in `_.escape`. Former-commit-id: bc449b5d6868c846d599840e5c0d90d0314fe4b8
- Update minified build and documentation. Former-commit-id: 592319b69487858794529d789383af1b38d55632
- Add `_.forOwn` and `_.forIn`. Former-commit-id: f4e94a0fd15318063eec16c464435b07f419fa6a
- Ensure collection methods treat array-like objects with invalid `length` properties as regular objects. Former-commit-id: dd8b382635bc30dc6e417cd9b47c36abfdf5ddcb
- Bump to v0.3.0-pre. Former-commit-id: 1e7958b4b1cdffd962a51edf3e3695cea960d8c9
- Add unit test for `_.sortedIndex` to ensure it supports arrays with high `length` values. Former-commit-id: 8956495dfa40c75dcb3c0585e78913607bf92e99
- Update documentation and package.json. Former-commit-id: 4ab7d954b7abc5f73269eb7c74a39b02fa04970d
-
0.3.0
Released at June 6, 2012
June 6, 2012 — Diff — Docs
- Added
categorybuild option - Added
fromIndexargument to_.indexOf&_.lastIndexOf - Added
//@ sourceURLsupport to_.template - Added
thisArgargument to_.sortedIndex&_.uniq - Added
_.forIn&_.forOwnmethods - Ensured array-like objects with invalid
lengthproperties are treated like regular objects - Ensured
_.sortedIndexsupports arrays with highlengthvalues - Fixed
prototypeproperty iteration bug in_.keysfor Firefox < 3.6, Opera > 9.50 - Opera < 11.60, & Safari < 5.1 - Optimized
_.times&thisbindings in iterator methods
- Added
-
0.2.2
Released at May 30, 2012
-
0.2.1
Released at May 24, 2012
-
0.2.0
Released at May 21, 2012
May 21, 2012 — Diff — Docs
- Added custom build options
- Added default
_.templateSettings.variablevalue - Added “lazy bind” support to
_.bind - Added native method overwrite detection to avoid bad native shims
- Added
_.partialmethod - Added support for more AMD build optimizers & aliasing as the “underscore” module
- Added
thisArgargument to_.groupBy - Added whitespace to compiled strings
- Commented the
iterationFactoryoptions object - Ensured
_(...)returns passed wrapper instances - Ensured
_.max&_.minsupport extremely large arrays - Ensured
_.throttleworks in tight loops - Fixed
clearTimeouttypo - Fixed IE < 9
[DontEnum]bug & Firefox < 3.6, Opera > 9.50 - Opera < 11.60, & Safari < 5.1’sprototypeproperty iteration bug - Inlined
_.isFunctioncalls. - Made
_.debounce’ed functions match_.throttle’ed functions’ return value behavior - Made
_.escapeno longer translate the “>” character - Simplified all methods in the “Arrays” category
- Optimized
_.debounce,_.escape,_.flatten,_.forEach,_.groupBy,_.intersection,_.invoke,_.isObject,_.max,_.min,_.pick,_.shuffle,_.sortedIndex,_.template,_.throttle,_.union,_.uniq
-
0.1.0
Released at April 23, 2012
Apr. 23, 2012 — Docs
- Initial release