diff --git a/package.json b/package.json index 8f468f0206..5c7d39160a 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,6 @@ "ts-node": "^10.9.1", "tsx": "^4.19.1", "typescript": "~5.3.3", - "uuid": "^11.0.3", "vite": "^4.3.9" }, "packageManager": "yarn@4.4.1", diff --git a/packages/snaps-controllers/package.json b/packages/snaps-controllers/package.json index d9c65588d7..b865a31ac0 100644 --- a/packages/snaps-controllers/package.json +++ b/packages/snaps-controllers/package.json @@ -104,8 +104,7 @@ "readable-stream": "^3.6.2", "readable-web-to-node-stream": "^3.0.2", "semver": "^7.5.4", - "tar-stream": "^3.1.7", - "uuid": "^11.0.3" + "tar-stream": "^3.1.7" }, "devDependencies": { "@esbuild-plugins/node-globals-polyfill": "^0.2.3", diff --git a/packages/snaps-controllers/src/cronjob/CronjobController.ts b/packages/snaps-controllers/src/cronjob/CronjobController.ts index ce2333db7e..d5be331285 100644 --- a/packages/snaps-controllers/src/cronjob/CronjobController.ts +++ b/packages/snaps-controllers/src/cronjob/CronjobController.ts @@ -21,7 +21,7 @@ import { } from '@metamask/snaps-utils'; import { assert, Duration, hasProperty, inMilliseconds } from '@metamask/utils'; import { castDraft } from 'immer'; -import { v4 as uuid } from 'uuid'; +import { nanoid } from 'nanoid'; import type { GetAllSnaps, @@ -502,7 +502,7 @@ export class CronjobController extends BaseController< * @returns An id. */ private generateBackgroundEventId(): string { - const id = uuid(); + const id = nanoid(); if (this.state.events[id]) { this.generateBackgroundEventId(); } diff --git a/yarn.lock b/yarn.lock index ebc52fd346..23ea3b58d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5783,7 +5783,6 @@ __metadata: tar-stream: "npm:^3.1.7" ts-node: "npm:^10.9.1" typescript: "npm:~5.3.3" - uuid: "npm:^11.0.3" vite: "npm:^4.3.9" vite-tsconfig-paths: "npm:^4.0.5" wdio-chromedriver-service: "npm:^8.1.1" @@ -20523,7 +20522,6 @@ __metadata: ts-node: "npm:^10.9.1" tsx: "npm:^4.19.1" typescript: "npm:~5.3.3" - uuid: "npm:^11.0.3" vite: "npm:^4.3.9" languageName: unknown linkType: soft @@ -22673,15 +22671,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^11.0.3": - version: 11.0.3 - resolution: "uuid@npm:11.0.3" - bin: - uuid: dist/esm/bin/uuid - checksum: 10/251385563195709eb0697c74a834764eef28e1656d61174e35edbd129288acb4d95a43f4ce8a77b8c2fc128e2b55924296a0945f964b05b9173469d045625ff2 - languageName: node - linkType: hard - "uuid@npm:^8.3.2": version: 8.3.2 resolution: "uuid@npm:8.3.2"