denoland / denoland/std

feat: Do uuid generate need to be a async function?

Open
#6,262 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
When using uuid package. (uuid5)
Because of the nature of it being async, it does sort of making everything async where i need it.

**Describe the solution you'd like**
In my case i enjoy to generate determistic uuid in mapping of arrays. That is not something i like to make async if i can avoid it.

**Describe alternatives you've considered**
We have our own implementation that works. (node environment). But it would be nice to offload the responsibility of maintance of that to a esm package. It will also give us access to other uuid implementation not just v5.

Otherwise usage feels amazing.

Edit:
Any reason why crypto.subtle.digest is prefered over crypto.createHash?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.