2024-03-01
- Fixed a bug with Vite hot reload #8
2023-06-12
- Added a custom hash function optional parameter to the
minidenticon()
function. The included custom element does not use this parameter.
2023-06-03
- Slightly decreased minified and compressed sizes
- 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.
2023-06-02
- 10 times less collisions
- SVG string generation is almost twice faster
- Slightly decreased minified and compressed sizes
-
New algorithm to get a lot more different identicons. For the same
usernameseed 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 ofidenticon()
- call
-
Custom element
- import
minidenticonSvg
instead ofminidenticonSvg
- use tag
minidenticon-svg
instead ofidenticon-svg
- import
2023-04-14
Reverted to v3.1.0 (custom element size optimization was canceling v3 performance gain)
2023-04-14
- Slightly decreased custom element size
- Note about the
identicon()
function itself not being memoized
2023-04-11
- 12 hue colors instead of 18 for easier distinction and better looking but at the cost of more collisions.
- Online custom element benchmark
- 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.
- Custom element closing tag notice
2023-04-10
- Custom element performance
- Fixed
attributeChangedCallback()
being called 3 times afterconnectedCallback()
: 4 times faster! - identicon memoization (previous identicons are not recalculated)
- Fixed
- NodeJS versions below 15.14.0 are not supported
- Basic and advanced usage sections
- React example with SVG identicon inside
img
tagsrc
attribute and ReactuseMemo
for memoization. See the original issue comment by Dan Yishai.
- Sticking to Terser version 5.16.2 for better minification results
2023-03-22
- New exports syntax to calm TypeScript down when using
--moduleResolution bundler
2023-03-21
- Built using the latest Terser version
- GDPR notice
- Workbox example fix
2022-11-27
- NodeJS versions below 14.0.0 are not supported
- Slightly reduced custom element size
2022-11-25
- Faster and smaller
identicon()
implementation - Node and browser benchmark
- Framework integrations
- React
- Workbox
- Elm
- Performance
2022-03-03
- Version bump to update the npm readme
2022-02-25
- Slightly smaller minified + compressed size
2022-02-11
- Slightly smaller minified + compressed size
2022-02-10
- 18 different colors instead of 16 (less collisions)
- Saturation and lightness customization
- Smaller minified + compressed size
- NodeJS tree shaking of
identiconSvg
- Compared to previous versions of Minidenticons, the color for a given username has changed. But the shape inside the identicon stays the same.
Various experiments…