We’re thrilled to announce support for Node.js 20 with the release of Edgio v7.5.0, offering our users even more flexibility and cutting-edge features for their Edgio Sites and Cloud Functions deployments. To recap, Edgio announced support for Node.js 18 about a month ago and we promised faster updates in the future. And here we are with a major update about a month later.
Expanded Options for Your Deployments
With this update, you can now choose between Node.js 18 and 20, tailoring your runtime environment to your application needs. Node.js 20 brings a host of new features, including an updated V8 JavaScript engine, improvements in Web Assembly Systems Interface (WASI), better interoperability for Web Crypto API with other JavaScript ecosystems, and more. You can read more about these enhancements in the official Node.js 20 announcement blog.
Important Update on Node.js 16
Node.js 16 has reached its End of Life (EOL) and will be deprecated on June 12, 2024. During the EOL period, starting September 11, 2023, only underlying OS updates will be applied, with no security patches or other updates for Node.js 16.
Users can continue to deploy Node.js 16 workloads using Edgio CLI versions prior to v7.5.0. However, Node.js 16 deployments will no longer be allowed if users choose to update their Edgio CLI to v7.5.0 or later. After June 12, 2024, new deployments using Node.js 16 as the Cloud Runtime will not be possible on any Edgio CLI version.
To ensure a smooth transition and maintain the security of your applications, we recommend migrating your deployments to Node.js 18 or 20 as soon as possible.
How to Upgrade to Node.js 20
Upgrading to Node.js 20 on Edgio is straightforward. Simply update your Edgio CLI version to the latest by running the following command in your project directory:
npx edgio use latest
After the update, set the cloudRuntime key in your edgio.config.js file to nodejs20.x.
Here’s an example:
module.exports = {
cloudRuntime: 'nodejs20.x',
// ... other configurations
};
Any deployments you make after these changes will use Node.js 20 as runtime for Edgio Sites and Cloud Functions.
Embrace the Future with Edgio
At Edgio, we’re committed to providing you with the latest technologies and tools to build powerful, efficient, and secure web applications. With Node.js 20 support, you’re well-equipped to take advantage of the latest developments in the JavaScript ecosystem.
We encourage you to explore the new features and benefits offered by Node.js 20 on Edgio and look forward to supporting you in your development journey. If you have any questions or need assistance with your migration, our team is here to help.