Skip to content

chore: remove uuid dependency#3130

Open
gameroman wants to merge 2 commits intofirebase:mainfrom
gameroman:replace-uuid-dependency
Open

chore: remove uuid dependency#3130
gameroman wants to merge 2 commits intofirebase:mainfrom
gameroman:replace-uuid-dependency

Conversation

@gameroman
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request replaces the external uuid dependency with the native crypto.randomUUID() method. A critical issue was identified in src/eventarc/eventarc-utils.ts where the crypto module is used without an explicit import, which will lead to a ReferenceError in Node.js 18 environments.

Comment thread src/eventarc/eventarc-utils.ts
@gameroman
Copy link
Copy Markdown
Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the uuid dependency and replaces its usage with the native crypto.randomUUID() method in src/eventarc/eventarc-utils.ts and unit tests. Review feedback suggests improving the implementation by using the node: prefix for built-in module imports and adopting named imports for better clarity.

Comment thread src/eventarc/eventarc-utils.ts
Comment thread src/eventarc/eventarc-utils.ts
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.

1 participant