From a604494aa9717a09e0f6dec9feec7f5134c8b7d3 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 21 May 2012 15:36:10 -0400 Subject: [PATCH] Bump to v0.2.0. Former-commit-id: 4b5cfd178edce968244a1fcad8c7b74e336e0f08 --- README.md | 20 ++++++++------------ doc/README.md | 6 +++--- doc/parse.php | 2 +- lodash.js | 4 ++-- lodash.min.js | 4 ++-- package.json | 9 +++++---- 6 files changed, 21 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 15fc991d2..61002f0e1 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,11 @@ Lo-Dash, from the devs behind [jsPerf.com](http://jsperf.com), is a drop-in replacement for Underscore.js that delivers [performance improvements](http://jsperf.com/lodash-underscore#filterby=family), bug fixes, and additional features. -Lo-DashÕs performance is gained by avoiding slower native methods, instead opting for simplified non-ES5 compliant methods optimized for common usage, and by leveraging function compilation to reduce the number of overall function calls. +Lo-Dash’s performance is gained by avoiding slower native methods, instead opting for simplified non-ES5 compliant methods optimized for common usage, and by leveraging function compilation to reduce the number of overall function calls. ## Dive in -WeÕve got [API docs](http://lodash.com/docs) and [unit tests](http://lodash.com/tests). - -UnderscoreÕs [documentation](http://documentcloud.github.com/underscore/) may also be used. +We’ve got [API docs](http://lodash.com/docs) and [unit tests](http://lodash.com/tests). For a list of upcoming features, check out our [roadmap](https://github.com/bestiejs/lodash/wiki/Roadmap). @@ -23,7 +21,7 @@ For more information check out these screencasts over Lo-Dash: * AMD loader support * [_.bind](http://lodash.com/docs#_bindfunc--arg1-arg2-) supports *"lazy"* binding - * [_.debounce](http://lodash.com/docs#_debouncefunc-wait-immediate)Õed functions match [_.throttle](http://lodash.com/docs#_throttlefunc-wait)Õed functionsÕ return value behavior + * [_.debounce](http://lodash.com/docs#_debouncefunc-wait-immediate)’ed functions match [_.throttle](http://lodash.com/docs#_throttlefunc-wait)’ed functions’ return value behavior * [_.forEach](http://lodash.com/docs#_foreachcollection-callback--thisarg) is chainable * [_.groupBy](http://lodash.com/docs#_groupbycollection-callback--thisarg) accepts a third `thisArg` argument * [_.partial](http://lodash.com/docs#_partialfunc--arg1-arg2-) for more functional fun @@ -48,8 +46,8 @@ node build include="each, filter, map, noConflict" 2. Use the `exclude` argument to pass the names of the methods to exclude from the build. ~~~ bash -node build exclude=isNaN,union,zip -node build exclude="isNaN, union, zip" +node build exclude=isNaN,isUndefined,union,zip +node build exclude="isNaN, isUndefined, union, zip" ~~~ Custom builds are saved to `lodash.custom.js` and `lodash.custom.min.js`. @@ -89,8 +87,6 @@ load('lodash.js'); In an AMD loader like [RequireJS](http://requirejs.org/): ~~~ js -// Lo-Dash is defined as an anonymous module so, through path mapping, it can be -// referenced as the "underscore" module require({ 'paths': { 'underscore': 'path/to/lodash' @@ -118,7 +114,7 @@ cd lodash git submodule update --init ~~~ -## Closed Underscore issues +## Closed Underscore.js issues * Fix Firefox, IE, Opera, and Safari object iteration bugs [#376](https://github.com/documentcloud/underscore/issues/376) * Handle arrays with `undefined` values correctly in IE < 9 [#601](https://github.com/documentcloud/underscore/issues/601) @@ -198,9 +194,9 @@ git submodule update --init * Added `_.partial` * Commented the `iterationFactory` options object * Ensured `_.max` and `_.min` support extremely large arrays - * Fixed IE < 9 `[DontEnum]` bug and Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1Õs prototype property iteration bug + * Fixed IE < 9 `[DontEnum]` bug and Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1’s prototype property iteration bug * Inlined `_.isFunction` calls. - * Made `_.debounce`Õed functions match `_.throttle`Õed functionsÕ return value behavior + * Made `_.debounce`’ed functions match `_.throttle`’ed functions’ return value behavior * Made `_.escape` no longer translate the *">"* character * Fixed `clearTimeout` typo * Simplified all methods in the *"Arrays"* category diff --git a/doc/README.md b/doc/README.md index a564d8313..b1f21d887 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,4 +1,4 @@ -# Lo-Dash v0.1.0 +# Lo-Dash v0.2.0 @@ -617,7 +617,7 @@ Checks if the `callback` returns a truthy value for **all** elements of a `colle #### Example ~~~ js _.every([true, 1, null, 'yes'], Boolean); -=> false +// => false ~~~ * * * @@ -795,7 +795,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3}, function(num) { alert(num); }); // => alerts each number in turn _([1, 2, 3]).forEach(function(num) { alert(num); }).join(','); -// => alerts each number in turn and returns "1,2,3" +// => alerts each number in turn and returns '1,2,3' ~~~ * * * diff --git a/doc/parse.php b/doc/parse.php index 658c1ffb2..aa87779dc 100644 --- a/doc/parse.php +++ b/doc/parse.php @@ -21,7 +21,7 @@ // generate Markdown $markdown = docdown(array( 'path' => '../' . $file, - 'title' => 'Lo-Dash v0.1.0', + 'title' => 'Lo-Dash v0.2.0', 'url' => 'https://github.com/bestiejs/lodash/blob/master/lodash.js' )); diff --git a/lodash.js b/lodash.js index d396fa895..ca8747d4c 100644 --- a/lodash.js +++ b/lodash.js @@ -1,5 +1,5 @@ /*! - * Lo-Dash v0.1.0 + * Lo-Dash v0.2.0 * Copyright 2012 John-David Dalton * Based on Underscore.js 1.3.3, copyright 2009-2012 Jeremy Ashkenas, DocumentCloud Inc. * @@ -3063,7 +3063,7 @@ * @memberOf _ * @type String */ - lodash.VERSION = '0.1.0'; + lodash.VERSION = '0.2.0'; /** * By default, Lo-Dash uses ERB-style template delimiters, change the diff --git a/lodash.min.js b/lodash.min.js index 4367b2aa8..d7fcf19f1 100644 --- a/lodash.min.js +++ b/lodash.min.js @@ -1,5 +1,5 @@ /*! - Lo-Dash 0.1.0 lodash.com/license + Lo-Dash 0.2.0 lodash.com/license Underscore.js 1.3.3 github.com/documentcloud/underscore/blob/master/LICENSE */ ;(function(u,m){"use strict";function R(a){return"[object Arguments]"==h.call(a)}function c(a){return new p(a)}function p(a){if(a&&a._wrapped)return a;this._wrapped=a}function j(){for(var a,b,d,k=-1,c=arguments.length,f={e:"",f:"",k:"",q:"",c:{m:"++o/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"object"},c.after= +j}),q=j(q,Z,{k:"k",j:Z.j.replace("!","")}),ra=j(y,{a:"h",j:{b:"z[o]=h[o]",n:"z.push(h[o])"}}),y=j(A,{j:"if(u[o]==J)"+A.j}),sa=j(A),O=j({a:"u",k:"[]",r:r,j:"if(H.call(u[o])==l)z.push(o)",e:"z.sort()"});R(arguments)||(R=function(a){return!!a&&!!t.call(a,"callee")});var U=Y||j({a:"u",f:"if(!v[typeof u]||u===null)throw TypeError()",k:"[]",j:"z.push(o)"});c.VERSION="0.2.0",c.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"object"},c.after= function(a,b){return 1>a?b():function(){if(1>--a)return b.apply(this,arguments)}},c.bind=v,c.bindAll=function(a){var b=arguments,d=1;1==b.length&&(d=0,b=O(a));for(var c=b.length;dw(e,a[b])&&c.push(a[b]);return c},c.escape=function(a){return(a+"").replace(/&/g,"&").replace(/