unstale

npm / svelte-sonner

svelte-sonner

What changed in svelte-sonner 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.

1 new APIs and options1 behavior and defaults16 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

svelte-sonner 118 changes

New APIs and options 1

  • Add an id to a toaster and target it with toast(..., { toasterId }); an <Toaster /> id now identifies the toaster instead of being applied to its <ol> element.

    1.2.0release notes

Behavior and default changes 1

  • The gap prop is now used in toast offset calculations.

    1.2.0release notes

Fixes and other changes 16

  • Toasts that inherit an infinite duration from Toaster or toastOptions no longer auto-close.

    1.2.2release notes

  • Fixes Firefox firing mouseleave when the mouse does not move.

    1.2.1release notes

  • Custom icons no longer render twice in promise toasts.

    1.2.0release notes

  • Styles use a native Svelte 5 :global block instead of svelte-preprocess <style global>, fixing crashes with the latest Vite Svelte and Tailwind plugins.

    1.2.0release notes

  • A negative heightIndex no longer briefly produces wrong offsets.

    1.2.0release notes

  • Icons are hidden from assistive technology.

    1.2.0release notes

  • Fixed a crash when many toasts were created and dismissed quickly.

    1.2.0release notes

  • Fast flicks below the swipe distance threshold can now dismiss toasts.

    1.2.0release notes

  • Fast flicks can no longer dismiss a toast in a direction excluded by swipeDirections.

    1.2.0release notes

  • Toast content now takes the full toast width.

    1.2.0release notes

  • A toast recreated right after dismissal is no longer removed by a pending removal or the old auto-close timer.

    1.2.0release notes

  • Height entries keep the right order when several toasts mount at once.

    1.2.0release notes

  • Reusing a dismissed toast's id creates a fresh toast instead of inheriting its old props.

    1.2.0release notes

  • Toasts created before the <Toaster /> mounts are no longer lost.

    1.2.0release notes

  • toast.custom() now keeps an explicit id of 0.

    1.2.0release notes

  • The toastOptions.closeButton setting is now honored.

    1.2.0release notes