Node.js 8 Includes npm 5
Node.js 8 Includes npm 5
Written by Kay Ewbank   
Friday, 02 June 2017

The latest version of Node.js has been shipped with a new npm client, support for future versions of the JavaScript runtime, and an experimental Node.js API..

Node.js is an asynchronous event driven JavaScript runtime built on Chrome's V8 JavaScript engine. It uses an event-driven, non-blocking I/O model. The new release has a number of improvements and additions, and comes with version 5.0 of the npm package client. 

One important point about the new release is which JavaScript runtime it ships with. Node.js 8.0.0 ships with V8 5.8. While this is a major update to the JavaScript runtime, more important for the longer future is the fact that it is guaranteed to have forwards ABI compatibility with V8 5.9 and the upcoming V8 6.0.

The reason this is necessary is that V8 5.9 of the JIT compiler is  scheduled for release in early June. If the current compiler didn't have ABI compatibility, Node.js 8 would be almost instantly out of date regarding its runtime. The need to have long term compatibility was behind the delay in shipping Node.js 8. 

The new virtual machine agnostic Application Binary Interface (ABI), means native addons will work not only against multiple versions of the V8 JavaScript runtime, but Microsoft's Chakra-Core runtime as well. The N-API is experimental in this release, so the developers say that significant changes in the implementation and API should be expected.

The new experimental Node.js API (N-API) means that developers who use or create native addons will be able to compile their native addons once on a system then use them across multiple versions of Node.js.

The previously experimental WHATWG URL parser API has moved to be fully supported and non-experimental.

nodejs

The new URL implementation matches the URL implementation and API available in modern Web Browsers like Chrome, Firefox, Edge, and Safari, allowing code using URLs to be shared across environments.

The Async_wrap module has been upgraded and renamed as async hooks. The API provides diagnostics that you can use to monitor the operation of the Node.js event loop, tracking asynchronous requests and handles through their complete lifecycle.

Other elements to be updated include the Buffer API, which has new construction methods, and better handling of the Buffer(num) constructor. There's improved support for Promises, and the start of support for static error codes.

The Stream API has been improved, and there's an experimental inspector JavaScript API.

 

nodejslogo

More Information

Node.js blog 

Related Articles

Node.js Bridge For COBOL

Rewritten Search For NPM 4.0

Yarn The New JavaScript Package Manager

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


Google's Fuchsia OS And The Forking Of Swift
21/11/2017

This more a "what is going on" sort of story than any prediction of the future. About a week ago the Google team developing the mysterious Fuchsia operating system forked Apple's Swift language. Now i [ ... ]



Blockchain and Bitcoin Skills In Demand
20/11/2017

Blockchain, Bitcoin and Ethereum have been added to Hacker News Hiring Trends, which tracks the popularity of languages, frameworks and technologies in the Hacker News thread "Ask HN: Who is hiring?". [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Friday, 02 June 2017 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.