refactor: use crypto.randomUUID vs uuid.v4 (#249)

* refactor: use randomUUID vs uuidv4

* chore: don't import the node version

* chore: no need to non-null assert here
This commit is contained in:
DanCodes authored and GitHub committed 2024-01-11 23:00:51 +05:30
1 parent 83ef175444
commit 605e2be72d
4 files changed
+4 -26

No files matched your search

-15
View File
@@ -104,9 +104,6 @@ dependencies:
typescript:
specifier: ^5.3.3
version: 5.3.3
uuid:
specifier: ^9.0.1
version: 9.0.1
vite-plugin-svgr:
specifier: ^4.2.0
version: 4.2.0(typescript@5.3.3)(vite@5.0.11)
@@ -124,9 +121,6 @@ devDependencies:
'@tauri-apps/cli':
specifier: ^1.5.9
version: 1.5.9
'@types/uuid':
specifier: ^9.0.7
version: 9.0.7
'@vitejs/plugin-react':
specifier: ^4.2.1
version: 4.2.1(vite@5.0.11)
@@ -1609,10 +1603,6 @@ packages:
resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==}
dev: false
/@types/uuid@9.0.7:
resolution: {integrity: sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==}
dev: true
/@ungap/structured-clone@1.2.0:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
@@ -4192,11 +4182,6 @@ packages:
react: 18.2.0
dev: false
/uuid@9.0.1:
resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}
hasBin: true
dev: false
/vfile-message@4.0.2:
resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==}
dependencies: