Skip to content

Fix #10455 Allow use of node version 20 - #10457

Merged
allyoucanmap merged 10 commits into
geosolutions-it:masterfrom
allyoucanmap:issue_10455
Jul 30, 2024
Merged

allyoucanmap merged 10 commits into
geosolutions-it:masterfrom
allyoucanmap:issue_10455

Conversation

@allyoucanmap

@allyoucanmap allyoucanmap commented Jul 4, 2024 •

Copy link
Copy Markdown
Contributor

Description

This PR adds the node-options=--openssl-legacy-provider variable to the .npmrc files to use node version 20.

This PR updates webapck, html-webpack-plugin and html-loader dependecies and configures a different hashFunction for webapck to allow usage of node v20

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Minor changes to existing features

Issue

What is the current behavior?

#10455

What is the new behavior?

It is possible to install, run and compile mapstore with node version 20

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes

Other useful information

@allyoucanmap allyoucanmap added this to the 2024.02.00 milestone Jul 4, 2024
@allyoucanmap allyoucanmap self-assigned this Jul 4, 2024
@allyoucanmap allyoucanmap linked an issue Jul 4, 2024 that may be closed by this pull request
1 task done
@tdipisa
tdipisa requested a review from offtherailz July 4, 2024 12:29
@allyoucanmap

Copy link
Copy Markdown
Contributor Author

@tdipisa @offtherailz unfortunately it's not working without updating also the github actions.
We should also document someway this update but I'm not sure the migration guidelines is the right place

@offtherailz offtherailz left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the documentation with this commit on the PR
Note @tdipisa and @allyoucanmap This is a breaking change. When this PR is merged, the application will not be able to build anymore with current version of node used.
I didn't found any workaround except to update the dependencies.
We can merge this PR and update all our CI/CD (e.g. jenkins) chain for this breaking change. Also projects, when updated, will need this upgrade of node version.

As an alternative we should identfy what libraries need this update, and evaluate the cost of the upate.

Please @allyoucanmap and @tdipisa let's check this and, before merging this PR, be aware of the changes needed.

@allyoucanmap

Copy link
Copy Markdown
Contributor Author

I updated the documentation with this commit on the PR Note @tdipisa and @allyoucanmap This is a breaking change. When this PR is merged, the application will not be able to build anymore with current version of node used. I didn't found any workaround except to update the dependencies. We can merge this PR and update all our CI/CD (e.g. jenkins) chain for this breaking change. Also projects, when updated, will need this upgrade of node version.

As an alternative we should identfy what libraries need this update, and evaluate the cost of the upate.

Please @allyoucanmap and @tdipisa let's check this and, before merging this PR, be aware of the changes needed.

@offtherailz @tdipisa I double checked and it was the hash function used by webapack that was causing the problem, after updating webapck, html-webpack-plugin and html-loader dependecies it's possible to configure a different hashFunction that support newer and current version of node. I tested node v16.20.1 and v20.13.1 both are working without the --openssl-legacy-provider flag.

@allyoucanmap
allyoucanmap requested a review from offtherailz July 30, 2024 12:36
Comment thread docs/developer-guide/requirements.md Resolved

@offtherailz offtherailz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
We have jenkins using node 16 so we can test also the minimum version twice.

We have then to update it at suggested version, if we want better performances etc...

Comment thread docs/developer-guide/requirements.md Resolved
@allyoucanmap
allyoucanmap merged commit 7e9359e into geosolutions-it:master Jul 30, 2024
@allyoucanmap

Copy link
Copy Markdown
Contributor Author

@ElenaGallo @tdipisa there is no specific test for this improvement, we need to verify if DEV will build correctly.

@allyoucanmap allyoucanmap mentioned this pull request Oct 2, 2024
5 of 12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow use of node version 20

2 participants