Skip to content

chore(deps): update rust crate leptos-use to 0.20 - #105

Merged
codeandsolder-git-wrangler[bot] merged 2 commits into
mainfrom
renovate/leptos-use-0.x
Nov 2, 2026
Merged

codeandsolder-git-wrangler[bot] merged 2 commits into
mainfrom
renovate/leptos-use-0.x

Conversation

@renovate

@renovate renovate Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
leptos-use (source) workspace.dependencies minor 0.19 → 0.20

Release Notes

Synphonyte/leptos-use (leptos-use)

v0.20.0

Compare Source

Breaking Changes 🛠
  • Leptos-Use has been split into micro crates. Every function now lives in its own crate named after it, for example
    use_mouse is now in leptos-use-mouse (leptos_use_mouse::use_mouse). Related functions share a crate
    (leptos-use-storage, leptos-use-math, leptos-use-is, leptos-use-preferences, …) and the former
    core/utils modules became leptos-use-core, leptos-use-element, leptos-use-maybe-rw-signal,
    leptos-use-filters, … The Leptos-independent helpers are now the standalone crates wasm-js-macros (js!,
    js_fut!) and sendwrap-fn (sendwrap_fn!).
    Every crate has its own ssr feature (and axum/actix where it reads request headers).

  • The leptos-use crate still compiles with the same features and paths but only contains deprecated forwarding
    wrappers that tell you which micro crate to add instead.

  • use_calendar is now generic over the date type via the new trait CalendarDateType.
    UseCalendarOptions, UseCalendarReturn and CalendarDate got a date type parameter and
    use_calendar() needs a type annotation, e.g. use_calendar::<chrono::NaiveDate>().

  • The feature use_calendar no longer enables chrono. Enable one of the new features chrono, jiff or time
    (chrono is part of the default features).

  • CalendarDate comparison methods (is_selected, is_before, …) compare by calendar day.

  • WatchOptions and UseStorageOptions got a filter type parameter which defaults to the new NoFilter.
    debounce/throttle/filter change it to FilterOptions. This way the debounce and throttle code is only
    compiled into your app when you use it. Code that names these types with a filter has to write
    WatchOptions<FilterOptions> / UseStorageOptions<T, E, D, FilterOptions>.

  • The default target of UseColorModeOptions is the document's root element instead of the selector "html",
    which saves the code that looks up elements by selector. UseColorModeOptions::default() is now of the type
    UseColorModeOptions<Option<web_sys::Element>, _>.

New Features 🚀
  • use_calendar supports jiff (jiff::civil::Date, jiff::Zoned) and time (time::Date, time::OffsetDateTime)
    behind the features jiff and time.
  • use_calendar supports chrono::DateTime<Utc>, chrono::DateTime<Local> and chrono::DateTime<FixedOffset>.
  • Every micro crate has browser tests (wasm-bindgen-test in headless Chrome), run in CI.
  • The book shows how much each function adds to the gzipped wasm binary of an app.
Changes ✨
  • use_color_mode: with cookie_enabled, store Auto as auto-dark / auto-light so SSR renders the right mode without the Sec-CH-Prefers-Color-Scheme header
  • use_color_mode: new option cookie_max_age (defaults to one year) so the cookie outlives the browser session
  • use_color_mode: with cookie_enabled, the cookie is the only storage and storage_enabled is ignored
Fixes 🍕
  • use_device_orientation never listened for deviceorientation events, so it never reported any values
  • use_clipboard with read(true) never listened for copy/cut events
  • use_web_notification never closed the notification when the page became visible again
  • use_infinite_scroll stopped loading after a load that grew the content without filling the element
  • use_idle listens for activity on window instead of document, so the default resize event counts as activity

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.

@renovate
renovate Bot force-pushed the renovate/leptos-use-0.x branch from caaa5cd to 44be066 Compare October 26, 2026 18:08
@renovate
renovate Bot force-pushed the renovate/leptos-use-0.x branch from 44be066 to e1324e1 Compare November 2, 2026 21:37
@renovate

renovate Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@codeandsolder-git-wrangler
codeandsolder-git-wrangler Bot merged commit c0d9021 into main Nov 2, 2026
13 checks passed
@codeandsolder-git-wrangler
codeandsolder-git-wrangler Bot deleted the renovate/leptos-use-0.x branch November 2, 2026 23:43
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.

1 participant