Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What features have been updated in Node.js v8.0.0

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "what functions have been updated in Node.js v8.0.0". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what features have been updated in Node.js v8.0.0.

The Node.js Foundation announced the release of Node.js v8.0.0. The main features of the new version include: npm client upgrade to version 5.0.0; upgrade from Chrome JS engine V8 to v5.8scape Node.js API (N-API) allows you to create native extensions that can be compiled for use in multiple Node versions at a time; update the async_hooks module; fully support WHATWG URL API parsers; Buffer API introduces a large number of new changes; the new util.promisify () API; console module adds console.log () and console.error (), and so on. Node.js v8 will be the next long-term support version (LTS). (text / Solidot)

Node.js v8.0.0 has been officially released. V8.0.0 is the next major release, bringing a series of major changes and new features, with a lot of content, and this article contains a summary of major changes and features.

Npm 5.0.0

Npm recently announced the release of version 5.0.0 of the npm client, and this important new version is now being used in Node.js 8.0.0.

V8 5.8

Node.js 8.0.0 uses V8 5.8, which is a major update to the JavaScript runtime, including performance aspects and major improvements for developer API. The most important thing for Node.js developers is that V8 5.8 ensures ABI forward compatibility with V8 5.9 and the upcoming V8 6.0, which will help ensure the stability of the Node.js native plug-in ecosystem. During the life cycle of Node.js 8, upgrades are planned to 5.9 or even 6.0.

The V8 5.8 engine also helps to set up a new TurboFan + Ignition compiler pipeline (compiler pipeline) transfer, which will provide important new performance optimizations for all Node.js applications. Although versions prior to V8 already exist, TurboFan and Ignition will be enabled by default in V8 5.9. The new compiler pipeline represents such a major change-the Node.js Core Technology Committee (CTC) chose to postpone the initial release of Node.js 8, which was originally scheduled for April, in order to better adapt to it.

Node.js API (N-API)

For Node.js developers who use or create native plug-ins, the new experimental Node.js API (N-API) is a major improvement over the existing Native Abstractions for Node.js (nan), which will allow native plug-ins to be compiled once on one system and used on multiple versions of Node.js.

By providing a new virtual machine agnostic application binary interface (ABI), native plug-ins can run not only on multiple versions of the V8 JavaScript runtime, but also on Microsoft's Chakra-Core runtime.

N-API is an experimental feature in Node.js 8.0.0.

Full support for WHATWG URL parser

Experimental URL API implemented by the WHATWG URL standard was added to Node.js 7.x last year and has been in active development since then. Now, starting with 8.0.0, the new URL implementation is now a non-experimental API that is fully supported in Node.js. An example usage is shown below, and more details are provided in the official documentation.

Const URL = require ('url'). URL; const myUrl = new URL (' / a const URL pathways, 'https://example.org/');

This new URL implementation is the most important because it matches the URL implementation and API in modern Web browsers such as Chrome,Firefox,Edge and Safari, allowing code to be shared between different environments using URL.

Long-term support

Node.js v8 is the next long-term supported (LTS) version. This will enter in October 2017, and once Node.js 8 is converted to LTS, the code name Carbon will be used.

The following updates are also included:

Update the async_hooks module

Buffer API introduces a lot of new changes

New util.promisify () API

Console module adds console.log () and console.error ()

At this point, I believe you have a deeper understanding of "what features have been updated in Node.js v8.0.0". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report