Repository navigation
Tags: LiosK/UUID.js
Tags
v5.0.0 Released
Breaking changes:
- Migrated to native ES Modules from global variable and CommonJS export
- Added named `UUID` export and removed default export
- Removed `UUID.overwrittenUUID` property (a.k.a. no conflict mode)
- Removed `node:crypto` module-based CSPRNG implementation
- Now requires Web Crypto API to utilize cryptographically secure pseudorandom
number generators
- Changed target ECMAScript version from ES3 to ES2016
- Removed uuid.core.js and bower.json from repository
- Fixed wrong return type declaration of `UUID.parse()`: `UUID` -> `UUID | null`
- Placed tighter type constraints on `UUID` class members
- Marked constructor() as private
- Marked `UUID.FIELD_NAMES`, `UUID.FIELD_SIZES`, `UUID#intFields`,
`UUID#bitFields`, and `UUID#hexFields` as read-only arrays/objects
Dev environment changes:
- Migrated to TypeScript and transpilation from pure JavaScript
- Replaced manually written type declaration with auto-generated .d.ts
- Adopted class declaration syntax
- Applied Prettier style to source code
- Migrated to TypeDoc from JSDoc for API document generation
- Updated dev dependencies
v4.2.11 Released
Changed:
- Algorithm to determine `time_low` and `clock_seq` of UUIDv1.
- `clock_seq` is now quite stable and is incremented only when the
system clock is rewound or, in a remote chance, when too many IDs
are generated within a millisecond. Instead, `time_low`'s pseudo
sub-millisecond fraction is now more aggressively exploited as a
monotonic counter to order IDs generated within a millisecond.
PreviousNext