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

chore(1-3230): use homebrew version of uuid generation #240

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Jan 16, 2025

The one from the uuid library relies on an underlying crypto library
which doesn't exist at least in certain GitHub runners and may also
cause issues for react native applications.

This impl sidesteps that issue.

The same uuid generation method that we're cutting out here is also being used in src/events-handler.ts. However, because we haven't received any complaints about that, I'll leave it in.

The one from the uuid library relies on an underlying crypto library
which doesn't exist at least in certain GitHub runners and may also
cause issues for react native applications.

This impl sidesteps that issue.
@@ -1,5 +1,4 @@
import { TinyEmitter } from 'tiny-emitter';
import { v4 as uuidv4 } from 'uuid';
Copy link
Contributor

Choose a reason for hiding this comment

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

do we use it for something else? can we remove this from package dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I haven't checked, but I'm pretty sure I wasn't the one to add it. Let's see.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use it in src/events-handler.ts too. We could switch that one for the same impl potentially, but I don't really wanna touch that now if we don't have to?

@thomasheartman thomasheartman merged commit 40daee5 into main Jan 16, 2025
4 checks passed
@thomasheartman thomasheartman deleted the chore(1-3230)/use-homebrew-uuid-gen branch January 16, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants