Node.js v10 What you need to know

Node.js v10 What you need to know

Node.js 10 IS here, and here's what you need to know:


Node.js has stabilized the Http2 protocol and there are already frameworks that support it, right now, like Koa (Made by TJ Holowaychuk who's also made Express.js), Hapi.js and also Express.js using express-http2-workaround middleware.

Enhanced support for ESM modules

As we know Node.js has it's own module system (CommonJS), but it's not quite common as it only supports Node environment so you can't run CommonJS file in the browser.

ECMAScript 6 brought us a module system to JavaScript and Node.js 10 support it.


Node.js has introduced N-API in the Node v8 release AND now it's Stable. And if you don't already know what N-API is :

It is intended to insulate Add-ons from changes in the underlying JavaScript engine and allow modules compiled for one version to run on later versions of Node.js without recompilation.

NPM ? Node.js

How come Node get updated and NPM not?  NPMJS has realized also a new version and I personally like it, and it comes with:

  • Security, security, and security.
  • A new command to find security vulnerabilities npm audit
  • Optimizations for continuous integration (CI)
  • ...

New methods (will cover some)

  • Console.table and it displays tabular data as a table and I LOVE it
  • The Argument(e) in try {} catch(e) {} is now optional
  • ...


Finally the Deprecations

  • Using require() to access several of Node.js' own internal dependencies will emit a runtime deprecation.
  • Use of non-string values for process.env has been deprecated in the documentation.
  • The enroll() and unenroll() methods have been deprecated.


For further details, you can check Node.js announcement Node v10.0.0

Last modified: May 23, 2018