Skip to content

Commit

Permalink
fix: replace hyperid (#460) (fixes #442)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Feb 23, 2023
1 parent 405c23f commit 577d7cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 46 deletions.
36 changes: 0 additions & 36 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"concat-stream": "^2.0.0",
"es6-error": "^4.1.1",
"get-stack-trace": "^2.1.1",
"hyperid": "^2.3.1",
"is-plain-object": "^5.0.0",
"iso8601-duration": "^1.3.0",
"p-defer": "^3.0.0",
Expand All @@ -30,7 +29,6 @@
},
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
"devDependencies": {
"zod": "^3.19.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/github": "^8.0.6",
"@semantic-release/npm": "^9.0.1",
Expand All @@ -53,7 +51,8 @@
"semantic-release": "^19.0.5",
"sinon": "^14.0.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
"typescript": "^4.8.4",
"zod": "^3.19.1"
},
"engines": {
"node": ">=10.0"
Expand Down
11 changes: 4 additions & 7 deletions src/utilities/createUid.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import createHyperidGenerator from 'hyperid';

const generateHyperid = createHyperidGenerator({
fixedLength: false,
urlSafe: true,
});
import {
randomUUID,
} from 'crypto';

export const createUid = (): string => {
return generateHyperid();
return randomUUID();
};

0 comments on commit 577d7cc

Please sign in to comment.