Releases: lukeed/uuid
v2.0.1
v2.0.0
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 frompackage.json
config: e77255c
_While@lukeed/uuid/secure
still uses the environment'scrypto
module, aliasingcrypto
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