npm / sonner
sonner
What changed in sonner 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
1 new APIs and options4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsonner 25 changes
New APIs and options 1
Added support for custom aria labels.
Fixes and other changes 4
Fixed dismiss behavior for custom toasts.
Fixed handling when hotkey is configured as an empty array.
Added a missing Safari prefix to improve browser compatibility.
The toaster remains in the top layer while a react-aria modal is open.