Skip to content

Make MapStore compatible with NodeJS 22 and next #11577

Description

@offtherailz

See #11481and in particular this comment

We need to make MapStore compatible with future versions of NodeJS.

Image

From a first test, only docma build looks to be fail. In order to make MapStore compatible with Node 22 (and next), we need to find a solution for Docma documentation.

Docma project has been abandoned, and even updating to the latest version do not work with Node 22, because of some deprecation warnings due to jsdoc-x lib (from the same author, and looks abandoned too).

Error: (node:347738) [DEP0055] DeprecationWarning: The `util.isRegExp` API is deprecated. Please use `arg instanceof RegExp` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:347738) [DEP0047] DeprecationWarning: The `util.isDate` API is deprecated.  Please use `arg instanceof Date` instead.
(node:347738) [DEP0048] DeprecationWarning: The `util.isError` API is deprecated. Please use `ObjectPrototypeToString(e) === "[object Error]" || e instanceof Error` instead.
 
Executed JSDoc Command: jsdoc -X 

[...]

with JSON configuration: {"tags":{"allowUnknownTags":true,"dictionaries":["jsdoc","closure"]},"source":{"includePattern":".+\\.js(doc|x)?$","excludePattern":"(^|\\/|\\\\)_"},"templates":{"cleverLinks":false,"monospaceLinks":false},"plugins":["plugins/markdown"]}
    at ChildProcess.<anonymous> (/home/offtherailz/work/projects/mapstore/MapStore2/node_modules/jsdoc-x/src/lib/helper.js:141:54)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1101:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5)

Possible solutions are:

  1. Isolate the docma build in a separate project (e.g. build/docs/package.json, or separate program to run with npx to build ms documentation)
  2. Use pure JSDoc
  3. Fork docma and jsdoc-x to update
  4. Use another tool for building documentation

(wip):
NODE_OPTIONS="--no-deprecation" npm run jsdoc:build works!!

Activity

  1. added this to the 2025.02.00 milestone on Oct 10, 2025
  2. added
    dependencies
    on Oct 13, 2025
  3. Ansita20 commented on Oct 14, 2025

    @Ansita20

    @offtherailz Can I please work on this issue.

  4. offtherailz commented on Oct 15, 2025

    @offtherailz
    MemberAuthor

    Hi @Ansita20 . We are still investigating on this issue, probably the only real obstacle is the JSDOC.
    I proposed some alternatives, but we still have to investigate on which solution is better on strategic an technical side.

    I'd planned to hopefully finalize the investigation within the end of the month, or the beginning on the next.

    If in the meantime you have some alternatives, results of your investigation or anything to share, feel free to propose or share your results. It can be for sure helpful to take a decision.

    Then, after we decided how we should do this task, if you want to contribute, we can stay in touch.

    In the meantime thank you for your interest in contributing MapStore.

  5. Ansita20 commented on Oct 15, 2025

    @Ansita20

    @offtherailz yes sure i would like to work on this issue...I hope to solve this issue and be useful

  6. added a commit that references this issue on Oct 20, 2025
  7. offtherailz commented on Oct 21, 2025

    @offtherailz
    MemberAuthor

    @Ansita20 we should have solved relatvievly quickly after the investigation to find strategic approach.
    A PR is pending by my side. Thank you anyway for your offer to contribute 👍 ❤️

  8. added a commit that references this issue on Oct 31, 2025
  9. self-assigned this
    on Oct 31, 2025
  10. linked a pull request that will close this issueSetup CI with Matrix #11643on Oct 31, 2025
  11. added
    BackportNeeded
    on Nov 4, 2025
  12. modified the milestones: 2025.02.00, 2026.01.00 on Nov 10, 2025
  13. removed
    BackportNeeded
    on Nov 10, 2025
  14. modified the milestones: 2026.01.00, 2025.02.00 on Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Accepteddependenciesinvestigation

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions