News for hackers. Stuff that matters.
Re:Lodash 4.0.0 is out by painisRelative on Tuesday January 12, 2016 @06:54PM (#10891324)
why drop bower support damn it!
Re:Lodash 4.0.0 is out by dannynemer on Tuesday January 12, 2016 @08:27PM (#10891708)
Lodash dropped bower support in favor of npm because "16% use bower vs. 76% npm for AMD packages": https://twitter.com/jdalton/status/677323442488672257
Re:Lodash 4.0.0 is out by bryanlarsen on Tuesday January 12, 2016 @08:49PM (#10891811)
Given that there were 14825158 downloads of lodash from npm last month, that implies that there were over 3M downloads from bower. That's a lot of people to throw under the bus.
Re:Lodash 4.0.0 is out by jdd on Tuesday January 12, 2016 @11:18PM (#10892305)
According to bower stats over the last 7 days lodash was installed 23 times compared to 4 million npm downloads & 181 new npm packages depending on it.

http://bower.io/stats/

http://npm-stat.com/charts.html?package=lodash

https://gist.github.com/anvaka/8e8fa57c7ee1350e3491/revision...

Re:Lodash 4.0.0 is out by Macha on Wednesday January 13, 2016 @03:50AM (#10893086)
Sounds broken. My team alone would have installed it more times that that.
Re:Lodash 4.0.0 is out by jdd on Wednesday January 13, 2016 @05:06AM (#10893319)
¯\_(ツ)_/¯
Re:Lodash 4.0.0 is out by Macha on Wednesday January 13, 2016 @02:36PM (#10896856)
After thinking about it a bit more, the only reasonable conclusion I can come to is the following:

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.

Re:Lodash 4.0.0 is out by andrewchilds on Tuesday January 12, 2016 @09:05PM (#10891869)
Re:Lodash 4.0.0 is out by reustle on Wednesday January 13, 2016 @06:22AM (#10893565)
Why did you shorten one number but not the other? 14.8M via npm vs 3M via bower
Re:Lodash 4.0.0 is out by bryanlarsen on Wednesday January 13, 2016 @06:33AM (#10893590)
One is exact, one is approximate
Re:Lodash 4.0.0 is out by sandstrom on Wednesday January 13, 2016 @02:31AM (#10892847)
You'd even need multiple busses ;)
Re:Lodash 4.0.0 is out by magicalist on Tuesday January 12, 2016 @08:44PM (#10891786)
...according to a twitter poll on a personal account :P

I avoid bower wherever possible, but removing support does smell a bit like an activist move. There may be more to the story, though.

Re:Lodash 4.0.0 is out by cwyers on Tuesday January 12, 2016 @10:11PM (#10892104)
The poll was, should it be dropped, given that fact. The fact was not the poll result.
Re:Lodash 4.0.0 is out by pekk on Tuesday January 12, 2016 @10:50PM (#10892213)
Plenty of people don't use AMD packages at all, wtf?
Re:Lodash 4.0.0 is out by hyperhopper on Tuesday January 12, 2016 @08:46PM (#10891794)
If more major libraries drop support for bower, it might (hopefully) die soon. What does bower do better than NPM?
Re:Lodash 4.0.0 is out by EvanPlaice on Tuesday January 12, 2016 @09:59PM (#10892068)
JSPM!

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

Re:Lodash 4.0.0 is out by simplify on Wednesday January 13, 2016 @05:03PM (#10897932)
npm can install directly from GitHub:

    npm install visionmedia/express
Or any git repo:

    npm install git+https://[email protected]/visionmedia/express.git
    npm install git+ssh://[email protected]/visionmedia/express.git
Re:Lodash 4.0.0 is out by EvanPlaice on Tuesday January 19, 2016 @03:03PM (#10933526)
Oh... Awesome. TIL, I guess.

Thanks for the tip. I wish my comment wasn't locked in already so I could correct the misinformation.

Re:Lodash 4.0.0 is out by seanp2k2 on Tuesday January 12, 2016 @10:21PM (#10892129)
Personally I'll stick with RPM for all my JS packaging needs.
Re:Lodash 4.0.0 is out by EvanPlaice on Tuesday January 12, 2016 @11:53PM (#10892382)
Why?

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.

Re:Lodash 4.0.0 is out by pekk on Tuesday January 12, 2016 @10:51PM (#10892216)
What do you use to polyfill the browser to support RPM? :)
Re:Lodash 4.0.0 is out by hnbro on Tuesday January 12, 2016 @10:52PM (#10892222)
yum makes rpm easymode!
Re:Lodash 4.0.0 is out by javajosh on Tuesday January 12, 2016 @09:02PM (#10891860)
Well, I haven't used npm for css packages yet, but presumably it's okay with webpack/brunch etc.
Re:Lodash 4.0.0 is out by cnp on Tuesday January 12, 2016 @09:49PM (#10892039)
Its great with everything. Frontend / backend, etc. When I removed bower from our app last year, adopted Webpack and migrated everything over to NPM it dramatically simplified things.
Re:Lodash 4.0.0 is out by RobertKerans on Wednesday January 13, 2016 @01:11AM (#10892597)
For Brunch, looks like [initial, probably v buggy] NPM stuff went into master about 10 days ago.
Re:Lodash 4.0.0 is out by javajosh on Wednesday January 13, 2016 @02:43AM (#10892880)
I've been using npm support in Brunch and so far so good.
Re:Lodash 4.0.0 is out by RobertKerans on Wednesday January 13, 2016 @03:23AM (#10893000)
Ah, that's good to know; I'd been sticking to Bower for Phoenix' front end stuff, might start looking at migrating them to NPM if Brunch support is stable now.
Re:Lodash 4.0.0 is out by mrharrison on Tuesday January 12, 2016 @08:14PM (#10891660)
Yeah there is no need to drop bower support. I prefer bower over NPM. I don't understand this. Great work by the way.
Re:Lodash 4.0.0 is out by mkoryak on Tuesday January 12, 2016 @08:39PM (#10891753)
I think the thinking behind dropping the support is something like this:

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.

Re:Lodash 4.0.0 is out by juriansluiman on Wednesday January 13, 2016 @05:05AM (#10893316)
I loved bower and really preferred it in regard with npm for frontend modules. However more and more packages went to npm-only and we completely switched to npm for all.

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.

Re:Lodash 4.0.0 is out by timdorr on Wednesday January 13, 2016 @12:22AM (#10892456)
Bower is no longer actively maintained: https://github.com/bower/bower/pull/1748
Re:Lodash 4.0.0 is out by janpieterz on Wednesday January 13, 2016 @12:51AM (#10892530)
Re:Lodash 4.0.0 is out by paulojreis on Wednesday January 13, 2016 @04:03AM (#10893120)
Although there is a rationale for converging to npm, the tl;dr regarding bower is that it's not cool any more.
[deleted]
Re:Lodash 4.0.0 is out by jewel on Tuesday January 12, 2016 @07:52PM (#10891560)
No, he has an objection to them dropping support for "bower", which is a package manager for javascript files. It does seem like a typo of "browser", so I can see where the confusion would come from.
Re:Lodash 4.0.0 is out by xxpor on Tuesday January 12, 2016 @09:32PM (#10891982)
Ha whoops! Thanks
Re:Lodash 4.0.0 is out by brianzelip on Tuesday January 12, 2016 @09:36PM (#10891996)
bower is not just js, but rather lots of various front-end libraries.
Re:Lodash 4.0.0 is out by Killswitch on Tuesday January 12, 2016 @09:56PM (#10892060)
Bower doesn't do anything npm doesn't already do, except horrible version management.

    bower install lodash => bower_components/lodash/dist/lodash.min.js

     npm install lodash => node_modules/lodash/dist/lodash.min.js
Only difference there is you use `node_modules` instead of `bower_components` for root directory.
Re:Lodash 4.0.0 is out by endemic on Wednesday January 13, 2016 @01:26PM (#10896345)
Easier to import as a module if you use Browserify or suchlike: `var _ = require('lodash');`
Re:Lodash 4.0.0 is out by theodorton on Tuesday January 12, 2016 @07:51PM (#10891553)
I think he actually talks about the bower package registry (not browser).