Releases: laurentpayot/minidenticons
Releases · laurentpayot/minidenticons
v4.2.1
v4.2.0
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
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
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
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
v3.1.2
Reverted to v3.1.0 (custom element size optimization was canceling v3 performance gain)
v3.1.1
New features
- Slightly decreased custom element size
Documentation update
- Note about the
identicon()
function itself not being memoized
v3.1.0
New features
- 12 hue colors instead of 18 for easier distinction and better looking but at the cost of more collisions.
- Online custom element benchmark
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
New features
- Custom element performance
- Fixed
attributeChangedCallback()
being called 3 times afterconnectedCallback()
: 4 times faster! - identicon memoization (previous identicons are not recalculated)
- Fixed
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
tagsrc
attribute and ReactuseMemo
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
Bug Fixes
- New exports syntax to calm TypeScript down when using
--moduleResolution bundler
v2.0.1
New features
- Built using the latest Terser version
Documentation update
- GDPR notice
- Workbox example fix