question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate to Node.js 18 Active LTS version

See original GitHub issue

Current Implementation

cwa-website workflows currently specify Node.js 16 (lts/gallium) in

Status change in Node.js releases

As Node.js 16 with codename ‘Gallium’ moved from status Active LTS to Maintenance on October 25, 2022, Node.js 18 with codename ‘Hydrogen’ moved at the same time to status Active LTS. LTS means Long Term Support and the Node.js Release schedule explains in detail about the available Node.js versions and their status.

Suggested Enhancement

Update workflows to use Node.js 18 (‘Hydrogen’). This is currently shown on https://nodejs.org/en/ as 18.12.0 LTS “Recommended For Most Users”.

Notes:

  1. GitHub’s actions/setup-node allows using Node.js 18 although it is not yet cached into the Ubtuntu 20.04 runner
  2. npm package webpack must be updated from version 4 to 5 otherwise npm run build produces the error “Error: error:0308010C:digital envelope routines::unsupported”
  3. npm package webpack-stream must be updated from version 5 to at least version 6 in combination with the webpack update to v5, otherwise the FAQ redirects do not work. v7 is the latest version and this also works with webpack v5.

Steps to migrate

  1. Workflow: change node-version: from 'lts/gallium' to 'lts/hydrogen'
  2. npm packages:
  3. Update README: Requirements to refer to Node.js 18

Expected Benefits

  • Align to the preferred Long Term Support version of Node.js (see Node.js 18).

  • Reduce number of vulnerabilities from 37 to 34 due to necessary npm package updates
    Edit: Not relevant if no new npm packages are installed.


Internal Tracking ID: EXPOSUREAPP-14247

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dsarkarcommented, Oct 31, 2022

@MikeMcC399 Also here, thanks a lot for providing a PR!

0reactions
MikeMcC399commented, Oct 31, 2022

@dsarkar

Also here, thanks a lot for providing a PR!

My pleasure!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js 18 is now available!
We're excited to announce that Node.js 18 was released today! Highlights include the update of the V8 JavaScript engine to 10.1, ...
Read more >
Migrate Actions from to Node.js 16 to Node.js 18 in Beta - Auth0
There is no immediate need to migrate to Node 18, as all existing Actions will remain on Node 16 and any new Actions...
Read more >
11 Features in Node.js 18 you need to try - NodeSource
Details of Node.js 18 new features, including fetch API and test runner, along with V8 JavaScript engine 10.1 features, and more...
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
Direct download links to update to the latest Node.js versions: Node v19.0.0 / LTS v16.18.0.
Read more >
Node.js 18 Release: What's New - AppSignal Blog
After six months, in October 2022, it will become the "active LTS" release, because version 19 will be released. The active LTS release...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found