Repository navigation
chore(deps): update rust crate leptos-use to 0.20 - #105
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/leptos-use-0.x
branch
from
October 26, 2026 18:08
caaa5cd to
44be066
Compare
renovate
Bot
force-pushed
the
renovate/leptos-use-0.x
branch
from
November 2, 2026 21:37
44be066 to
e1324e1
Compare
codeandsolder-git-wrangler
Bot
force-pushed
the
renovate/leptos-use-0.x
branch
from
November 2, 2026 23:19
e1324e1 to
9b0dadd
Compare
Contributor
Author
Edited/Blocked NotificationRenovate 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. |
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:
0.19→0.20Release Notes
Synphonyte/leptos-use (leptos-use)
v0.20.0Compare 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_mouseis now inleptos-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 formercore/utilsmodules becameleptos-use-core,leptos-use-element,leptos-use-maybe-rw-signal,leptos-use-filters, … The Leptos-independent helpers are now the standalone crateswasm-js-macros(js!,js_fut!) andsendwrap-fn(sendwrap_fn!).Every crate has its own
ssrfeature (andaxum/actixwhere it reads request headers).The
leptos-usecrate still compiles with the same features and paths but only contains deprecated forwardingwrappers that tell you which micro crate to add instead.
use_calendaris now generic over the date type via the new traitCalendarDateType.UseCalendarOptions,UseCalendarReturnandCalendarDategot a date type parameter anduse_calendar()needs a type annotation, e.g.use_calendar::<chrono::NaiveDate>().The feature
use_calendarno longer enableschrono. Enable one of the new featureschrono,jiffortime(
chronois part of the default features).CalendarDatecomparison methods (is_selected,is_before, …) compare by calendar day.WatchOptionsandUseStorageOptionsgot a filter type parameter which defaults to the newNoFilter.debounce/throttle/filterchange it toFilterOptions. This way the debounce and throttle code is onlycompiled 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
targetofUseColorModeOptionsis 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 typeUseColorModeOptions<Option<web_sys::Element>, _>.New Features 🚀
use_calendarsupportsjiff(jiff::civil::Date,jiff::Zoned) andtime(time::Date,time::OffsetDateTime)behind the features
jiffandtime.use_calendarsupportschrono::DateTime<Utc>,chrono::DateTime<Local>andchrono::DateTime<FixedOffset>.wasm-bindgen-testin headless Chrome), run in CI.Changes ✨
use_color_mode: withcookie_enabled, storeAutoasauto-dark/auto-lightso SSR renders the right mode without theSec-CH-Prefers-Color-Schemeheaderuse_color_mode: new optioncookie_max_age(defaults to one year) so the cookie outlives the browser sessionuse_color_mode: withcookie_enabled, the cookie is the only storage andstorage_enabledis ignoredFixes 🍕
use_device_orientationnever listened fordeviceorientationevents, so it never reported any valuesuse_clipboardwithread(true)never listened forcopy/cuteventsuse_web_notificationnever closed the notification when the page became visible againuse_infinite_scrollstopped loading after a load that grew the content without filling the elementuse_idlelistens for activity onwindowinstead ofdocument, so the defaultresizeevent counts as activityConfiguration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.