sqids / sqids-scala

Official Scala port of Sqids. Generate short unique IDs from numbers.
https://sqids.org/scala
MIT License
7 stars 1 forks source link

Algorithm update #5

Closed 4kimov closed 10 months ago

4kimov commented 10 months ago

Spec has been updated to simplify the algorithm (along with a few improvements): https://github.com/sqids/sqids-spec/issues/11#issuecomment-1712251403

As of right now, IDs don't match with this repo. @jesperoman Could you please update?

jesperoman commented 10 months ago

Finally I think I have a complete PR #7 I hope I implemented all new tests as well, but some brief sanity check would probably not hurt!

4kimov commented 10 months ago

Hi @jesperoman, thank you for the updates! A few notes:

Other than that looks good 👍 🙏

jesperoman commented 10 months ago

Hopefully, now everything is fixed! I guess the sanity check was a good thing 😅

4kimov commented 10 months ago

Heh, yep. Cool, thanks for the quick updates!

The only other thing I noticed is the CHANGELOG is empty (feel free to remove it if it's not a part of the Scala ecosystem), but other than that - if the tests are passing - everything looks good to me 💪

jesperoman commented 10 months ago

Cool! Yeah, removed CHANGELOG, it's rarely used in github scala projects, since we have the github releases which should give a pretty clear picture. Oh, and yes, tests are passing 😉