Node.js 11 is all about improving internals
Node.js 11 is here! We take a look at all the changes it has in store for developers, which mainly focus on improving internals and performance.
It’s been six months since Node.js 10 was released so if you’re hungry for something new, good news: Node.js 11 is here.
This release is all about improving internals, performance, and an update to V8 7.0. As explained in the blog post announcing the latest developments in the Node.js universe, two of the most notable features are:
- Interval timers will be rescheduled even if the previous interval threw an error;
- and the build no longer supports FreeBSD 10.
Check out the full changelog here.
SEE ALSO: Node.js 10 is here!
Node.js 11 is not the only good news though; Node.js 10.x will soon [next Tuesday] become the latest long term support (LTS) release. This basically means it will be ready to be used in production and by applications that need to scale. This release line has more “meat” than Node.js 11, including the fact that N-API is no longer experimental and HTTP/2 is ready.
There are still a bunch of experimental features in Node.js 10.x, including
- Workers API: Every worker has its own event loop — similar to what folks experience in the browser; this can also lead to more detailed debugging of workers.
- Top level await in REPL: This will allow you to just run Node.js in your terminal.
- fs Promises API: This is a useful feature as it allows you to receive promises vs. callbacks.
- NodeChakra released with Time Travel Debugging.
- AsyncIterators support on Node.js Readable Streams.
Earlier this month, Node.js Foundation and JS Foundation announced their intention to form a unified ecosystem.
As stated in the official announcement, the goals for this merger include:
- Enhanced operational excellence;
- Streamlined member engagement;
It’s important to mention that the merger has not officially taken place yet but since the intent is there, we wanted to see how you feel about it so we launched a poll. You can still tag along! So far, more than 50 percent of the respondents are excited about the possibilities this merger might bring and almost 20 percent are cautious about the implications.
SEE ALSO: Bringing Node.js to IoT: Meet low.js
Are Node.js’ days numbered?
We talked about Node.js 11 and the fact that Node.js 10.x will soon [next Tuesday] become the latest long term support (LTS) release but we also need to address the elephant in the room. Not long ago, Ryan Dahl, the creator of Node.js, announced a secure TypeScript run-time on V8 called Deno.
The bones of Deno might be similar to Node.js, but it’s the focus on security and a more lightweight system that make this new TypeScript runtime intriguing. In particular, Dahl highlights Node’s security issues as one of his major regrets about his last project.
Learn more about Deno here.