You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@dicebear/pixel-art

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dicebear/pixel-art - npm Package Versions

23
14
Next

9.2.1

Diff

floriankoerner
published 9.2.0 •

floriankoerner
published 9.1.0 •

floriankoerner
published 9.0.1 •

floriankoerner
published 9.0.0 •

Changelog

Source

9.0.0

This release fixes a compatibility issue with Next.js caused by the converter that can convert generated SVG avatars to PNG and JPEG. As of this version, the converter is no longer part of the core library and must be installed separately.

Breaking changes

  • toDataUri is now synchronous and toDataUriSync has been removed accordingly.

  • toPng and toJpeg have been removed. These functions can still be used if the @dicebear/converter library is installed, which provides these two methods.

    Before:

    import { createAvatar } from '@dicebear/core';
    import { bottts } from '@dicebear/collection';
    
    const avatar = createAvatar(bottts);
    const png = await avatar.toPng();
    

    After:

    import { createAvatar } from '@dicebear/core';
    import { bottts } from '@dicebear/collection';
    import { toPng } from '@dicebear/converter';
    
    const avatar = createAvatar(bottts);
    const png = await toPng(avatar);
    

    See Documentation for more information.

  • toFile has been removed as the behaviour of the function cannot be kept consistent across the environments. Such a method must be implemented yourself.

  • toArrayBuffer for SVG format has been removed.

New features

  • toPng and toJpeg now support fonts as an option to set custom fonts. See Documentation for more information.
floriankoerner
published 8.0.2 •

floriankoerner
published 7.1.3 •

floriankoerner
published 6.1.3 •

floriankoerner
published 5.4.3 •

floriankoerner
published 8.0.1 •

23
14
Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc