ics icon indicating copy to clipboard operation
ics copied to clipboard

Replace uuid with nanoid to reduce the bundle size

Open 0xdevalias opened this issue 4 years ago • 1 comments

One the same lines moving away from uuid and toward nanoid will further reduce bundle size

Originally posted by @atomicpages in https://github.com/adamgibbons/ics/issues/149#issuecomment-760349672


One the same lines moving away from uuid and toward nanoid will further reduce bundle size

Please! I was just about to say the same, then saw this comment.

  • https://github.com/ai/nanoid/

Originally posted by @0xdevalias in https://github.com/adamgibbons/ics/issues/149#issuecomment-844940209


For some visual stats, according to bundlephobia, 1.5% (~2.46kB) of this lib's 160.8kB (min) size comes from uuid:

(see https://github.com/adamgibbons/ics/issues/149#issuecomment-844932986 + https://github.com/adamgibbons/ics/pull/178 for the issue + PR to fix the size issues related to joi)

image

0xdevalias avatar May 20 '21 10:05 0xdevalias

nanoid is merged, can this be closed than?

Flowr-es avatar Nov 04 '21 17:11 Flowr-es