Skip to content

Releases: laurentpayot/minidenticons

v4.2.1

01 Mar 09:06
Compare
Choose a tag to compare

2024-03-01

Bug fix

  • Fixed a bug with Vite hot reload #8

v4.2.0

12 Jun 09:03
Compare
Choose a tag to compare

New features

  • Added a custom hash function optional parameter to the minidenticon() function. The included custom element does not use this parameter.

v4.1.0

04 Jun 00:56
Compare
Choose a tag to compare

New features

  • Slightly decreased minified and compressed sizes

Breaking Changes

  • New smaller and simpler custom hash algorithm working just as good as the previous FNV-1a based one. The shape and color for a given seed have changed. Not bumping version to 5 as the version 4 was only released the day before.

v4.0.0

02 Jun 12:44
Compare
Choose a tag to compare

New features

  • 10 times less collisions
  • SVG string generation is almost twice faster
  • Slightly decreased minified and compressed sizes

Breaking Changes

  • New algorithm to get a lot more different identicons. For the same username seed the shape and color will change compared to previous versions.

  • More vivid default colors. The default saturation is now 95%, and the default lightness is now 45%. The number of different colors was also reduced from 12 to 9 for easier distinction.

  • Identicon function

    • call minidenticon() instead of identicon()
  • Custom element

    • import minidenticonSvg instead of minidenticonSvg
    • use tag minidenticon-svg instead of identicon-svg

v3.1.2

14 Apr 20:28
Compare
Choose a tag to compare

Reverted to v3.1.0 (custom element size optimization was canceling v3 performance gain)

v3.1.1

14 Apr 13:22
Compare
Choose a tag to compare

New features

  • Slightly decreased custom element size

Documentation update

  • Note about the identicon() function itself not being memoized

v3.1.0

11 Apr 18:15
Compare
Choose a tag to compare

New features

Breaking Changes

  • The color for a given username has changed. But the shape inside the identicon stays the same. Not bumping version to 4 as the version 3 was only released the day before.

Documentation update

  • Custom element closing tag notice

v3.0.0

10 Apr 17:31
Compare
Choose a tag to compare

New features

  • Custom element performance
    • Fixed attributeChangedCallback() being called 3 times after connectedCallback(): 4 times faster!
    • identicon memoization (previous identicons are not recalculated)

Breaking Changes

  • NodeJS versions below 15.14.0 are not supported

Documentation update

  • Basic and advanced usage sections
  • React example with SVG identicon inside img tag src attribute and React useMemo for memoization. See the original issue comment by Dan Yishai.

Development

  • Sticking to Terser version 5.16.2 for better minification results

v2.0.2

22 Mar 13:49
Compare
Choose a tag to compare

Bug Fixes

  • New exports syntax to calm TypeScript down when using --moduleResolution bundler

v2.0.1

21 Mar 10:58
Compare
Choose a tag to compare

New features

  • Built using the latest Terser version

Documentation update

  • GDPR notice
  • Workbox example fix