DiceBear 9.0 - Release Notes #418
FlorianKoerner
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
toDataUriis now synchronous andtoDataUriSynchas been removed accordingly.toPngandtoJpeghave been removed. These functions can still be used if the@dicebear/converterlibrary is installed, which provides these two methods.Before:
After:
See Documentation for more information.
toFilehas been removed as the behaviour of the function cannot be kept consistent across the environments. Such a method must be implemented yourself.toArrayBufferfor SVG format has been removed.New features
toPngandtoJpegnow supportfontsas an option to set custom fonts. See Documentation for more information.This discussion was created from the release DiceBear 9.0 - Release Notes.
Beta Was this translation helpful? Give feedback.
All reactions