Commit 94e6951
authored
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 #4511 parent 1aa55f6 commit 94e6951
File tree
7 files changed
+12398
-249
lines changed- examples
- express-sample
- using-domains
- lib
- scripts
7 files changed
+12398
-249
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
0 commit comments