-
-
Notifications
You must be signed in to change notification settings - Fork 600
perf: Replace uuid dependency with native crypto.randomUUID() API
#2810
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
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com>
Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com>
Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #2810 +/- ##
=======================================
Coverage 99.88% 99.88%
=======================================
Files 64 64
Lines 6222 6222
Branches 1473 1473
=======================================
Hits 6215 6215
Misses 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
uuid with crypto dependency
|
🚀 Thanks for opening this pull request! ❌ Please fill out all fields with a placeholder |
uuid with crypto dependencyuuid dependency with native crypto API
|
@copilot Check any direct imports like |
uuid dependency with native crypto APIuuid dependency with native crypto.randomUUID() API
Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com>
Updated |
|
@coderabbitai is the change in this PR compatible with Node 18? |
## [7.1.1-alpha.1](7.1.0...7.1.1-alpha.1) (2025-12-01) ### Performance Improvements * Replace `uuid` dependency with native `crypto.randomUUID()` API ([#2810](#2810)) ([e06b8a7](e06b8a7))
|
🎉 This change has been released in version 7.1.1-alpha.1 |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 837 🏁 Script executed: Length of output: 47 🏁 Script executed: Length of output: 522 🌐 Web query: 💡 Result: crypto.randomUUID was added in Node.js v15.6.0 (released January 15, 2021) and was backported to v14.17.0 (released May 11, 2021). [1][2][3] Sources:
@mtrezza Yes, the changes in this PR are fully compatible with Node 18. The The implementation in
All supported Node.js versions in this repository have native |
## [7.1.1](7.1.0...7.1.1) (2025-12-01) ### Performance Improvements * Replace `uuid` dependency with native `crypto.randomUUID()` API ([#2810](#2810)) ([e06b8a7](e06b8a7))
|
🎉 This change has been released in version 7.1.1 |
uuidpackagesrc/uuid.tsto usecrypto.randomUUIDfor all builds:globalThis.crypto.randomUUID()crypto.randomUUID()uuiddependency frompackage.jsonuuidtransformIgnorePatterns from jest config inpackage.jsonsrc/__tests__/weapp-test.jssrc/__tests__/browser-test.jsintegration/test/ParseUserTest.jsto use uuid wrapper instead of direct crypto importOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.