All breaking changes touch only nano-id.custom, so if you haven't used it, there is nothing to worry about. The first thing to note is that nano-id.custom/generate has gone, instead of it there is a new function called custom which lives now in nano-id.core ns. The second thing is that custom got a new signatures: [alphabet size] and [alphabet size random]. Once you created a generator you can't change size, now it's closured. Check out updated examples.
Improvements
Now the default implementation goes even faster, it's almost as fast as UUID: 1.72µs and 1.60µs respectively. Custom also got a bit faster.
nano-id 1.0.0
Breaking changes
All breaking changes touch only
nano-id.custom
, so if you haven't used it, there is nothing to worry about. The first thing to note is thatnano-id.custom/generate
has gone, instead of it there is a new function calledcustom
which lives now innano-id.core
ns. The second thing is thatcustom
got a new signatures:[alphabet size]
and[alphabet size random]
. Once you created a generator you can't changesize
, now it's closured. Check out updated examples.Improvements
Now the default implementation goes even faster, it's almost as fast as UUID: 1.72µs and 1.60µs respectively. Custom also got a bit faster.
Closes #6.