Skip to content

Releases: lukeed/uuid

v2.0.1

31 Mar 20:33
Compare
Choose a tag to compare

Patches

  • Add "types" conditions to exports map (#10): 4f36a44

Chores

  • Add Chrome v85 benchmark results to README: ce8c77d

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

v2.0.0

28 Oct 19:05
Compare
Choose a tag to compare

Breaking

  • Replaced default export with a named v4 export: 3e77ae9

    -- import uuid from '@lukeed/uuid';
    ++ import { v4 as uuid } from '@lukeed/uuid';
  • Module now ships "non-secure" implementation (via Math.random) by default: 603674b, 4da1a49
    The cryptographically secure (CSPRNG) implementation is now exported separately as @lukeed/uuid/secure.

    -- import uuid from '@lukeed/uuid';
    ++ import { v4 as uuid } from '@lukeed/uuid/secure';
  • Removed "browser" entry from package.json config: e77255c
    _While @lukeed/uuid/secure still uses the environment's crypto module, aliasing crypto has been moved to a separate @lukeed/csprng module. Bundlers and/or Node.js ESM will still follow the path resolution(s).

Features

  • Module now includes separate "secure" vs "non-secure" modes: 603674b, 4da1a4, 4da1a49
    This allows you to choose an implementation based on your needs~!
    AKA – you can trade speed for security if/when desired.

  • Added exports map for native Node.js ESM support: b3f97bb

Chores