Skip to content

build(deps): bump leptos-use from 0.19.3 to 0.20.0 - #533

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/leptos-use-0.20.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/leptos-use-0.20.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps leptos-use from 0.19.3 to 0.20.0.

Release notes

Sourced from leptos-use's releases.

Version 0.20.0

Changes in this version:

[0.20.0] - 2026-10-19

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

... (truncated)

Changelog

Sourced from leptos-use's changelog.

[0.20.0] - 2026-10-19

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
Commits
  • ac32e95 Version and release each crate independently
  • 47c6906 Prepare 0.20.0 release
  • 4c86c30 Give every crate its own version
  • 9f57a84 Merge branch 'micro-crates'
  • 62ec704 added color mode tests
  • 32a789f Merge origin/main into micro-crates
  • e168660 Reduce wasm size and refine size measurement
  • f36ecf8 use_color_mode: store resolved auto mode in cookie and added
  • 8fe0279 Show estimated wasm size on book pages
  • b92bb02 Add options section to generated hook docs
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from a team as a code owner November 19, 2026 01:24
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 19, 2026
@dependabot dependabot Bot added the rust Pull requests that update Rust code label Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03932da3-2445-44f9-a261-c2b9e8de39b6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@codecov-commenter

codecov-commenter commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.32%. Comparing base (e6da94d) to head (de51833).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #533   +/-   ##
=======================================
  Coverage   45.32%   45.32%           
=======================================
  Files          42       42           
  Lines        3038     3038           
=======================================
  Hits         1377     1377           
  Misses       1661     1661           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@LesnyRumcajs

Copy link
Copy Markdown
Member

@dependabot recreate

Bumps [leptos-use](https://github.com/Synphonyte/leptos-use) from 0.19.3 to 0.20.0.
- [Release notes](https://github.com/Synphonyte/leptos-use/releases)
- [Changelog](https://github.com/Synphonyte/leptos-use/blob/main/CHANGELOG.md)
- [Commits](Synphonyte/leptos-use@v0.19.3...v0.20.0)

---
updated-dependencies:
- dependency-name: leptos-use
  dependency-version: 0.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/leptos-use-0.20.0 branch from cf79b28 to de51833 Compare November 19, 2026 10:47
@akaladarshi

Copy link
Copy Markdown
Contributor

Closing this in favor of #535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants