Stop importing `uuid`. `crypto.randomUUID()` has been native since 2021.
DEV Community
Stop importing `uuid`. `crypto.randomUUID()` has been native since 2021.
The `uuid` package is downloaded hundreds of millions of times a week. Most installs exist to call uuid/v4 — exactly what `crypto.randomUUID()` does natively, with no import, no bundle cost, and guaranteed cryptographic randomness.
0 comments
No comments yet.