Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 20 #279

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Node 20 #279

wants to merge 2 commits into from

Conversation

fautore
Copy link

@fautore fautore commented May 9, 2024

⚠️ ATTENTION/DISCLAIMER: This PR has many possible breaking changes and i haven't tested that every feature is working 100% as before.

Tried to update to Node.js 20 LTS for server.
Managed to get docker build to work with node:20 base image.

Removed or found alternatives for dependencies that broke in node 20, also tried to remove dependencies that had security vulnerabilities for server.

There is still work to do though:
cd spid-validator/client && npm audit > client.audit.txt
cd spid-validator/server && npm audit > server.audit.txt

removed unnecessary, broken or deprecated dependencies that could not run
in node 20;

modified spid-validator/server/api/metadata-sp.js:
removed deprecated 'unzip' dep -> replaced with yauzl
modified spid-validator/server/lib/utils.js:
removed deprecated 'uuidjs' dep -> replaced with standard crypto.randomUUID();

fautore added 2 commits May 9, 2024 11:17
speed up container creation and prevents packages cross compiled from a
different node version to "bleed into" the container image when building
locally
made `docker build` work for node 20
removed unnecessary, broken or deprecated dependencies that could not run
in node 20;

modified `spid-validator/server/api/metadata-sp.js`:
  removed deprecated 'unzip' dep -> replacd with [yauzl](https://www.npmjs.com/package/yauzl)
modified `spid-validator/server/lib/utils.js`:
  removed deprecated 'uuidjs' dep -> replaced with standard
  crypto.randomUUID();
@fautore
Copy link
Author

fautore commented May 9, 2024

Also, i have the concern that this repository is no longer mantained as before.
If the focus of the communify has changed (as far as spid and node.js are concerned), let me know where i can be of more help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant