Skip to content

chore(deps): update dependency svelte-sonner to v1.2.1 - #1095

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/svelte-sonner-1.x
Aug 17, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/svelte-sonner-1.x

Conversation

@renovate

@renovate renovate Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
svelte-sonner 1.1.1 → 1.2.1 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

wobsoriano/svelte-sonner (svelte-sonner)

v1.2.1

Compare Source

Patch Changes
  • f506748: fix: firefox mouseleave firing when mouse doesn't move

v1.2.0

Compare Source

Minor Changes
  • 7312f33: feat: support multiple toasters via <Toaster id="..." /> and toast(..., { toasterId }) (matching upstream sonner semantics: a toaster without an id renders only toasts without a toasterId), use the gap prop in the toast offset math instead of a hardcoded value, and honor toastOptions.closeButton. Note: an id passed to <Toaster /> now identifies the toaster instead of landing on the <ol> element
Patch Changes
  • 7fbbc1c: fix: guard heightIndex against a not-found (-1) result

    Toast.svelte computed heightIndex as heights.findIndex(...) || 0. When a
    toast has no measured height entry yet, findIndex returns -1, and -1 || 0
    evaluates to -1 (since -1 is truthy). That negative index then fed the
    offset calculation (heightIndex * GAP) and the reducerIndex >= heightIndex
    guard, producing incorrect stacking offsets in the brief window before a
    toast's height is measured. Replaced the || 0 fallback with an explicit
    === -1 ? 0 : idx check.

  • 32b4655: fix: prevent Cannot read properties of undefined (reading 'toastId') crash from setHeight

    setHeight looked up a toast's position in this.toasts (via #findToastIdx)
    and then used that integer to write into this.heights. The two arrays grow
    independently (toasts is unshifted, heights is pushed; remove() splices
    toasts but only removeHeight() filters heights), so the indices drift out
    of sync. When toastIdx >= heights.length, this.heights[toastIdx] = data
    created a sparse array with undefined holes, and a subsequent
    heights.findIndex((h) => h.toastId === ...) then dereferenced the hole and
    threw TypeError: Cannot read properties of undefined (reading 'toastId'),
    white-screening the host app.

    Fixed by searching heights directly by toastId (mirroring removeHeight)
    via a dedicated #findHeightIdx helper, so the index always refers to the
    correct array. The lookup is wrapped in untrack because setHeight runs
    inside a $effect; a tracked read of this.heights would re-trigger that
    effect on the following write and hit effect_update_depth_exceeded.

  • 7312f33: fix: replace the svelte-preprocess <style global> block with a native Svelte 5 :global block so the published component compiles with the latest @sveltejs/vite-plugin-svelte (fixes crashes with @tailwindcss/vite CSS extraction)

  • 6084611: fix: record the drag start time so a fast flick below the distance threshold can dismiss a toast, reset the auto-close timer when a dismissed toast id is recreated in the same tick, keep height entries in newest-first order when several toasts mount together, and fully reset gesture state when a toast is revived mid-exit

  • 7312f33: fix: port the bug-fix batch from upstream sonner (emilkowalski/sonner#777): custom icons no longer render twice in promise toasts, a fast flick no longer dismisses a toast in a direction not in swipeDirections (which is now actually passed down from the Toaster), decorative icons are hidden from assistive technology, toast content takes the full toast width, toast.custom() keeps an explicit id of 0, toasts created before the <Toaster /> mounts are no longer lost, a new toast reusing the id of a dismissed toast no longer inherits its props, and a toast recreated right after being dismissed is no longer removed by the pending dismissal


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Dependency updates label Aug 17, 2026
@renovate
renovate Bot enabled auto-merge (squash) August 17, 2026 19:36
@netlify

netlify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit d253dad
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a837c59f012d70008a790c9

@netlify

netlify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit d253dad
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a837c596be965000877e87b

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch 3 times, most recently from cfba825 to d95173c Compare August 17, 2026 21:24
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from d95173c to d253dad Compare August 17, 2026 21:25
@renovate
renovate Bot merged commit 85cd405 into main Aug 17, 2026
29 checks passed
@renovate
renovate Bot deleted the renovate/svelte-sonner-1.x branch August 17, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants