Changelog
v3.0.6 - 2024-10-12
Changelog
v3.0.5 - 2024-06-19
Changelog
v3.0.4 - 2023-09-18
Changelog
v3.0.3 - 2023-08-01
Scru128Generator
Changelog
v3.0.2 - 2023-07-17
Most notably, v3 switches the letter case of generated IDs from uppercase (e.g., "036Z951MHJIKZIK2GSL81GR7L") to lowercase (e.g., "036z951mhjikzik2gsl81gr7l"), though it is technically not supposed to break existing code because SCRU128 is a case-insensitive scheme. Other changes include the removal of deprecated APIs.
Scru128Generator#generateCore()
Scru128Generator#getLastStatus()
Scru128Id.fromArrayBuffer()
Scru128Id#toArrayBuffer()
node:crypto
-based CSPRNG implementation; now falls back on Math.random()
in Node v14 or older where Web Crypto API is not yet availableChangelog
v2.5.0 - 2023-06-21
Scru128Id.fromBigInt()
and Scru128Id#toBigInt()
Scru128Id
to improve error reportingScru128Id.fromArrayBuffer()
and Scru128Id#toArrayBuffer()
Changelog
v2.4.0 - 2023-03-22
generateOrAbort()
and generateOrAbortCore()
to Scru128Generator
(formerly named as generateNoRewind()
and generateCoreNoRewind()
)Scru128Generator#generateOrResetCore()
Scru128Generator#generateCore()
Scru128Generator#getLastStatus()