npm / solid-sonner
solid-sonner
What changed in solid-sonner 0.3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
3 breaking1 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsolid-sonner 0.313 changes
Breaking changes 3
classNames.default applies only to toasts created without a type; styles intended for every toast should move to individual type keys.
A new toast reusing a dismissed toast's id no longer inherits its props, such as action.
Passing 0 dismisses the toast with that id rather than every toast.
Behavior and default changes 1
History is capped at 100 entries and only already-dismissed toasts are dropped.
Fixes and other changes 9
Fixes the solid export so element refs are preserved; toasts no longer collapse on hover, swipe-to-dismiss works again, and hotkey and Escape handlers reach the toaster.
Decorative icons are hidden from assistive technology.
A fast flick no longer dismisses a toast in a direction that is not in swipeDirections.
Toast content is no longer limited to the width of its text.
A toast recreated immediately after dismissal is no longer removed by the dismissal still in flight.
Calling toast with the id of an existing toast no longer appends a duplicate history entry and now honours the dismissible default.
Calling toast with the id of a loading toast clears its loading state.
toast.custom keeps an id of 0 instead of treating it as absent.
Toasts created before the Toaster mounts are no longer lost.