Skip to content

Releases: simplyhexagonal/short-unique-id

Release v5.2.0

30 Apr 20:23
Compare
Choose a tag to compare

Fixes error TS2351: This expression is not constructable reported in #59 and #61.

Release v5.1.1

29 Apr 22:52
Compare
Choose a tag to compare
Release 5.1.1

Release v4.4.2

10 Sep 16:27
Compare
Choose a tag to compare

Fixes Uncaught ReferenceError reported in #50

Release v4.4.0

07 Sep 00:45
Compare
Choose a tag to compare

Now we can use the shorter alias suid in CLI 🚀

v4.3.8

29 Aug 22:06
Compare
Choose a tag to compare
chore(release): 4.3.8

Release v4.3.6

29 Aug 21:48
a1dd16a
Compare
Choose a tag to compare

Merged PR #48 to make sure type definitions are built and defined properly 🚀

Release v4.3.4

20 Aug 06:45
Compare
Choose a tag to compare

Reduced the output size significantly

  • package is now 16.4kB
  • the unpackaged files are now 61.4kB
  • short-unique-id.min.js is now 4.6kB

🦾🗜️🚀

Release v4.3.2

04 May 20:34
Compare
Choose a tag to compare

Fixes default export inconsistencies.

Release v4

04 May 03:16
Compare
Choose a tag to compare

Fully functional and tested for Deno, Node.js, and Browsers.

BREAKING CHANGES

This project has been completely refactored from v3 to be less "Deno centric" and more good 'ol Typescript.

We tried avoiding breaking changes, and generally succeded.

With that said, for Node.js require use-cases:

  • The dist js files are now generated as UMD, named as ShortUniqueId, which means that...
// ...this
const { default: ShortUniqueId } = require('short-unique-id');

// must be refactored to this
const ShortUniqueId = require('short-unique-id');
  • The lib directory is now completely removed

Also, the following changes might generate errors in some edge-cases:

  • The short_uuid Deno submodule has been completely removed from this repo and now all the logic lives in src/index.ts
  • Typings are no longer under the typings directory but are now under the dist directory
  • A sourcemap is now included along with the dist files

New Feature 🥳

We have added the ability to generate UUIDs that contain a timestamp which can be extracted:

const uid = new ShortUniqueId();

const uidWithTimestamp = uid.stamp(32);
console.log(uidWithTimestamp);
// GDa608f973aRCHLXQYPTbKDbjDeVsSb3

console.log(uid.parseStamp(uidWithTimestamp));
// 2021-05-03T06:24:58.000Z

Release v3.2.3

14 Dec 23:23
Compare
Choose a tag to compare
chore(release): 3.2.3