Releases: simplyhexagonal/short-unique-id
Releases · simplyhexagonal/short-unique-id
Release v5.2.0
Release v5.1.1
Release 5.1.1
Release v4.4.2
Fixes Uncaught ReferenceError reported in #50
Release v4.4.0
Now we can use the shorter alias suid
in CLI 🚀
v4.3.8
chore(release): 4.3.8
Release v4.3.6
Merged PR #48 to make sure type definitions are built and defined properly 🚀
Release v4.3.4
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
Fixes default export inconsistencies.
Release v4
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 asShortUniqueId
, 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 insrc/index.ts
- Typings are no longer under the
typings
directory but are now under thedist
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
chore(release): 3.2.3