Skip to content

Consider changing the minimum required version of NodeJS from 16 to 20 #11481

Closed
2 of 2 issues completed
Closed

Description

@jna4k

Description

I think we should change the minimum required version of NodeJS from 16 to 20.

The main reason for changing the version, is because I want to update several npm dependencies, but some of those dependencies require NodeJS 18 or higher. One of the npm packages I wish to update is copy-webpack-plugin, which has reduced its dependencies count from 91 down to 19.

It is also worth mentioning that NodeJS 16 is EOL see https://nodejs.org/en/about/previous-releases

  • NodeJS 16 has been EOL for 2 years
  • NodeJS 18 has been EOL for 4,5 months
  • NodeJS 20 will be EOL in 7 months

The github action are currently running version 20, which means we are not actively testing for issues on older versions of node, this change was introduced over a year ago with #10455.

I have done some initial testing on my own pc, version 16, 18 and 20 seems to be building fine. I am using version 22 on a daily basis, but I noticed that building the documentation doesn't work with this version, I believe this is due to docma being deprecated and no longer actively maintained.

NodeJS 16.20.2

  • npm install
  • npm run fe:build
  • npm run fe:start
  • npm run test
  • npm run jsdoc:build

NodeJS 18.20.8

  • npm install
  • npm run fe:build
  • npm run fe:start
  • npm run test
  • npm run jsdoc:build

NodeJS 20.19.3

  • npm install
  • npm run fe:build
  • npm run fe:start
  • npm run test
  • npm run jsdoc:build

NodeJS 22.11.0

  • npm install
  • npm run fe:build
  • npm run fe:start
  • npm run test
  • npm run jsdoc:build ( FAILS )
Image

Documentation section involved

  • User Guide
  • Developer Guide

Other useful information

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. changed the title [-]Consider raising minimum required version of NodeJS to version 20[/-] [+]Consider raising minimum required version of NodeJS from 16 to 20[/+] on Sep 15, 2025
  2. changed the title [-]Consider raising minimum required version of NodeJS from 16 to 20[/-] [+]Consider changing the minimum required version of NodeJS from 16 to 20[/+] on Sep 16, 2025
  3. added
    dependencies
    and removed on Oct 2, 2025
  4. added theissue type on Oct 2, 2025
  5. added this to the 2025.02.00 milestone on Oct 2, 2025
  6. offtherailz commented on Oct 2, 2025

    @offtherailz
    Member

    I agree on all points.
    Regarding the failure on jsdoc build on node 22, can be due to the docma+custom jsdoc (@geosolutions-it/jsdoc) used.
    We may try to update jsdoc to latest version to make it work.
    Our plan is to set minimum version to 20 from 2025.02.00 . At the moment I don't see any reason to maintain compatibility with Node 16 or 18, we should concentrate solve issues for next versions.

  7. offtherailz commented on Oct 10, 2025

    @offtherailz
    Member

    I did a test to check if an update to docma could solve the issue with node 22, but it is not sufficient.
    Moreover docma project is not updated for a long time.
    Therefore we have to plan to switch the documentation system, using pure JSDoc, or an existing documentation system.
    For the moment we can only

    • Set the required minor version of Node to 20.
    • Open an issue in order to make documentation compatible with future versions of NodeJS.
  8. added
    BackportNeeded
    and removed
    BackportNeeded
    on Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Accepteddependencies

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions