Live data from Hacker News

Lodash 4.0.0 is out

github.com

71–80 of 102 posts

Re: Lodash 4.0.0 is out

#71
post #65

Feels good to see a JS lib last that long and still be actively maintained, deprecating obsolete features and adapting to the new ways we use our browsers without breaking BC (or else explaining how to migrate). Coming from Symfony (PHP), this just feels right: keep moving but make it easy to follow along.

Is this a Symphony thing or are external dependencies significantly more reliable in the PHP ecosystem in general? Last time I wrote PHP was 9 years ago and those times everyone I knew just copy-pasted all the external code they found. I know that package managers are the thing now and I'm using nuget for my .NET projects (and npm, which is a must if you do any front-end dev), however, I feel like I'm having more dependency management issues than the good ol'days in spite of using a language with static type checking.

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".

Re: Lodash 4.0.0 is out

#72
post #3

Not sure if this is a dumb question but I haven't been able to find an answer anywhere. 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.

Well, do you have tests? It would take 10 minutes if you are well-covered. Otherwise, I'd go through each usage.

Re: Lodash 4.0.0 is out

#73

why drop bower support damn it!

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

#74
post #66
post #51

Earlier quoted context omitted.

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...

Sounds broken. My team alone would have installed it more times that that.

¯\_(ツ)_/¯

Re: Lodash 4.0.0 is out

#76
As I see, lodash is a big fan of renaming functions.

(In any case, this library saves me a lot of manual labour, headache + can write in a functional way without poor performance.)

Re: Lodash 4.0.0 is out

#77

Earlier quoted context omitted.

Have you checked out Lea Verou's Bliss.js? http://blissfuljs.com/ It's super minimal and basically relies on querySelector. Give it a whirl and see if it fits your needs.

Cool! I'll check it out thanks. Deep Clone is required though, I'll poke around.

lodash.cloneDeep is available as a standalone npm module (as are all lodash functions).

It clocks at 2.5KB mingzipped, after browserification.

There are probably lighter implementations.

Re: Lodash 4.0.0 is out

#78

Earlier quoted context omitted.

Lodash dropped bower support in favor of npm because "16% use bower vs. 76% npm for AMD packages": https://twitter.com/jdalton/status/677323442488672257

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.

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

#79
post #78

Earlier quoted context omitted.

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.

Why did you shorten one number but not the other? 14.8M via npm vs 3M via bower

One is exact, one is approximate

Re: Lodash 4.0.0 is out

#80
post #16

oh nice, they dropped ie9 support! oh no, so many breaking changes that I cant use it!

> 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.

Majors, especially majors that are coming often with no lts for older versions, should make minimal breaking changes.
Post reply on HN