Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Node v11.2.0 released with major updates in timers, windows, HTTP parser and more

Save for later
  • 2 min read
  • 16 Nov 2018

article-image

Yesterday, the Node.js community released Node v11.2.0. This new version comes with a
new experimental HTTP parser (llhttp), timers, windows and more. Node v11.1.0 was released earlier this month.

Major updates

  • Node v11.2.0 comes with a major update in timers, fixing an issue that could cause setTimeout to stop working as expected.
  • If the node.pdb file is available, a crashing process will now show the names of stack frames
  • This version improves the installer's new stage that installs native build tools.
  • Node v11.2.0 adds prompt to tools installation script which gives a visible warning and a prompt that lessens the probability of users skipping ahead without reading.
  • Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at R$50/month. Cancel anytime
  • On Windows, the windowsHide option has been set to false. This will let the detached child processes and GUI apps to start in a new window.
  • This version also introduced an experimental `llhttp` HTTP parser. llhttp is written in human-readable TypeScript. It is verifiable and easy to maintain. This llparser is used to generate the output C and/or bitcode artifacts, which can be compiled and linked with the embedder's program (like Node.js).
  • The eventEmitter.emit() method has been added to v11.2.0. This method allows an arbitrary set of arguments to be passed to the listener functions.

Improvements in Cluster


The cluster module allows easy creation of child processes for sharing server ports. The cluster module now supports two methods of distributing incoming connections. The first one is the round robin approach which is default on all platforms except Windows. The master process listens on a port, they accept new connections and distribute them across the workers in a round-robin fashion. This approach avoids overloading a worker process.

In the second process, the master process creates the listen socket and sends it to interested workers. The workers then accept incoming connections directly. Theoretically, the second approach gives the best performance.

Read more about this release on the official page of Node.js.

Node.js v10.12.0 (Current) released

Node.js and JS Foundation announce intent to merge; developers have mixed feelings

low.js, a Node.js port for embedded systems