zelark / nano-id

A unique string ID generator for Clojure and ClojureScript (・_・)ノ
MIT License
191 stars 9 forks source link

v1.0.0 #11

Closed zelark closed 4 years ago

zelark commented 4 years ago

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 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.

Closes #6.