danielgtaylor / nesh

An enhanced, extensible interactive shell for Node.js and CoffeeScript
http://danielgtaylor.github.io/nesh/
MIT License
288 stars 27 forks source link

Switching from underscore to lodash #15

Open ccheever opened 10 years ago

ccheever commented 10 years ago

Lodash is a drop-in replacement for underscore that is faster and more actively maintained. Since it is drop-in compatible, switching to it is trivial. The require statements are just changed from lines like _ = require 'underscore' to _ = require 'lodash-node'

Tested plan: Ran cake test and manually tested a few things

See: http://joefleming.net/posts/use-lodash-instead-of-underscore/ http://stackoverflow.com/questions/13789618/differences-between-lodash-and-u

danielgtaylor commented 10 years ago

@ccheever looks like older NPM versions don't support the new ^version default syntax. It causes the build to fail:

https://travis-ci.org/danielgtaylor/nesh/jobs/21470912#L38

Can you change the dependency on lodash to use ~version instead, which is the old default? Also please rebase on master if possible so we don't get the merge commit above. Thanks!