Developer Announcements

jmclaren
HubSpot Employee
HubSpot Employee

Deprecation of Node v16 in all serverless functions

The below text comes from our developer Changelog - the official source of truth for all developer related HubSpot changes. If this version differs in any regard to the version posted there, the developer changelog is the version to trust.

Deprecation of Node v16 in all serverless functions

Node.js v16 reached end of life on September 11th, 2023. To make sure HubSpot systems stay up to date on security and reliability, we will be ending support for Node.js v16 on July 12, 2024. After this date, any existing functions using v16 will continue to operate, but you will need to upgrade to a supported version to deploy changes. If you're using Node for any of the serverless function systems, you should update your code before this time to ensure they are on the latest supported version. These systems include:

 

Custom Coded Workflow Actions

Previously created custom code workflow actions relying on node v16 will continue to work. Newly created custom code workflow actions use Node v20. If you need to update a previously created custom code workflow action you will be required to update to Node v20.

CMS Serverless Functions

CMS serverless functions will continue to support Node.js v18 and v20. We recommend updating to v20 if you haven't already done so to ensure you get the longest support period. The Node version is declared in the serverless.json file.

 

If your functions are running Node.js v16, you should update them before July 12, 2024. Existing functions will continue to operate, but you will be required to upgrade to a newer version to deploy any changes to those functions.

Serverless Functions in Developer Projects

The Node version in serverless functions in developer projects is dictated by the projects version in your project config. Version 2023.2 is the latest developer projects version and all projects using that version are already using Node v18. No further action is necessary.

When is this happening?

Support for Node.js v16 will end on July 12, 2024 for all systems. After this, existing functions will continue to operate, but you will not be able to deploy any changes without updating to a newer version of Node.

 

Please let us know if you have any questions by joining the discussion below.

Jon McLaren

Sr. CMS Developer Advocate

Get started developing on the HubSpot CMS Developer Changelog
How to optimize your CMS Hub site for speed

If my reply answered your question, please mark it as a solution, to make it easier for others to find.

0 Replies 0

0 Replies

No replies on this post just yet

No one has replied to this post quite yet. Check back soon to see if someone has a solution, or submit your own reply if you know how to help! Karma is real.

Reply to post

Need help replying? Check out our Community Guidelines