-
Notifications
You must be signed in to change notification settings - Fork 14
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(components): update crypto to nanoid #4369
base: main
Are you sure you want to change the base?
chore(components): update crypto to nanoid #4369
Conversation
🦋 Changeset detectedLatest commit: a05bbe4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Related Previews |
@@ -29,7 +30,7 @@ import { BANNER_TYPES, BannerType } from './banner-types'; | |||
export class PostBanner { | |||
@Element() host: HTMLPostBannerElement; | |||
|
|||
@State() bannerId = crypto.randomUUID(); | |||
@State() bannerId = `p${nanoid(6)}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you decide on 6
? Is it safe enough to avoid collisions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ticket said to set it with at least 6 characters and I checked for the safety, it'd take 37k IDs for a 1% chance of collision.
Quality Gate passedIssues Measures |
No description provided.