Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announcement: Node.js 14 and 16 End-of-Life Dates #1985

Closed
jshackell-sfdc opened this issue Mar 6, 2023 · 5 comments
Closed

Announcement: Node.js 14 and 16 End-of-Life Dates #1985

jshackell-sfdc opened this issue Mar 6, 2023 · 5 comments
Labels
announcement Announcement to the community

Comments

@jshackell-sfdc
Copy link
Collaborator

jshackell-sfdc commented Mar 6, 2023

If you install Salesforce CLI using npm, and use Node.js 14 or 16, be aware of these end-of-life announcements.

NOTE: If you install Salesforce CLI using the installers (.pkg, .exe, or TAR files), these announcements don't apply to you. Salesforce CLI installers and TAR files bundle the LTS version of Node.js, so keeping Salesforce CLI updated to its latest release also keeps you current with Node.js.

Node.js 14 End-of-Life

The end-of-life date for Node.js 14 is April 30, 2023.

We’ll start modifying Salesforce CLI plugins and libraries to require Node.js 16 or higher in early May 2023. We’ll be taking advantage of new syntax features that don’t work on Node.js 14.

Node.js recommends that if you’re using Node.js 14, move to Node.js 18 and not Node.js 16, because the latter has such a short remaining lifespan.

Node.js 16 End-of-Life (Brought Forward)

The end-of-life date for Node.js 16 is September 11, 2023. This date is earlier than previously published.

Node.js’s blog explains why they chose this earlier end-of-life date.

When Node.js drops support for Node.js 16, Salesforce CLI will too.

Salesforce Recommendations

Generally, we recommend using Node.js 18.

If you're unable to change your Node.js version to a supported version, we recommend that you install Salesforce CLI from a TAR file or installer. Your computer can then have the older Node.js version installed, but Salesforce CLI will bring its own supported Node.js version and not use the one on your computer.

If you're using the sfdx-lwc-jest plugin package, please see this issue around the impact of node versions, a known bug in its jest dependency, and various tradeoffs/workarounds.

@jshackell-sfdc jshackell-sfdc added the investigating We're actively investigating this issue label Mar 6, 2023
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@jshackell-sfdc jshackell-sfdc added announcement Announcement to the community and removed investigating We're actively investigating this issue labels Mar 6, 2023
@jshackell-sfdc jshackell-sfdc pinned this issue Mar 10, 2023
@AllanOricil
Copy link

AllanOricil commented Mar 13, 2023

@jshackell-sfdc

This issue affects this decision depending on the amount of tests developers have in their projects. You have to upgrade Jest to v29 if you want to support node > 16.10

@jshackell-sfdc
Copy link
Collaborator Author

@mshanemc , can you respond to Allan's comment above? Thx.

@jshackell-sfdc
Copy link
Collaborator Author

@AllanOricil , thanks for letting us know about that issue. We updated our announcement accordingly.

@AllanOricil
Copy link

14 and 16 are forever part of my life. I will miss them 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
announcement Announcement to the community
Projects
None yet
Development

No branches or pull requests

3 participants