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

feat(uuid): add pre-defined namespace UUIDs #3352

Merged
merged 5 commits into from
May 2, 2023
Merged

feat(uuid): add pre-defined namespace UUIDs #3352

merged 5 commits into from
May 2, 2023

Conversation

babiabeo
Copy link
Contributor

@babiabeo babiabeo commented May 2, 2023

These namespaces are useful for generating uuid v3 or v5.

Ref: https://www.ietf.org/rfc/rfc4122.html#appendix-C

@babiabeo babiabeo requested a review from kt3k as a code owner May 2, 2023 07:44
@iuioiua
Copy link
Collaborator

iuioiua commented May 2, 2023

Great addition! However, it is best to move these constants into a separate file. It's not a big deal, but in its current state, if someone only wanted to import the constants, they'd import all of std/uuid too.

@babiabeo
Copy link
Contributor Author

babiabeo commented May 2, 2023

@iuioiua Fair point! I will move them when I have time. Thanks for your suggestion!

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Note:

@babiabeo
Copy link
Contributor Author

babiabeo commented May 2, 2023

I have just added missing constants export.

@babiabeo babiabeo requested a review from kt3k May 2, 2023 13:22
@kt3k kt3k merged commit a5b9694 into denoland:main May 2, 2023
7 checks passed
@babiabeo babiabeo deleted the feat-namespace-uuids branch May 2, 2023 14:55
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.

None yet

3 participants