Skip to content

Commit

Permalink
Remove nanoid in favor of crypto.randomUUID() (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipe-freire authored Oct 17, 2024
1 parent 468fe4a commit 123532e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
20 changes: 1 addition & 19 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
},
"dependencies": {
"@sqlite.org/sqlite-wasm": "^3.46.1-build5",
"coincident": "^1.2.3",
"nanoid": "^5.0.7"
"coincident": "^1.2.3"
},
"devDependencies": {
"@vitest/browser": "^2.0.5",
Expand Down
3 changes: 1 addition & 2 deletions src/lib/get-query-key.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { nanoid } from 'nanoid';
import type { QueryKey } from '../types.js';

export function getQueryKey(): QueryKey {
return nanoid();
return crypto.randomUUID();
}

0 comments on commit 123532e

Please sign in to comment.