Repository navigation
Fix #10455 Allow use of node version 20 - #10457
Conversation
|
@tdipisa @offtherailz unfortunately it's not working without updating also the github actions. |
There was a problem hiding this comment.
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. |
Co-authored-by: Lorenzo Natali <[email protected]>
offtherailz
left a comment
There was a problem hiding this comment.
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...
|
@ElenaGallo @tdipisa there is no specific test for this improvement, we need to verify if DEV will build correctly. |
Description
This PR adds thenode-options=--openssl-legacy-providervariable to the.npmrcfiles 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)
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)
Other useful information