From ba331f771dcf7692837bdafe0f89030f83a7275c Mon Sep 17 00:00:00 2001 From: Michcio Date: Fri, 16 Sep 2022 20:10:23 +0200 Subject: [PATCH] client: Replace CRC32 with FNV1a in colour hashing Paste fnv-plus directly to save bundle size --- packages/backend/package.json | 1 - .../client/src/components/global/avatar.vue | 51 ++++++++++++++++++- yarn.lock | 10 ---- 3 files changed, 49 insertions(+), 13 deletions(-) diff --git a/packages/backend/package.json b/packages/backend/package.json index e61004a19..d48855929 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -40,7 +40,6 @@ "cli-highlight": "2.1.11", "color-convert": "2.0.1", "content-disposition": "0.5.4", - "crc": "^4.1.1", "date-fns": "2.28.0", "deep-email-validator": "0.1.21", "escape-regexp": "0.0.1", diff --git a/packages/client/src/components/global/avatar.vue b/packages/client/src/components/global/avatar.vue index b54e04450..abdc23f39 100644 --- a/packages/client/src/components/global/avatar.vue +++ b/packages/client/src/components/global/avatar.vue @@ -10,7 +10,6 @@