Skip to content

feat: add IsFirebasePushId validator - #548

Merged
vlapo merged 2 commits into
typestack:masterfrom
addtoevent:master
Mar 18, 2020
Merged

vlapo merged 2 commits into
typestack:masterfrom
addtoevent:master

Conversation

@elmarti

@elmarti elmarti commented Mar 9, 2020 •

Copy link
Copy Markdown

This PR adds support for Firebase-style PushIds, you can see more about the science and inner-workings here: https://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html

Overview
Simply, we're checking:

  • The input must be a string
  • The string must be 20 characters in length
  • The string must only contain web-safe characters

I've checked the backlog and PRs for duplicates and found nothing.

Comment thread README.md Resolved
@vlapo

vlapo commented Mar 16, 2020

Copy link
Copy Markdown
Contributor

Also name IsPushId is really misleading. What about IsFirebasePushId ?

@elmarti

elmarti commented Mar 17, 2020

Copy link
Copy Markdown
Author

@vlapo Agreed, although the Firebase part was excluded as they can exist and be used apart from Firebase, however in practice they're not really.

@vlapo vlapo changed the title feat: add IsPushId feat: add IsFirebasePushId validator Mar 18, 2020
@vlapo
vlapo merged commit e7e2e53 into typestack:master Mar 18, 2020
@github-actions

github-actions Bot commented Aug 3, 2020

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants