Open In App

What are LTS versions of Node.js ?

Last Updated : 23 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

LTS version is an abbreviation of the Long Time Support version where the release of the software is maintained for a more extended period of time. The LTS version is commonly recommended to users for production environments.

In Node.js, new versions frequently come with more features, optimized performance, and bug fixes. Node.js versions look like x.y.z where x represents the most significant changes and the rest represent the minor changes. 

LTS versions of Node.js

LTS (or Long Term Support) Version are stable release that receives new features, critical bug fixes, and security updates for some extended period of time. These versions are best for production as these are maintained in stability and security for long time.

LTS version of node.js is an even-numbered node.js version like 14. x.x LTS, 16.x.x etc recommended for most users. You should use these versions to implement your project and deploying into a production environment. LTS version focus on stability and more reliable application for any scale. 

According to the Node.js blog, the “LTS version guarantees that the critical bugs will be fixed for a total of 30 months and Production applications should only use Active LTS or Maintenance LTS releases”.

 

Note that on the Nodejs.org website, you will see another node.js version called Current along with the LTS version. But the current version is not intended for you. It’s just for the library authors who make use of Node.js in their library. For example, React, Vue, Gulp, Webpack, Jest, etc make use of Node.js. That means current odd number versions like 13.x.x are intended for the library maintainers. If a major release happens it gives 6 months to the library owners to make changes in their tool to make it compatible enough. After 6 months the odd version becomes unsupported. And now the even-numbered version enters into the LTS line to make use in the production.

Different LTS Phases

There are mainly 4 phases for the LTS versions

Current

Current status is given when a version releases to 6 months from the release date. As a new lts version is released at every 6 months. During the current LTS the version receives active updates like features, security and stablity.

Active LTS

Active LTS is given after new 6 months when a new LTS version is released. This phase mainly receives the stability, security and critical bug fixes. It hardly focuses on the new features. It ususal;y continue for 18 months.

Maintenance LTS

This phase only focus in the stability and security of the node version. It only receives critical fixes and security updates. It continues for 12 months

EOL

After the maintainance LTS the version reaches to End-of-life. The versions in this phase do not receive any updates and fixes including the stability and security.

How to know if you are using the LTS version of Node.js? 

You can easily determine the node.js version and whether you are working with the node.js LTS by using the process.release. lts property inside the node.js. 

node --version
v14.17.3

 

node -pe process.release.lts
Fermium

 



Next Article
Article Tags :

Similar Reads