Skip to content

Releases: lukeed/uid

v2.0.2

31 Mar 20:30
Compare
Choose a tag to compare

Chores

  • Add alphabet notes for each mode (#6): 01a8642

Full Changelog: v2.0.1...v2.0.2

v2.0.1

29 Sep 15:51
Compare
Choose a tag to compare

Patches

Chores


Full Changelog: v2.0.0...v2.0.1

v2.0.0

29 Oct 17:23
Compare
Choose a tag to compare

Breaking

  • Replaced default export with named uid export: 6c52bbd
    -- import uid from 'uid';
    ++ import { uid } from 'uid';

Features

  • Performance! 🎉 b364839, 00b528b
    The main uid module is now up to 12x faster than the 1.0 release!
    Please see here for reasons why.

  • NEW uid/secure mode: e191043
    Offers a cryptographically secure mode (CSPRNG) via the current environment's crypto module.
    _Works with Node.js and all browsers with crypto.getRandomValues() support.

  • NEW uid/single mode: ff63971
    Offers an implementation that does not maintain an internal cache, which makes it ideal for short-lived environments.
    Relies on Math.random (not CSPRNG) but works in all Node.js and all browsers.

  • Add native ESM support via exports map: 1d6923e

Chores