- Each function is now extracted to individual CommonJS modules
- Browserify users can now load only the functions they actually use
- The prebuild library now exports a
sglobal instead of_sand trying to stick itself to existing underscore instances - Implement chaining without Underscore.js
- Don't compare lowercase versions of strings in naturalCmp #326
- Always return +-1 or 0 in naturalCmp #324
- Align [starts|ends]With with the ES6 spec #345
- New functions
decapitalize slugifynow actually replaces all special chars with a dashslugifysupports Easter E languages #340
- Move from rake to gulp
- Add support form classify camelcase strings
- Fix bower.json
- Full changelog
- Add
toBoolean - Add
unquote - Add quote char option to
quote - Support dash-separated words in
titleize - Full changelog
- Add
naturalCmp - Bug fix to
camelize - Add ă, ș, ț and ś to
slugify - Doc updates
- Add support for component
- Full changelog
- Bug fixes to
escapeHTML,classify,substr - Faster
count - Documentation fixes
- Full changelog
- Added
numberformatmethod - Added
levenshteinmethod (Levenshtein distance calculation) - Added
swapCasemethod - Changed default behavior of
wordsmethod - Added
toSentenceSerialmethod - Added
surroundandquotemethods
- Same as 2.2.0 (2.2.0rc on npm) to fix some npm drama
- Capitalize method behavior changed
- Various perfomance tweaks
- Fixed words method bug
- Added classify method
- AMD support
- Added toSentence method
- Added slugify method
- Lots of speed optimizations
- Added prune, humanize functions
- Added .string (.str) namespace for Underscore.string library
- Removed includes function
For upgrading to this version you need to mix in Underscore.string library to Underscore object:
_.mixin(_.string.exports());and all non-conflict Underscore.string functions will be available through Underscore object.
Also function includes has been removed, you should replace this function by _.str.include
or create alias _.includes = _.str.include and all your code will work fine.
- Fixed reverse and truncate
- Added isBlank, stripTags, inlude(alias for includes)
- Added uglifier compression
- Added strRight, strRightBack, strLeft, strLeftBack
- Added pad, lpad, rpad, lrpad methods and aliases center, ljust, rjust
- Integration with Underscore 1.1.6
- Added methods: underscored, camelize, dasherize
- Support newer version of npm
- Created functions: lines, chars, words functions
- Created integration test suite with underscore.js 1.1.4 (now it's absolutely compatible)
- Removed 'reverse' function, because this function override underscore.js 'reverse'