Skip to content

Commit 94e6951

Browse files
fix: replace uuid with crypto.randomUUID() for CommonJS compatibility (#452)
The uuid package v12+ is ESM-only, which breaks CommonJS projects on Node < 22 and AWS Lambda. Replace with Node's built-in crypto.randomUUID() (available since Node 14.17.0). - Remove uuid and @types/uuid dependencies - Update minimum Node version to 14.17.0 - Regenerate package-lock.json files - Add test:cjs script to catch ESM-only dependencies Fixes #451
1 parent 1aa55f6 commit 94e6951

File tree

7 files changed

+12398
-249
lines changed

7 files changed

+12398
-249
lines changed

AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ npm run prettier # Format all source files
6464
## Key Dependencies
6565

6666
- `stack-trace`: Stack trace parsing
67-
- `uuid`: Unique identifier generation
6867
- `debug`: Debug logging (enabled via `DEBUG=raygun`)
6968

7069
## Examples

0 commit comments

Comments
 (0)