riboseinc / id_pack

Pack UUID and integer ID sets in Ruby and JS
https://www.ribose.com
MIT License
1 stars 0 forks source link

Unify API of `IdPacker` and `UuidPacker` #24

Open ribose-jeffreylau opened 6 years ago

ribose-jeffreylau commented 6 years ago

They're both doing the same sort of things and therefore worth having a more consistent API.

Some points on the current Ruby interfaces:

Some other points, on both Ruby and JS:


This requires changes in both Ruby and JS implementations.

This is a breaking change so will need to bump gem's minor version when released.

Ref: #21