Skip to content

Improvements:

  • TypeScript typings are now bundled in NPM package.
  • New configuration property padding.
  • The padding parameter of API methods has been replaced with a config parameter. For backward compatibility a padding value is still allowed as value to the config parameter.
  • Added CLI tool.
  • jdenticon.drawIcon is now also available on Node for usage with canvas compatible packages.
  • Updated universal module definition.
Assets 3

@dmester dmester released this Dec 22, 2018 · 27 commits to master since this release

Bug fix:

  • An exception was thrown when generating large PNG icons on Node 10.x.
Assets 3

@dmester dmester released this Apr 15, 2018 · 35 commits to master since this release

Changes:

  • Setting jdenticon_config.saturation directly is now deprecated. Use jdenticon_config.saturation.color instead.

Improvements:

  • New jdenticon_config style options: saturation.color, saturation.grayscale and hues.
  • New jdenticon_config option replaceMode which has the following values:
    • "once" - icons are replaced once upon page load. This is the default value and how Jdenticon has always behaved.
    • "never" - no icons are replaced automatically. Good for folks who have written their own components for triggering icon updates.
    • "observe" - icons are replaced upon page load, and the DOM is then monitored for new identicons. This mode is useful in applications where new icons are inserted dynamically into the page, e.g. by using React or Angular.
  • Source maps are now provided for jdenticon.min.js.

Bug fixes:

  • No icon was rendered when a falsy value was passed to jdenticon.update.
  • Smaller circles were rendered very badly to PNG in smaller sizes (changes in the dependency canvas-renderer).
  • Padding is now rounded instead of truncated to nearest integer to avoid floating point rounding errors.
Assets 3

@dmester dmester released this Mar 12, 2018 · 61 commits to master since this release

Breaking changes:

  • Now licensed under the MIT license. This change was done to simplify using Jdenticon in businesses utilizing list of allowed open source licenses.

Improvements:

  • Improved performance for the toPng function when running on Node.js. Benchmarks have shown performance boosts up to 50%.
  • New option backColor for configuring background color of generated icons.
  • Added padding parameter to the drawIcon method.
Assets 3

@dmester dmester released this Dec 27, 2017 · 76 commits to master since this release

  • Removed dependency to RequireJS, since it has caused some issues in non-browser environments.

  • Jdenticon is now specified as Software in generated PNG files (metadata only, nothing visible).

  • Bug fix: the version field of jdenticon was not populated when using Jdenticon on Node.

  • For your convenience the dist folder containing the latest released build will be available in the master branch as of this version.

Assets 3

@dmester dmester released this Jul 16, 2017 · 89 commits to master since this release

  • Bug fix: wrong SHA1 hash was generated under some circumstances.
Assets 3

@dmester dmester released this Jul 16, 2017 · 92 commits to master since this release

  • Bug fix: NPM package did not work as intended in last release when used on Node.js.
Assets 3

@dmester dmester released this Jul 15, 2017 · 98 commits to master since this release

  • Jdenticon is now easier than ever to use. In this release the data-jdenticon-value attribute was added, which eliminates the need to reference an external hash algorithm.

    Usage is as simple as:

    <canvas data-jdenticon-value="value here" width="100" height="100"></canvas>
    
  • NPM module now uses the source JavaScript files in the src directory instead of the compiled files in the dist directory. This simplifies using a on-released version of Jdenticon in Node.

Assets 3

@dmester dmester released this Jul 8, 2017 · 107 commits to master since this release

  • Added toPng method for usage on Node.js. Cannot be used from the browser.
Assets 3

@dmester dmester released this Jul 5, 2017 · 111 commits to master since this release

  • Icon is now centered also when the target HTML element is not a square.
  • Bug fix: icon was not rendered when Jdenticon was used with Webpack.
  • Bug fix: icon was not rendered when using a <svg> element with no width or height attributes.
  • Bug fix: too large area was cleared when rendering an icon to a canvas using drawIcon.
Assets 3
You can’t perform that action at this time.