Live data from Hacker News

Lodash 4.0.0 is out

github.com

21–30 of 102 posts

Re: Lodash 4.0.0 is out

#22
I remember reading sometime ago that the creators of LoDash strived to maintain drop-in compatibility with Underscore, and that if breaking changes between the two libraries were to occur, an announcement would be made. I can't find the initial statement, so I wonder if the developers are still attempting to maintain this?

Re: Lodash 4.0.0 is out

#23

why drop bower support damn it!

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.

Re: Lodash 4.0.0 is out

#24

I think it's time to check out a jquery alternative. My recent projects are basically only using deep copies and some semi-complex selectors. lodash + querySelector should cover pretty much everything at this point.

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.

Re: Lodash 4.0.0 is out

#25

Earlier quoted context omitted.

I'll put this here just in case no one comments. https://lodash.com/docs#forEach http://underscorejs.org/#each

If I'm correct, you're showing this as a counter example to prove that the two have incompatible APIs and are thus LoDash can't be used ad a drop in replacement. However, Lodash does alias it's 'forEach' function with 'each', so this wouldn't be an issue?

Yeah, each and forEach are aliases in both lodash and underscore.

Re: Lodash 4.0.0 is out

#27

why drop bower support damn it!

If more major libraries drop support for bower, it might (hopefully) die soon. What does bower do better than NPM?

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

#28

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.

For what was a single 19 line JSON file: https://github.com/lodash/lodash/commit/3b86574b4da0828f6afb...

Re: Lodash 4.0.0 is out

#30

I think it's time to check out a jquery alternative. My recent projects are basically only using deep copies and some semi-complex selectors. lodash + querySelector should cover pretty much everything at this point.

I've seen projects that use jQuery just for the selector part, nothing else is used. Selectors are a core strength of jQuery. With document.querySelector, I wouldn't even include jQuery in a new project. `window.addEventListener` isn't much different than .on
Post reply on HN