# What changed in svelte-sonner

> 18 changes in svelte-sonner 1 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-28. HTML: https://unstale.sh/npm/svelte-sonner/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## svelte-sonner 1

### New APIs and options

- 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.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)

### Behavior and default changes

- The `gap` prop is now used in toast offset calculations. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)

### Fixes and other changes

- Toasts that inherit an infinite duration from Toaster or toastOptions no longer auto-close. (1.2.2) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.2)
- Fixes Firefox firing mouseleave when the mouse does not move. (1.2.1) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.1)
- Custom icons no longer render twice in promise toasts. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- 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.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- A negative `heightIndex` no longer briefly produces wrong offsets. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Icons are hidden from assistive technology. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Fixed a crash when many toasts were created and dismissed quickly. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Fast flicks below the swipe distance threshold can now dismiss toasts. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Fast flicks can no longer dismiss a toast in a direction excluded by `swipeDirections`. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Toast content now takes the full toast width. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- A toast recreated right after dismissal is no longer removed by a pending removal or the old auto-close timer. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Height entries keep the right order when several toasts mount at once. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Reusing a dismissed toast's id creates a fresh toast instead of inheriting its old props. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- Toasts created before the `<Toaster />` mounts are no longer lost. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- `toast.custom()` now keeps an explicit id of `0`. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
- The `toastOptions.closeButton` setting is now honored. (1.2.0) — [release notes](https://github.com/wobsoriano/svelte-sonner/releases/tag/v1.2.0)
