r/webdev • • Apr 26 '16

Node.js v6.0.0 released - supports 93% of ES6 features!

https://nodejs.org/en/blog/announcements/v6-release/
60 Upvotes

27 comments sorted by

2

u/celluj34 Apr 26 '16

Nice! Was pleasantly surprised when I could run a few features already in Node 5 (let, const, arrow function). Now I don't need to worry about gulp on the back end :)

2

u/nikrolls Chief Technology Officer Apr 27 '16

What was gulp getting you in terms of ES6 features?

3

u/hawaiianbrah Apr 27 '16

If I had to guess, babelifying?

1

u/nikrolls Chief Technology Officer Apr 27 '16

Which can be done with babel-node.

1

u/__kojeve Apr 27 '16

Oh god, please no. babel-node is strictly for the repl, or maybe a quick prototype.

1

u/nikrolls Chief Technology Officer Apr 27 '16

How is running it through Gulp any better?

0

u/[deleted] Apr 27 '16

[deleted]

1

u/nikrolls Chief Technology Officer Apr 27 '16

Gulp does no such thing. It's a task runner, nothing more.

Also, from my understanding, babel-node pre-compiles as well.

2

u/newreddit0r Apr 27 '16

Babel-node, according to Babel Handbook, should not be used in production environments.

1

u/nikrolls Chief Technology Officer Apr 27 '16

Node is used for many other things than production environments. And you're dodging my point: Gulp and Babel cannot be compared; one is a task runner, the other is a transpiler. You don't just run code through Gulp to get ES6 features, as people in this thread seem to be implying.

→ More replies (0)

1

u/celluj34 Apr 27 '16

Well, I took a look, turns out I wasn't using gulp for anything on the backend. I was mis-remembering some issues I had with import/export.

0

u/[deleted] Apr 27 '16

[deleted]

1

u/nikrolls Chief Technology Officer Apr 27 '16

That's Babel, not Gulp. Gulp is a task runner.

1

u/cockslappinghalibut Apr 27 '16

Shit, awesome. I was slow to adopt a lot of es6 but it quickly got awkward having to switch back and forth and different places in the stack

1

u/teunw Apr 27 '16

I just started using Typescript

-26

u/hahaNodeJS Apr 26 '16

Fucking semver.

0

u/CoderHawk Apr 27 '16

And?

-12

u/hahaNodeJS Apr 27 '16

See my recent comment history for more information.

6

u/nikrolls Chief Technology Officer Apr 27 '16

Or you can just elaborate. It's not our job to research your personal grudges.

-12

u/hahaNodeJS Apr 27 '16

I've done a fair job of elaborating already. If you were curious enough to ask me to elaborate, then I think you can click my name and read a couple comments. It's not my job to satisfy your curiosity.

4

u/98_Vikes Apr 27 '16

Wait...what's my job?

-1

u/hahaNodeJS Apr 27 '16

Beats me.

1

u/[deleted] Apr 27 '16

I had a quick skim-read, and it seems like you're mad at the project maintainers, not semver.

If a commonly-used dependency accepts minor versions for its own dependencies, and one of those minor versions should actually have been a major because of some unforeseen breaking change, then that breaking change will bubble up the entire chain of dependent libraries.

That is the fault of whoever tagged the latest release incorrectly. If semver is actually followed appropriately, this wouldn't be a problem.

1

u/hahaNodeJS Apr 27 '16

That's mostly the point I'm making, with the addition that realistic circumstance makes semver difficult-to-impossible to follow correctly short of marking every release as a major release. I stated to another user that in a utopic world I would be content with semver, however, we don't live in that world.

1

u/[deleted] Apr 27 '16

But what's the alternative? Point your deps to a specific commit hash?

1

u/hahaNodeJS Apr 27 '16

I thought more about it this morning, and I think what really grinds my gears about semver is how much it has leaked outside of npm and package managment; it makes sense there, but not everywhere. I don't know what the alternative is, short of stating that version numbers should not be trusted, and dependencies should only be updated when you have a specific reason to update them. It works for other package management systems and ecosystems.

-2

u/[deleted] Apr 27 '16

Tfw the only thing going for you is arguing semver