Skip to content

Commit

Permalink
refactor: replace cuid module with built-in crypto.randomUUID
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed May 31, 2022
1 parent 34b664e commit 2cf6b41
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 122 deletions.
163 changes: 44 additions & 119 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
"aws-sdk": "^2.1145.0",
"boxen": "^6.2.1",
"chalk": "^5.0.1",
"cuid": "^2.1.8",
"execa": "^6.1.0",
"fs-extra": "^10.1.0",
"java-invoke-local": "0.0.6",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/createUniqueId.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cuid from 'cuid'
import { randomUUID } from 'node:crypto'

export default function createUniqueId() {
return cuid()
return randomUUID()
}

0 comments on commit 2cf6b41

Please sign in to comment.