Skip to content

Commit c5b24dd

Browse files
committed
ALso remove from react-native-supabase-todolist.
1 parent b0654fc commit c5b24dd

File tree

3 files changed

+9
-44
lines changed

3 files changed

+9
-44
lines changed

demos/react-native-supabase-todolist/library/powersync/PhotoAttachmentQueue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as FileSystem from 'expo-file-system';
2-
import { v4 as uuid } from 'uuid';
2+
import { randomUUID } from 'expo-crypto';
33
import { AppConfig } from '../supabase/AppConfig';
44
import { AbstractAttachmentQueue, AttachmentRecord, AttachmentState } from '@powersync/attachments';
55
import { TODO_TABLE } from './AppSchema';
@@ -23,7 +23,7 @@ export class PhotoAttachmentQueue extends AbstractAttachmentQueue {
2323
}
2424

2525
async newAttachmentRecord(record?: Partial<AttachmentRecord>): Promise<AttachmentRecord> {
26-
const photoId = record?.id ?? uuid();
26+
const photoId = record?.id ?? randomUUID();
2727
const filename = record?.filename ?? `${photoId}.jpg`;
2828
return {
2929
id: photoId,

demos/react-native-supabase-todolist/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"expo-build-properties": "~0.11.0",
2727
"expo-camera": "~14.0.3",
2828
"expo-constants": "~15.4.5",
29+
"expo-crypto": "~12.8.0",
2930
"expo-file-system": "^16.0.5",
3031
"expo-linking": "~6.2.2",
3132
"expo-modules-autolinking": "^1.5.1",
@@ -43,7 +44,6 @@
4344
"react-native-encrypted-storage": "^4.0.3",
4445
"react-native-fetch-api": "^3.0.0",
4546
"react-native-gesture-handler": "~2.14.1",
46-
"react-native-get-random-values": "~1.10.0",
4747
"react-native-polyfill-globals": "^3.1.0",
4848
"react-native-prompt-android": "^1.1.0",
4949
"react-native-reanimated": "~3.6.2",
@@ -55,7 +55,6 @@
5555
"react-native-vector-icons": "^10.0.0",
5656
"react-navigation-stack": "^2.10.4",
5757
"text-encoding": "^0.7.0",
58-
"uuid": "^9.0.1",
5958
"web-streams-polyfill": "^3.3.2"
6059
},
6160
"devDependencies": {
@@ -65,7 +64,6 @@
6564
"@types/base-64": "^1.0.2",
6665
"@types/lodash": "^4.14.202",
6766
"@types/react": "~18.2.57",
68-
"@types/uuid": "^9.0.1",
6967
"babel-preset-expo": "^10.0.1",
7068
"prettier": "^3.2.5",
7169
"typescript": "^5.3.3"

pnpm-lock.yaml

Lines changed: 6 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)