Loading...

Node.js 15 Released: What’s New And What Has Improved?

Author
SPEC INDIA
Posted

December 4, 2020

Category Blog, Node

Node.js 10 will go End-of-Life in April 2021, so we advise you to start planning to upgrade if you are still using Node.js 10.

Node.js community has declared this in one of the posts announcing the new release of Node.js, Node.js 15.0.0. Yes, Node.js 15 is released and this post talks about important highlights and updates in this new version.

Let’s begin.

Before we start discussing Node.js 15, one thing you need to keep in mind is – Node.js 15 will not be promoted to LTS (long-term support). Node.js 14 is the LTS version. The Node.js community encourages the use of the LTS release line for deployments.

Node.js-15-Release

What’s New In Node.js 15?

Node.js 15 was released in October 2020.

This new version of Node.js comes with a new release of npm 7. Apart from this, Node.js 15 is equipped with performance improvements, V8 JavaScript engine update, solved issues, and experimental implementation of AbortController and QUIC.

Major Highlights Of Node.js 15:

  • npm 7:

npm is a package manager for the JavaScript programming language. It is now one of the largest software registries with millions of developers and over 1.3M packages and 75B downloads a month.

npm 7 has many long-awaited features that include Workspaces, a new package-lock.json format, support for yarn.lock file, and automatic installation of peer dependencies. Significant internal changes of npm 7 ensure more codebase reliability and maintainability.

  • N-API 7:

N-API is an API for building native Addons and is a part of Node.js. It is used to maintain stability across Node.js versions and different compiler levels. Node.js 15 ships with a new major release of N-API 7 with new features and additional methods for working with ArrayBuffers.

  • AbortController:

It is an experimental implementation in Node.js 15. It is a utility class used to signal cancelation in selected promise-based APIs. The AbortController allows developers to abort one or more Web requests as and when needed.

  • QUIC:

QUIC is a UDP-based network transport protocol for HTTP/3 that offers built-in security with TLS 1.3, multiplexing, flow control, error correction, connection migration, and so on. Node.js 15 comes with experimental support for this through the QUIC configuration flag.

QUIC is an experimental, general-purpose, transport layer network protocol designed by Google. It is faster, efficient, and similar to the TCP+TLS+HTTP/2 protocol implemented on UDP. It aims to reduce latency compared to TCP.

Node.js community is one of the strong communities with a constant chain of improvements, bug fixes, and plans to upgrade Node.js.

  • Latest V8.6:

This latest version of Node.js, Node.js 15 has updated V8 JavaScript runtime support. It has been updated to 8.6 from 8.4 with many performance improvements and features.

  • Unhandled Rejection:

The default mode for unhandledRejection is changed to throw from warn in Node.js 15. This decision is based on the results of the Node.js User Insights: Unhandled Promise Rejections survey and a Node.js Technical Steering Committee vote.

What’s More?

This time, more focus has been placed on improving the contribution process. To determine the next area of improvement, the Node.js community has conducted one survey to gather feedback on the contribution process. There have been several improvements for automation and tooling, resulting in easy collaboration and management.

Last year, the ‘Next 10 Years of Node.js’ repository is created to work collaboratively on the direction and strategic decision to drive growth for the next 10 years of Node.js. As Node.js marks 11 years of its existence, it is interesting to see how the Node.js community sets the direction of success in the upcoming years.

Note: Node.js 14 is an LTS version and it continues to be supported until April 2023.

Now Is A Good Time To Upgrade To Latest Version:

As the Node.js community has announced the end-of-life of Node.js 10 in April 2021, it is a good time to start planning for upgrades and leverage performance benefits. Software upgrades are essential to unlock performance improvements and enable new features to be leveraged in the production environment.

Node.js 15: How It Has Improved Developers Experience?

With some notable bug fixes and updates, Node.js 15 is all set to increase developers’ productivity and improve the overall developer experience. Developers can start using Node.js 15 to leverage experimental features, new npm7, V8.6, QUIC protocol, and major bug fixes.

Why Node.js?

Node.js made it happen to write server-side scripting in JavaScript. It is an open-source, back-end, and cross-platform JavaScript runtime environment used by a large number of companies. With asynchronous I/O and event-driven architecture, it makes real-time web app development easier than ever before. Node.js is preferred by the world’s renowned brands, Fortune 500 companies, startups, and mid-sized organizations. It represents the ‘JavaScript Everywhere’ paradigm for complete web development rather than using different languages for the frontend and backend.

Good Read: Top 20 World-Famous Companies Using Node.js

Companies That Use Node.JS/Popular Node.js Apps

  • Microsoft
  • Netflix
  • PayPal
  • Rakuten
  • Walmart
  • GoDaddy
  • AWS
  • LinkedIn

We have already written a post covering the top 20 apps that use Node.js. Easy scalability, modern architecture, speed, and high performance – are some of the major benefits of using Node.js.

It is recommended by the Node.js community to use even-numbered releases for production and odd-numbers for experimental and new projects.

Summing it up, Node.js 15 is worth giving a try. Share your feedback and contribute to making Node.js better in the upcoming time.

Delivering Digital Outcomes To Accelerate Growth
Let’s Talk
Author
SPEC INDIA

SPEC INDIA, as your single stop IT partner has been successfully implementing a bouquet of diverse solutions and services all over the globe, proving its mettle as an ISO 9001:2015 certified IT solutions organization. With efficient project management practices, international standards to comply, flexible engagement models and superior infrastructure, SPEC INDIA is a customer’s delight. Our skilled technical resources are apt at putting thoughts in a perspective by offering value-added reads for all.

Delivering Digital Outcomes To Accelerate Growth
Let’s Talk