FeaturedIT topics

What’s new in the Node.js 11 JavaScript runtime

Node.js Version 11 is now the current release line for the server-side JavaScript environment; it will be supported for six months. Node.js 10, whose first version was released in April 2018, is set to become the Long-Term Service (LTS) release on October 30, 2018, meaning it will generally be supported for 30 months. LTS releases are recommended for production usage.

Where to download Node.js

You can download Node.js from the NodeJS.org website.

What’s new in Node.js 11

Node.js offers these new or updated features:

  • For child processes, the default value of the windowsHide option has been changed to true.
  • The V8 Version 7 JavaScript and WebAssembly engine is included.
  • The read() method requires a callback.
  • Interval timers will be rescheduled even if a previous interval threw an error.
  • Windows performance counter support has been removed.
  • The SyncWriteStream utility, which previously was deprecated, has been removed.
  • Use of binding() has been deprecated.
  • FreeBSD 10 is no longer supported.

What’s new in Node.js 10

Node.js 10 has also gained several enhancements since its April 2018 release:

  • Operations per second are nearly twice as high as in the previous version, Node.js 6, with latency decreased by 65 percent.
  • The footprint after load is 35 percent lower in Node.js 10 compared to Node.js 6, for increased cold start performance.

Node.js 10 previously added these capabilities:

  • Support for the OpenSSL 1.1.0 security toolkit.
  • N-API, a module API that lowers maintenance costs for native modules and reduces friction in upgrading Node.js versions in production deployments.
  • HTTP/2, offering performance improvements over predecessor HTTP/1.
  • The V8 6.8 JavaScript and WebAssembly engine, offering improved WebAssembly execution speed.
  • NPM 6.4, with Version 6 of the JavaScript package installer boosting performance while also focusing on stability and security.
  • Better support of ECMAScript (ES) 6 modules. Node.js has had its own module system, but ECMAScript 6 offers a standardized module system.
  • JavaScript language improvements, including prototype.toString(), which now returns exact slices of source code text, and mitigations for side-channel vulnerabilities to prevent information leaks.
  • Error-handling improvements, with adoption of error codes to ease constant error-checking.
  • Performance boosts via V8, including for the async generator and array.
  • Increased visibility into code performance issues via trace events.
  • An API that allows user code to enable and disable trace events on demand at runtime, for improved flexibility in diagnosing issues in applications.

What’s coming to Node.js

Other efforts in the Node.js project, not directly tied to the Node.js 10 or Node.js 11 release lines, include:

  • Continued progress on security triage for third-party NPM modules.
  • Functional testing for third-party modules, to ensure that dependencies are maintained.

Related Articles

Back to top button