dylang / shortid

Short id generator. Url-friendly. Non-predictable. Cluster-compatible.
https://www.npmjs.org/package/shortid
Other
5.74k stars 258 forks source link

Time to bump version?? #147

Closed ghost closed 5 years ago

ghost commented 5 years ago

I was looking at the source code and found this:

https://github.com/dylang/shortid/blob/318ff16938f92203538c6dc5b1a6cc2b4bd3d0fa/lib/build.js#L6

// Ignore all milliseconds before a certain time to reduce the size of the date entropy without sacrificing uniqueness.
// This number should be updated every year or so to keep the generated id short.
// To regenerate `new Date() - 0` and bump the version. Always bump the version!
var REDUCE_TIME = 1459707606518;
ai commented 5 years ago

I will try to update it, but Shortid is not supported anymore. You should move to NanoID.

ghost commented 5 years ago

@ai, Thanks....

ai commented 5 years ago

Fixed d88eb2d

ai commented 5 years ago

Released in 2.2.15