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

fix(encrypted-archive): support Node.js v18+ #433

Merged
merged 12 commits into from
May 28, 2022

Conversation

sounisi5011
Copy link
Owner

This is an update that could not be done within #428 because it involves updating dependencies.

argon2-browser does not work with Node.js 18.
see antelle/argon2-browser#81

Note: Do not update `argon2`. from `argon2@0.28` we cannot specify less memory size (Maximum "2048" from `0.28.0 - 0.28.2`, maximum "1024" from `>=0.28.3`). The argon2 library must be able to specify a minimum memory size of "8" due to loss of backward compatibility.
…ater

This PR is just a patch. For older versions of Node.js that we have supported so far, we will still use `argon2-browser`.
Code Climate reported:
+ Function `argon2Hash` has 39 lines of code (exceeds 25 allowed). Consider refactoring.
…tion/argon2.ts` file

Code Climate reported:
+ File `argon2.ts` has 281 lines of code (exceeds 250 allowed). Consider refactoring.
…tion/argon2.ts` file

Code Climate reported:
+ File `argon2.ts` has 253 lines of code (exceeds 250 allowed). Consider refactoring.
@sounisi5011 sounisi5011 force-pushed the encrypted-archive/support-node-18 branch from 2e1eac8 to a514a73 Compare May 28, 2022 18:49
@codeclimate
Copy link

codeclimate bot commented May 28, 2022

Code Climate has analyzed commit 7239b88 and detected 0 issues on this pull request.

View more on Code Climate.

@sounisi5011 sounisi5011 marked this pull request as ready for review May 28, 2022 19:29
@sounisi5011 sounisi5011 merged commit 61952dd into main May 28, 2022
@sounisi5011 sounisi5011 deleted the encrypted-archive/support-node-18 branch May 28, 2022 19:34
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