Node v9.8.0
nodejs.org
nodejs.org
If you haven't upgraded Node in the last two years, this is the last call.
I assume they'll be updating it but that was true as of last week.
I do a lot of systems programming in NodeJS and are depending on those modules to access platform API's.
I’m curious what prevents those updates from happening faster...
When ES Modules landed in Node? How do they work? .mjs? :(
And yes, still requires .mjs unfortunately.
https://nodejs.org/api/esm.html https://medium.com/the-node-js-collection/an-update-on-es6-m...
I guess I should seriously subscribe to a newsletter or something.
Right now you just require a Babel runtime first, then use import for everything else not caring what type of modules they are. The acceptance test for proper module support in Node.js should simply have been that you can remove the Babel wrapper in an existing project that uses imports instead of requires :(
I will say having a background in systems programming and scripting for filesystems is hugely beneficial. I am just a pansy JavaScript developer, so I had to figure this all out to be better at writing Node apps.
I will also say current versions of Node are massively backwards compatible. Very little of old features have been deprecated or killed out. This is all spelled out in the API docs.
Perhaps the hardest part to learning Node is wrapping your mind around asychronous operations. Don't spend time with the synchronous methods if an asynchronous method is available.
In the JS world, back or front-end, this process seems to be accelerating at a terrifying rate, heading to a singularity where all the accumulated brainpower of the human race is devoted to trying to keep up with the latest way that npm or node or babel or webpack has broken shit that previously worked.
The question "How does Node work and how can I leverage it" (which is what GP is asking) is the same as it was a few years ago.