- Add romanian characters to
cleanDiacritics
#470 - Fix global leaks
- Full changelog
- Fix
slugify
regression #448 - Full changelog
- Export
cleanDiacritics
in index.js - Full changelog
- Add
cleanDiacritics
#444 - Add
wrap
#410 lines
: add support to CR ending lines #440- Documentation improvements
- Small performance improvements
- Full changelog
- Add coverage folder to npmignore
- Full changelog
- Meteor integration baeb0da
- Add flag to capitalize to lowercase remaining characters #408
- Move to mocha #409
- Add support for more htmlEntites in escapeHTML and unescapeHTML #417
- Performance improvement in levenshtein #427
- Full changelog
- Provide
dist
in npm package #402 - Full changelog
- Fix .gitignore for bower #400
- Some docs cleanup
- Full changelog
- Minor fixes in the documentation #390 and 5135cb9
- Fix bower warnings #393
humanize
now usestrim
#392- Full changelog
- Each function is now extracted to individual CommonJS modules
- Browserify users can now load only the functions they actually use
- Usage as Underscore.js or Lo-Dash mixin is now discouraged as there is too many colliding methods
- The prebuild library now exports a
s
global instead of_s
and trying to stick itself to existing underscore instances - New gh-pages with documentation
- Implement chaining without Underscore.js
- String.prototype methods can be chained with underscore.string functions #383
- 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
,pred
,dedent
andreplaceAll
slugify
now actually replaces all special chars with a dashslugify
supports Easter E languages #340join
is now a conflicting function #320- New decapitalize flag for
camelize
#370 toNumber
allows negative decimal precision #332- Full changelog
- 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
numberformat
method - Added
levenshtein
method (Levenshtein distance calculation) - Added
swapCase
method - Changed default behavior of
words
method - Added
toSentenceSerial
method - Added
surround
andquote
methods
- Same as 2.2.0 (2.2.0rc on npm) to fix some npm drama
- Capitalize method behavior changed
- Various performance 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'