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
-
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 andtoDataUriSync
has been removed accordingly.toPng
andtoJpeg
have been removed. These functions can still be used if the@dicebear/converter
library is installed, which provides these two methods.Before:
After:
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
andtoJpeg
now supportfonts
as 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