From 3077b20a0633e4bde3e9730707fad3a9add080b6 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Mon, 11 Nov 2024 16:14:08 +0100 Subject: [PATCH] chore(deps): upgrade uuid to 11.0.3 Signed-off-by: Erik Michelson --- backend/package.json | 3 +-- backend/src/media/media.service.ts | 4 ++-- frontend/package.json | 3 +-- yarn.lock | 22 +++++++++++----------- 4 files changed, 15 insertions(+), 17 deletions(-) diff --git a/backend/package.json b/backend/package.json index a22fc3bf6..9c147e74f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -66,7 +66,7 @@ "rxjs": "7.8.1", "sqlite3": "5.1.7", "typeorm": "0.3.20", - "uuid": "10.0.0", + "uuid": "11.0.3", "ws": "8.18.0", "yjs": "13.6.20" }, @@ -91,7 +91,6 @@ "@types/pg": "8.11.10", "@types/source-map-support": "0.5.10", "@types/supertest": "2.0.16", - "@types/uuid": "10.0.0", "@types/ws": "8.5.12", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", diff --git a/backend/src/media/media.service.ts b/backend/src/media/media.service.ts index 044779da3..ef3d7efcf 100644 --- a/backend/src/media/media.service.ts +++ b/backend/src/media/media.service.ts @@ -8,7 +8,7 @@ import { ModuleRef } from '@nestjs/core'; import { InjectRepository } from '@nestjs/typeorm'; import * as FileType from 'file-type'; import { Repository } from 'typeorm'; -import { v4 as uuidV4 } from 'uuid'; +import { v7 as uuidV7 } from 'uuid'; import mediaConfiguration, { MediaConfig } from '../config/media.config'; import { ClientError, NotInDBError } from '../errors/errors'; @@ -97,7 +97,7 @@ export class MediaService { if (!MediaService.isAllowedMimeType(fileTypeResult.mime)) { throw new ClientError('MIME type not allowed.'); } - const uuid = uuidV4(); // TODO replace this with uuid-v7 in a later PR + const uuid = uuidV7(); const backendData = await this.mediaBackend.saveFile( uuid, fileBuffer, diff --git a/frontend/package.json b/frontend/package.json index 2d37e6312..004fc49f6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -110,7 +110,7 @@ "sharp": "0.33.5", "tlds": "1.255.0", "twemoji-colr-font": "15.0.3", - "uuid": "10.0.0", + "uuid": "11.0.3", "vega": "5.30.0", "vega-embed": "6.26.0", "vega-lite": "5.21.0", @@ -138,7 +138,6 @@ "@types/node": "20.16.2", "@types/react": "18.3.5", "@types/react-dom": "18.3.1", - "@types/uuid": "10.0.0", "@types/ws": "8.5.12", "@typescript-eslint/eslint-plugin": "8.11.0", "@typescript-eslint/parser": "8.11.0", diff --git a/yarn.lock b/yarn.lock index 4ec93c781..bf1a5cfb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2588,7 +2588,6 @@ __metadata: "@types/pg": "npm:8.11.10" "@types/source-map-support": "npm:0.5.10" "@types/supertest": "npm:2.0.16" - "@types/uuid": "npm:10.0.0" "@types/ws": "npm:8.5.12" "@typescript-eslint/eslint-plugin": "npm:7.18.0" "@typescript-eslint/parser": "npm:7.18.0" @@ -2635,7 +2634,7 @@ __metadata: tsconfig-paths: "npm:4.2.0" typeorm: "npm:0.3.20" typescript: "npm:5.6.3" - uuid: "npm:10.0.0" + uuid: "npm:11.0.3" ws: "npm:8.18.0" yjs: "npm:13.6.20" languageName: unknown @@ -2727,7 +2726,6 @@ __metadata: "@types/node": "npm:20.16.2" "@types/react": "npm:18.3.5" "@types/react-dom": "npm:18.3.1" - "@types/uuid": "npm:10.0.0" "@types/ws": "npm:8.5.12" "@typescript-eslint/eslint-plugin": "npm:8.11.0" "@typescript-eslint/parser": "npm:8.11.0" @@ -2813,7 +2811,7 @@ __metadata: twemoji-colr-font: "npm:15.0.3" typescript: "npm:5.6.3" user-agent-data-types: "npm:0.4.2" - uuid: "npm:10.0.0" + uuid: "npm:11.0.3" vega: "npm:5.30.0" vega-embed: "npm:6.26.0" vega-lite: "npm:5.21.0" @@ -5718,13 +5716,6 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:10.0.0": - version: 10.0.0 - resolution: "@types/uuid@npm:10.0.0" - checksum: 10c0/9a1404bf287164481cb9b97f6bb638f78f955be57c40c6513b7655160beb29df6f84c915aaf4089a1559c216557dc4d2f79b48d978742d3ae10b937420ddac60 - languageName: node - linkType: hard - "@types/validator@npm:^13.11.8": version: 13.11.9 resolution: "@types/validator@npm:13.11.9" @@ -19079,6 +19070,15 @@ __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: 10c0/cee762fc76d949a2ff9205770334699e0043d52bb766472593a25f150077c9deed821230251ea3d6ab3943a5ea137d2826678797f1d5f6754c7ce5ce27e9f7a6 + languageName: node + linkType: hard + "uuid@npm:9.0.1, uuid@npm:^9.0.0, uuid@npm:^9.0.1": version: 9.0.1 resolution: "uuid@npm:9.0.1"