Skip to content

chore(deps): update dependency svelte-sonner to v1 - #159

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/svelte-sonner-1.x
Open

chore(deps): update dependency svelte-sonner to v1#159
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/svelte-sonner-1.x

Conversation

@renovate

@renovate renovate Bot commented May 12, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
svelte-sonner ^0.3.28^1.0.0 age confidence

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

v1.1.1

Compare Source

Patch Changes
  • 828befe: Fix infinite-duration toasts being dismissed immediately when updated

v1.1.0

Compare Source

Minor Changes
  • b059173: Add pauseWhenPageIsHidden prop and rename dismissable to dismissible (deprecated alias kept for backwards compatibility)

v1.0.8

Compare Source

Patch Changes
  • 3cfc3c8: Ignore system theme change if theme has been set explicitly

v1.0.7

Compare Source

Patch Changes
  • 27599d7: Switch to OIDC for npm publishing

v1.0.6

Compare Source

Patch Changes
  • 065ac06: Restore expand functionality broken in v1.0.3

v1.0.5

Compare Source

Patch Changes
  • e441e34: perf: don't unnecessarily run expensive getDocumentDirection
  • e441e34: fix: allow event handlers to be passed as props and call them before the internal ones

v1.0.4

Compare Source

Patch Changes
  • 1a718f6: - Remove lift interaction
    • Ensure onDismiss fires correctly
  • 61e932d: fix: increase specificity of toast styles by removing :where() to resolve issues with richColors

v1.0.3

Compare Source

Patch Changes
  • be39b67: Avoid triggering nested $effect updates on dismissal

v1.0.2

Compare Source

Patch Changes
  • ae0b9fa: Fixed an issue where usage of toast inside $effect causes an infinite loop

v1.0.1

Compare Source

Patch Changes
  • 02af4ff: Fixes an issue where runed package can't be resolved due to it being in the devDependencies section instead of dependencies.

v1.0.0

Compare Source

Major Changes
  • 1b1f5b3: Introducing Svelte Sonner v1! 🥳

    This release brings compatibility with Svelte 5, a major internal refactor to use Svelte runes and snippets, and feature parity with the original package.

    Here's an example of using snippets to change the default loading icon:

    <Toaster>
    	{#snippet loadingIcon()}
    		<LoadingIcon />
    	{/snippet}
    </Toaster>

    Coming soon: Docs site 😉


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

@vercel

vercel Bot commented May 12, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
promplate-docs Error Error Apr 8, 2026 5:00pm

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify

netlify Bot commented May 12, 2025

Copy link
Copy Markdown

Deploy Preview for promplate-site failed. Why did it fail? →

Name Link
🔨 Latest commit cac2602
🔍 Latest deploy log https://app.netlify.com/sites/promplate-site/deploys/68225ac3b1198f0008792c27

@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from cac2602 to 73ee699 Compare August 10, 2025 15:02
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 73ee699 to 1a888d6 Compare August 13, 2025 16:06
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 1a888d6 to 9dc7e39 Compare September 25, 2025 15:09
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 9dc7e39 to f660c3b Compare October 21, 2025 11:04
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from f660c3b to 0693a39 Compare December 1, 2025 10:39
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 0693a39 to 6538170 Compare December 31, 2025 17:43
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 6538170 to 9f365d2 Compare March 15, 2026 01:42
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 9f365d2 to 75dde09 Compare March 15, 2026 02:20
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 75dde09 to 62421c5 Compare March 15, 2026 04:01
@renovate
renovate Bot force-pushed the renovate/svelte-sonner-1.x branch from 62421c5 to aa9b071 Compare April 1, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants