Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: swap out uuid lib for native randomUUID #441

Closed
wants to merge 2 commits into from
Closed

Conversation

jimniels
Copy link
Collaborator

Generate a UUID via the browser's built-in crypto.randomUUID

This results in less JS code to ship to the client.

Resolves #421

"resolved": "file:quadratic-core/pkg",
"license": "MIT"
"resolved": "quadratic-core/pkg",
"link": true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure why these are changing? Is this problematic?

@aws-amplify-us-west-2
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-441.de5w5iglj13on.amplifyapp.com

@jimniels
Copy link
Collaborator Author

Turns out, the uuid is using the browser's native version of this where applicable uuidjs/uuid#600

So this probably isn't necessary. Closing.

@jimniels jimniels closed this Apr 25, 2023
@jimniels jimniels deleted the jim-421 branch April 25, 2023 15:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: swap out uuid library with crypto.randomUUID
1 participant