uuid
14.0.3 · 10 Oct 2026MIT260.8M / weekRepositoryHomepagenpmAtom feed
8.3.2 is the newest release of 8.x.
In short
2 breaking3 new
- breaking
For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export.
- breaking
Deep requiring specific algorithms of this library like
require('uuid/v4'), which has been deprecated inuuid@7, is no longer supported.
Security
1 advisory affects 8.0.0; 11.1.1 fixes them
- Moderateuuid: Missing buffer bounds check in v3/v5/v6 when buf is providedGHSA-w5hq-g745-h8pq · 22 Apr 2026Fixed in 11.1.1
Release note
Breaking changes
- breaking
For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export.
-import uuid from 'uuid'; -console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869' +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' - breaking
Deep requiring specific algorithms of this library like
require('uuid/v4'), which has been deprecated inuuid@7, is no longer supported.Instead use the named exports that this module exports.
For ECMAScript Modules (ESM):
-import uuidv4 from 'uuid/v4'; +import { v4 as uuidv4 } from 'uuid'; uuidv4();For CommonJS:
-const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); uuidv4();
Features
Native Node.js ES Modules (wrapper approach) (#423) (2d9f590), closes #245 #419 #342
Remove deep requires
Bug Fixes
Add CommonJS syntax example to README quickstart section