Skip to content

Conversation

ai
Copy link
Contributor

@ai ai commented Oct 10, 2017

Hi. Thanks for the great project.

What do you think of replacing shortid to nanoid (without big changes for users). Benefits:

  1. shortid is not maintained anymore (and issue tracker has many important issues). I tried to took maintenance, but found that I can’t fix shortid with keeping API.
  2. shortid has problem with random generator (issue) and ID uniformity (issue). nanoid use hardware random generator and has special uniformity tests (docs).
  3. shortid has the problem with - symbol in the end of URL on some Android app (issue). nanoid uses safe ~ instead of -. If it is not relevant to this project, I can replace ~- back to keep 100% old API.
  4. nanoid is 10x times faster than shortid.

@ typicode what do you think?

@typicode
Copy link
Owner

Thanks, wasn't aware of nanoid, it seems great :)

@typicode typicode merged commit 84d9892 into typicode:master Oct 10, 2017
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.

2 participants