Repository navigation
chore(deps): update dependency svelte-sonner to v1.2.1 - #1095
Merged
Merged
Conversation
✅ Deploy Preview for devsydev canceled.
|
✅ Deploy Preview for images-devsy-sh canceled.
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
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.
TIP This summary will be updated as you push new changes.
renovate
Bot
force-pushed
the
renovate/svelte-sonner-1.x
branch
3 times, most recently
from
August 17, 2026 21:24
cfba825 to
d95173c
Compare
renovate
Bot
force-pushed
the
renovate/svelte-sonner-1.x
branch
from
August 17, 2026 21:25
d95173c to
d253dad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.1.1→1.2.1Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
wobsoriano/svelte-sonner (svelte-sonner)
v1.2.1Compare Source
Patch Changes
f506748: fix: firefox mouseleave firing when mouse doesn't movev1.2.0Compare Source
Minor Changes
7312f33: feat: support multiple toasters via<Toaster id="..." />andtoast(..., { toasterId })(matching upstream sonner semantics: a toaster without anidrenders only toasts without atoasterId), use thegapprop in the toast offset math instead of a hardcoded value, and honortoastOptions.closeButton. Note: anidpassed to<Toaster />now identifies the toaster instead of landing on the<ol>elementPatch Changes
7fbbc1c: fix: guardheightIndexagainst a not-found (-1) resultToast.sveltecomputedheightIndexasheights.findIndex(...) || 0. When atoast has no measured height entry yet,
findIndexreturns-1, and-1 || 0evaluates to
-1(since-1is truthy). That negative index then fed theoffset calculation (
heightIndex * GAP) and thereducerIndex >= heightIndexguard, producing incorrect stacking offsets in the brief window before a
toast's height is measured. Replaced the
|| 0fallback with an explicit=== -1 ? 0 : idxcheck.32b4655: fix: preventCannot read properties of undefined (reading 'toastId')crash fromsetHeightsetHeightlooked up a toast's position inthis.toasts(via#findToastIdx)and then used that integer to write into
this.heights. The two arrays growindependently (
toastsis unshifted,heightsis pushed;remove()splicestoastsbut onlyremoveHeight()filtersheights), so the indices drift outof sync. When
toastIdx >= heights.length,this.heights[toastIdx] = datacreated a sparse array with
undefinedholes, and a subsequentheights.findIndex((h) => h.toastId === ...)then dereferenced the hole andthrew
TypeError: Cannot read properties of undefined (reading 'toastId'),white-screening the host app.
Fixed by searching
heightsdirectly bytoastId(mirroringremoveHeight)via a dedicated
#findHeightIdxhelper, so the index always refers to thecorrect array. The lookup is wrapped in
untrackbecausesetHeightrunsinside a
$effect; a tracked read ofthis.heightswould re-trigger thateffect on the following write and hit
effect_update_depth_exceeded.7312f33: fix: replace the svelte-preprocess<style global>block with a native Svelte 5:globalblock so the published component compiles with the latest@sveltejs/vite-plugin-svelte(fixes crashes with@tailwindcss/viteCSS 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-exit7312f33: 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 inswipeDirections(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 of0, 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 dismissalConfiguration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.