Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@dicebear/shapes
Advanced tools
Changelog
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.
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.
toPng
and toJpeg
now support fonts
as an option to set custom fonts. See
Documentation for
more information.Readme
FAQs
Avatar style for DiceBear
The npm package @dicebear/shapes receives a total of 6,204 weekly downloads. As such, @dicebear/shapes popularity was classified as popular.
We found that @dicebear/shapes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.