Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gajus/slonik
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v33.0.8
Choose a base ref
...
head repository: gajus/slonik
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v33.0.9
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Feb 23, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    577d7cc View commit details
Showing with 6 additions and 46 deletions.
  1. +0 −36 package-lock.json
  2. +2 −3 package.json
  3. +4 −7 src/utilities/createUid.ts
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
@@ -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",
@@ -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",
@@ -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"
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();
};