Node.js® Enterprise Support
New comprehensive plans availableLearn More
Thank you for contacting us. We will get back to you shortly.
April 24, 2018 - by Colin J. Ihrig
Today, the Node.js core team is proud to release version 10.0.0 of the Node runtime. The Node.js project makes various releases year round which include minor improvements, bug fixes, and new features. Twice per year, in April and October, the project cuts a new major release. Each major release is the culmination of six months of code changes, some of which may break compatibility with previous versions. This release process is captured in the following image.
The image shows several things:
Before looking at Node 10.0.0 in detail, it's important to set some expectations:
Major releases of Node.js are generally uninteresting.
If major releases contain all of the breaking changes, how can they possibly be boring? The answer to this question has several components.
New APIs, new language features, and V8 updates typically generate the most excitement among developers. With the exception of backward incompatible V8 updates, these are usually classified as semver minor changes, or feature additions. Since semver minor releases are made on an ongoing basis, the "exciting" changes don't need to wait for a new major release line.
Now that it is available, the 10.x release line will receive all non-breaking changes that land in the master branch until Node 11.0.0 is released in October. While it is expected that no breaking changes will be introduced in Node 10.x, history has shown that there will likely be some accidental breakage. Until it transitions to LTS in October, Node 10.x does not come with the same stability guarantees as an existing LTS release line.
If you (or your company) can safely exist closer to the bleeding edge, tolerate possible unexpected breakage, and can easily switch between Node.js versions, then Node.js 10.x is a viable option for you now.
If you are running Node.js in mission-critical areas, require the utmost level of stability, or cannot easily move between Node.js versions, then Node.js 10.x is not a viable option for you at this time. If you fall into this category, you absolutely should be running an LTS release.
This section lists some of the notable changes in Node.js 10.0.0. Some of the items in this list arrived very recently in Node 9.x, but warrant mentioning here.
Buffer()constructor is being deprecated when called outside of a
node_modulesdirectory. Certain uses of the
Buffer()constructor are considered security risks. The constructor has been deprecated in the documentation for several years. However, its widespread use, and the deeply nested nature of Node.js application dependency trees has made displaying a runtime deprecation message impractical. Node 10.0.0 attempts to discourage use of the
Buffer()constructor in new code by displaying a deprecation message if the call comes from an application, but not a dependency in a
fs.copyFile(). The original goal of
awaitin the REPL is available behind a flag. This makes
awaitsignificantly easier to use in the REPL because an
asyncfunction wrapper is not necessary.
This post has explored the Node.js 10.0.0 release at a high level. It also detailed who is a prospective user of Node.js 10.0.0, and who should be using an existing LTS release line instead. If anything in this post is unclear, please reach out. Joyent offers comprehensive Node.js support and would love to help you succeed.