mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-01 10:26:49 +08:00
Merge pull request #168 from js-kyle/LTS_Node
5.17. Use an LTS release of Node.js
This commit is contained in:
@ -656,6 +656,14 @@ All statements above will return false if used with `===`
|
||||
|
||||
**Otherwise:** Long deployments -> production down time & human-related error -> team unconfident and in making deployment -> less deployments and features
|
||||
|
||||
<br/><br/>
|
||||
|
||||
## ![✔] 5.17. Use an LTS release of Node.js
|
||||
|
||||
**TL;DR:** Ensure you are using an LTS version of Node.js to receive critical bug fixes, security updates and performance improvements.
|
||||
|
||||
**Otherwise:** Newly discovered bugs or vulnerabilities could be used to exploit an application running in production, and your application may become unsupported by various modules and harder to maintain.
|
||||
|
||||
<br/><br/><br/>
|
||||
|
||||
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
|
||||
|
||||
19
sections/production/LTSrelease.md
Normal file
19
sections/production/LTSrelease.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Use an LTS release of Node.js in production
|
||||
|
||||
|
||||
### One Paragraph Explainer
|
||||
Ensure you are using an LTS(Long Term Support) version of Node.js in production to receive critical bug fixes, security updates and performance improvements.
|
||||
|
||||
LTS versions of Node.js are supported for at least 18 months, and are indicated by even version numbers (e.g. 4, 6, 8). They're best for production since the LTS release line is focussed on stability and security, whereas the 'Current' release line has a shorter lifespan and more frequent updates to the code. Changes to LTS versions are limited to bug fixes for stability, security updates, possible npm updates, documentation updates and certain performance improvements that can be demonstrated to not break existing applications.
|
||||
|
||||
<br/><br/>
|
||||
|
||||
### Read on:
|
||||
🔗 [Node.js release definitions](https://nodejs.org/en/about/releases/)
|
||||
|
||||
🔗 [Node.js release schedule](https://github.com/nodejs/Release)
|
||||
|
||||
🔗 [Essential Steps: Long Term Support for Node.js by Rod Vagg](https://medium.com/@nodesource/essential-steps-long-term-support-for-node-js-8ecf7514dbd)
|
||||
> ...the schedule of incremental releases within each of these will be driven by the the availability of bug fixes, security fixes and other small but important changes. The focus will be on stability, but stability also includes minimizing the number of known bugs and staying on top of security concerns as they arise.
|
||||
|
||||
<br/><br/>
|
||||
Reference in New Issue
Block a user