Lodash 4.0.0 is out
github.com
github.com
He should definitely write a post on how he stays productive and motivated to work day-in and day-out on one project. Really inspiring!
Coming from Symfony (PHP), this just feels right: keep moving but make it easy to follow along.
I'm not saying "vendor everything" but maybe some vendoring helps, especially when every package author seems like they've taken the philosophy of "doing one thing, doing it well and breaking everything on every update".
People hate on PHP but there are a lot of quality packages out there and Composer is definitely considered best practice by most developers now.
I'm primarily a Laravel user (it's a better fit for the stuff we do) but I have huge respect for the Symfony guys as their components make PHP much nicer to work in.
For instance, I just recently upgraded from Symfony 2.7 to 2.8. The upgrade path was pretty much "Remove all deprecated warnings, upgrade your Symfony package, done". The same upgrade path is used from Symfony 2.8 to 3.0, which makes it really easy to upgrade.
Symfony, as most PHP dependencies, can be installed via the "composer" package manager, which is pretty much the only package manager that is used in the PHP community, it seems. As dchesterton says, it is a very good piece of software.
They're still mostly drop in though, most lodash differences are extras rather than modifications.
It clocks at 2.5KB mingzipped, after browserification.
There are probably lighter implementations.
I currently use underscore 1.8.3. Can I just swap lodash in, or is refactoring involved? I know it's a fork, and I want to move over, but was curious if anyone know off the top of their heads if a lot of work as involved.
_.each(collection, _.bind(function, context))
Which actually seems a lot more correct than some arbitrary context parameterhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
I'm honestly curious why this is being removed?
Lodash v2 was not but offered an lodash.underscore.js build.
Lodash v3 dropped the compat build in favor of using individual lodash modules until you're able to transition
Lodash v4 continues the view of v3
It seems odd since the `Array.prototype` methods include it.
https://github.com/lodash/lodash/commit/454aca7003e14994e7b9...
(In any case, this library saves me a lot of manual labour, headache + can write in a functional way without poor performance.)
I use browserify/webpack/node and npm is great. I wish more libs that I use were also on npm so that I wouldnt have to fork/shim them. How can I force other people to use npm? Maybe if I drop bower support for my awesome lib that everyone uses, other libs will follow suit, or perhaps the users will see the light and stop using bower because it sucks.
I avoid bower wherever possible, but removing support does smell a bit like an activist move. There may be more to the story, though.
http://npm-stat.com/charts.html?package=lodash
https://gist.github.com/anvaka/8e8fa57c7ee1350e3491/revision...
It's the number of times users actually typed
bower install lodash
i.e. adding it to a project that didn't already have it, as opposed to just running bower install on a package which uses lodash.Would also explain why despite bower itself being installed 37000 times in the last 7 days, the most installed package is only listed as 100 or so times.
It works a lot like NPM but is specifically intended for use with front-end modules.
Features:
- uses System.js (a polyfill for the future ES6-module-loader spec
- supports CommonJS, AMD, and UMD formats
- has plugins for importing other types (ex css)
- support Typescript/Traceur/Babel out of the box
- uses a flat dependency structure (ie like NPM v3)
- can generate bundles and self-executing bundles (incl tree shaking and minify)
- tracks specific versions of dependencies
Unlike NPM, module installation doesn't depend on packages published to a central registry. It can install versioned modules directly from GitHub and NPM. The registry it uses is nothing but GitHub repo with module-to-repo mappings and compatibility shims.
Here's the link: http://jspm.io/
Lodash is already included in the registry: http://kasperlewau.github.io/registry/#/?q=lodash
It doesn't cover any of the functionality that JSPM provides and publishing modules as RPM only makes them available to (at most) 1%-2% of users.
JSPM is written in Node and available via NPM. So... it works on pretty much anything out of the box.
npm install visionmedia/express
Or any git repo: npm install git+https://git@github.com/visionmedia/express.git
npm install git+ssh://git@github.com/visionmedia/express.gitThanks for the tip. I wish my comment wasn't locked in already so I could correct the misinformation.
Looking back, I am glad since it's just a nightmare to deal with dozens of package managers. Because bower was installed via npm, we had npm installed already and just skipped the bower part.
oh no, so many breaking changes that I cant use it!
Isn't that the point of a major version bump? It's not like being mad at 3.11.0 wrecking everything.