-
Notifications
You must be signed in to change notification settings - Fork 39
feat(node): crypto.randomUUID
#1697
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
Conversation
crypto.randomUUIDcrypto.randomUUID
|
Hello, I'm interested in using this project and crypto.randomUUID was the first Node API gap I encountered. This is my first PR here so happy to take any constructive criticism or feedback regarding the code structure, formatting, test coverage, etc... |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1697 +/- ##
==========================================
+ Coverage 40.56% 40.57% +0.01%
==========================================
Files 866 867 +1
Lines 40049 40059 +10
Branches 5696 5697 +1
==========================================
+ Hits 16246 16255 +9
+ Misses 21816 21815 -1
- Partials 1987 1989 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Hey @GdMacmillan! Thanks so much for your PR 😄 fantastic work. We've rarely seen contributors nail a PR this fast. Next up:
The team is all on Discord and genuinely loves hearing from people. If you are ever stuck as a user or contributor, don't hesitate to reach out there. The more we learn about use cases, the more we can guide what comes next. |
|
@GdMacmillan to fix the Then, with any failing modules: Run Then, commit the result, and it should pass (it will update the (Also, make sure to |
feat(node): implment crypto.randomUUID()\ \ Adds Node.js-compatible crypto.randomUUID() implementation that returns \ RFC-4122 v4 UUID strings in lowercase format.\ \ - Add randomUUID() to CryptoAPI interface\ - Implement NodeCrypto module with ProxyExecutable exposure\ - Add tests covering changes (5 tests) for format, uniqueness and options\ - Uses java.util.UUID.randomUUID() for secure random generation Signed-off-by: Gordon MacMillan <gmacilla@ymail.com>
Signed-off-by: Gordon MacMillan <gmacilla@ymail.com>
Signed-off-by: Gordon MacMillan <gmacilla@ymail.com>
a6547f4 to
1cc2d0c
Compare
Thank you, I will join the discord to talk more about my use case! |
Summary
Implements node js compatible
crypto.randomUUID()function for Elide's Node built-in crypto module.java.util.UUID.randomUUID()to generate the uuid and follows existing patterns for Node module implementations in Elide.Validated
Changelog