Skip to content

Commit

Permalink
fix: updated uuid to crypto-randomuuid
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Dec 5, 2024
1 parent 536043a commit 09279e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"react-dom": "^18.3.1",
"react-hook-form": "^7.51.5",
"react-hotkeys-hook": "^4.5.0",
"react-router-dom": "^6.26.2",
"uuid": "^11.0.3"
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
Expand Down
3 changes: 1 addition & 2 deletions src/components/landing-page/join-production.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { SubmitHandler, useForm } from "react-hook-form";
import { ErrorMessage } from "@hookform/error-message";
import { useEffect, useState } from "react";
import styled from "@emotion/styled";
import { v4 as uuidv4 } from "uuid";
import { DisplayContainerHeader } from "./display-container-header.tsx";
import {
DecorativeLabel,
Expand Down Expand Up @@ -141,7 +140,7 @@ export const JoinProduction = ({
payload: payload.productionId,
});

const uuid = uuidv4();
const uuid = globalThis.crypto.randomUUID();

dispatch({
type: "ADD_CALL",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3824,11 +3824,6 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"

uuid@^11.0.3:
version "11.0.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.0.3.tgz#248451cac9d1a4a4128033e765d137e2b2c49a3d"
integrity sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==

vite-plugin-svgr@^4.2.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/vite-plugin-svgr/-/vite-plugin-svgr-4.3.0.tgz#742f16f11375996306c696ec323e4d23f6005075"
Expand Down

0 comments on commit 09279e7

Please sign in to comment.