Changelog
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.16.3] - 2025-09-30
Change
- Implemented
PartialEqforcore::Position
Fixes 🍕
- Fixed effects running simultaneously in
use_cookie(thanks to @ cbishopvelti) - Fixed link to Leptos Getting Started in the book (thanks to @mbergkvist)
- Fixed SSR in
use_interval_fn(thanks to @johansmitsnl)
Special thanks to our sponsor
- @benwis
[0.16.2] - 2025-06-18
Fixes 🍕
use_color_modefrontend-only logic behind feature gate to fixSendWrapperissues with SSR (thanks to @BakerNet)
Special thanks to our sponsor
- @benwis
[0.16.1] - 2025-06-16
Dependency Fixes 🐛
- Removed version pin for
chrono - Made
chronooptional inCargo.toml(thanks to @emilbonnek)
Special thanks to our sponsor
- @benwis
[0.16.0] - 2025-06-12
Breaking Change 🛠
- Updated dependency Leptos to version
0.8.0(thanks to @DerKnerd, @jaystile, @ifiokjr)
New Features 🚀
- Added
month_by_datetouse_calendar(thanks to @tomaszkubacki) - Added
target_offsettouse_draggable(thanks to @theredfish) UseRwSignalcan now be converted from anything that implements the respective reactive Leptos traits. This includes Signals, Memos, Store fields, ... meaning thesync_signalnow works with everything.ElementMaybeSignalcan be converted fromSignal<SendWrapper<web_sys::Element>>improving interop with other crates.
Fixes 🍕
use_cookiewith SSR has been fixed. This fixes theuse_color_modeSSR issues as well.use_event_sourcewith infinity reconnect limit has been fixed.- Conversion of
ElementMaybeSignalfrom&strhas been fixed.
Special thanks to our sponsor
- @benwis
[0.16.0-beta2] - 2025-03-20
Breaking Change 🛠
- Updated dependency Leptos to version
0.8.0(thanks to @DerKnerd, @jaystile)
New Feature 🚀
- Added
target_offsettouse_draggableoptions for more flexible positioning (thanks to @theredfish)
Special thanks to our sponsors
- @benwis
- @spencewenski
[0.16.0-beta] - 2025-03-20
Breaking Change 🛠
- Updated dependency Leptos to version
0.8.0-beta(thanks to @ifiokjr)
New Feature 🚀
- Added
month_by_datetouse_calendar(thanks to @tomaszkubacki)
Special thanks to our sponsors
- @benwis
- @spencewenski
[0.16.0-alpha] - 2025-03-17
Breaking Changes 🛠
- Removed the feature
spinand it's backend integration dependencyleptos-spin(thanks to @ifiokjr) - Updated dependency Leptos to version
0.8.0-alpha(thanks to @ifiokjr) - Updated dependency getrandom to version
0.3 - Updated dependency rand to version
0.9
Special thanks to our sponsor
- @spencewenski
[0.15.8] - 2025-06-12
New Features 🚀
- Added
month_by_datetouse_calendar(thanks to @tomaszkubacki) - Added
target_offsettouse_draggable(thanks to @theredfish) UseRwSignalcan now be converted from anything that implements the respective reactive Leptos traits. This includes Signals, Memos, Store fields, ... meaning thesync_signalnow works with everything.ElementMaybeSignalcan be converted fromSignal<SendWrapper<web_sys::Element>>improving interop with other crates.
Fixes 🍕
use_cookiewith SSR has been fixed. This fixes theuse_color_modeSSR issues as well.use_event_sourcewith infinity reconnect limit has been fixed.- Conversion of
ElementMaybeSignalfrom&strhas been fixed.
Special thanks to our sponsor
- @benwis
[0.15.7] - 2025-03-17
Change
- Updated codee version to 0.3.0 in line with the latest 0.7 Leptos versions
Special thanks to our sponsor
- @spencewenski
[0.15.6] - 2025-02-08
Fix 🍕
- Fixed
use_storageoverwriting stored values with SSR (thanks to @BakerNet).
Special thanks to our sponsor
- @spencewenski
[0.15.5] - 2025-01-15
Fix 🍕
sync_signalwithimmediate = truenow syncs the signals on the server once initially. This fixesuse_color_modewith cookies enabled to give wrong results during SSR.
Special thanks to our sponsor
- @spencewenski
[0.15.4] - 2025-01-15
Fixes 🍕
- downgraded codee to 0.2.0 to be compatible with Leptos 0.7
- fixed
use_mutation_observer(thanks to @bpwarner)
Changes 🔥
- improxed DX: implemented
Clone + CopyforUseDropZoneReturn(thanks to @mahmoud-eltahawy)
Special thanks to our sponsor
- @spencewenski
[0.15.3] - 2025-01-08 (yanked)
New Function 🚀
use_calendar
Fix 🍕
- added
DebugtoSize(thanks to @Ahlman)
Special thanks to our sponsor
- @spencewenski
[0.15.2] - 2025-01-03
Fixes 🍕
- Fixed path of
use_color_modecookie ElementMaybeSignalandElementsMaybeSignalare now properlyCloneandCopy
Special thanks to our sponsor
- @spencewenski
[0.15.1] - 2024-12-31
Fixes 🍕
- Fixed
use_element_hovernot properly cancelling it's timeout (thanks to @jcold). - Fixed
use_storagenot writing default values. - Fixed unidirectional
sync_signalnot syncing properly.
Special thanks to our sponsors
- @spencewenski
- LeftClick
[0.15.0] - 2024-12-17
New Functions 🚀
signal_throttledandsignal_debouncednow have..._localvariants (thanks to @bicarlsen)
Breaking Changes 🛠
use_storagenow accepts a Signal as it'skeyparameter (thanks to LeftClick)use_websocketnow supports sending heartbeats (thanks to LeftClick)
Fix 🍕
- Fixed
use_storageto actually remove the key whenremoveis called (thanks to @flaviopezzini)
Special thanks to our sponsors
- @spencewenski
- LeftClick
[0.14.0] - 2024-12-01
Highlights since 0.13
- Updated to Leptos 0.7
- Refactored
ElementMaybeSignalandElementsMaybeSignalto have a simpler implementation. For the vast majority of cases this should continue to work as before. - Almost everything returned from functions is now
Send + Sync.
Changes since 0.14.0-rc5
- Updated Leptos to use stable 0.7 version
- Updated wasm-bindgen to 0.2.96
- Updated web-sys 0.3.73
Special thanks to our sponsor:
- @spencewenski
[0.14.0-rc5] - 2024-11-27
- fixed error messages for get_header
- added Send + Sync to storage return closure
Special thanks to our sponsor:
- @spencewenski
[0.14.0-rc4] - 2024-11-26
- Updated to Leptos 0.7.0-rc2
- Fixed WASM on the serverside (thanks to @GuillaumeDelorme)
- Fixed
use_storage. - Made all returned closures
Send + Sync.
Special thanks to our sponsor:
- @spencewenski
[0.14.0-rc3] - 2024-11-14
- Fixed potential SSR panic in use_locale(s) (thanks to @veigaribo)
- Make
use_localeprioritize user preferred locales over app preferred ones
[0.14.0-rc2] - 2024-11-10
- Updated to Leptos 0.7.0-rc1
- Updated to web-sys 0.3.72 and unpinned version (thanks to @sabify)
- Added dependabot (thanks to @sabify)
- Reverted use_user_media to have video enabled by default
- Fixed exponential increase on websocket reconnects
[0.14.0-rc1] - 2024-11-06
- Fixed MediaTrackConstraints dependency (thanks to @mollymorphous)
- Fixed warnings and tests (thanks to @SleeplessOne1917 and @jheuel)
- Unpinned the wasm-bindgen version (thanks to @jheuel)
[0.14.0-rc0] - 2024-11-03
- Latest changes up to version 0.13.7 ported
- Updated to Leptos 0.7.0-rc0
[0.14.0-gamma2] - 2024-10-16
- Updated to Leptos 0.7.0-gamma3 by using
Signalinstead ofMaybeSignal
[0.14.0-gamma1] - 2024-10-10
- Adapted to the latest changes in Leptos (thanks to @BakerNet and @nikessel)
- Fixed all the examples
use_active_elementporteduse_drop_zonenow returnsSignal<Vec<SendSignal<web_sys::File>>>instead ofSignal<Vec<web_sys::File>, LocalStorage>to make it easier to use with<For>
[0.14.0-beta4] - 2024-09-15
- Latest changes from version 0.13.4 and 0.13.5 ported
[0.14.0-beta3] - 2024-09-02
Breaking Changes 🛠
- Refactored
ElementMaybeSignalandElementsMaybeSignalto have a simpler implementation. For the vast majority of cases this should continue to work as before.
[0.14.0-beta2] - 2024-09-09
Change 🔥
- Latest Leptos 0.7 beta changed the trigger trait method (thanks to @BakerNet)
- Latest changes from version 0.13.3 ported
[0.14.0-beta1] - 2024-09-02
Ported everything to Leptos 0.7 Some example don't run yet.
[0.13.12] - 2025-01-03
- Fixed path of
use_color_modecookie
Thanks to our generous sponsor:
- @spencewenski
[0.13.11] - 2024-11-22
- Updated web-sys version to 0.3.72
Thanks to our generous sponsor:
- @spencewenski
[0.13.10] - 2024-11-14
- Fixed potential SSR crash in
use_locale(s)(thanks to @veigaribo)
[0.13.9] - 2024-11-10
- Reverted use_user_media to have video enabled by default
- Fixed exponential increase on websocket reconnects
[0.13.8] - 2024-11-06
- Backported fixes from 0.14.0-rc1
[0.13.7] - 2024-10-20
- Added video and audio options to
use_user_media(thanks to @sauloco). - Fixed cookies in SSR (thanks to @jim-taylor-business).
[0.13.6] - 2024-10-20
- Updated leptos-spin version to 0.2 (thanks to @tqq1994516).
[0.13.5] - 2024-09-15
New Function 🚀
use_textarea_autosize
[0.13.4] - 2024-09-05
Fix 🍕
use_websocketnow returns a signal for the websocket instance so the user can actually use it. Before it always returnedNone.
[0.13.3] - 2024-09-02
Fix 🍕
- Fixed
use_color_modewith cookies enabled
[0.13.2] - 2024-09-02
Fix 🍕
- Fixed web-sys
unstable_apisflag foruse_web_lock
[0.13.1] - 2024-09-01
New Functions 🚀
use_web_lockuse_window_size
Change 🔥
UseWebsocket::protocolsnow supports a signal. It is read right beforeopenis called. (thanks to @zakstucke)
[0.13.0] - 2024-08-28
New Functions 🚀
use_toggleuse_prefers_reduced_motion(thanks to @hcandelaria)
Breaking Changes 🛠
use_websocketnow supports different types for sending and receiving messagesSyncSignalOptionsnow can take now either transformations or assignment functions but not both.- updated to
codeeversion 0.2.0
Fixes 🍕
use_websocketfixed error with cleanup and reconnect (thanks to @BakerNet).
New Features 🚀
- There is now a feature for almost every function to get better compile and rust-analyzer times.
use_web_notificationnow supports thevibrateoption (thanks to @hcandelaria).UseDocumentnow supports a whole bunch of methods more fromdocument(thanks to @luckynumberke7in).
[0.12.0] - 2024-08-14
Make sure you also update
cargo-leptosto the latest version if you use that.
Breaking Changes 🛠
- Updated to web_sys 0.3.70 which unfortunately is breaking some things.
use_clipboarddoesn't need the unstable flags anymore.use_localenow usesunic_langid::LanguageIdentifierand proper locale matching (thanks to @mondeja).- Removed
UseMouseEventExtractorDefaultand reworkedUseMouseCoordType(thanks to @carloskiki) use_preferred_darkanduse_color_modenow try to read theSec-CH-Prefers-Color-Schemeheader in SSR. This brings the necessity to enable an additional feature for them (axum/actix/spin).
Fixes 🍕
- Fixed the codec chapter in the book to refer to crate
codee.
[0.11.4] - 2024-08-12
New Features 🚀
use_web_notificationnow supports the optionsrenotify,silentandimage(thanks to @hcandelaria).sync_signalno supports the optionsassign_ltrandassign_rtl.
[0.11.3] - 2024-07-31
Fix 🍕
- Made
use_timeout_fnSSR-safe
[0.11.2] - 2024-07-30
Change 🔥
use_localehas now a supported locale list.
(yanked) [0.11.1] - 2024-07-28
New Functions 🚀
use_locale(thanks to @BrandonDyer64)use_locales(thanks to @BrandonDyer64)header– Standard implementations for reading a header on the server.
[0.11.0] - 2024-07-27
New Functions 🚀
use_user_media
New Features 🚀
-
Codecs:
- All codecs now live in their own crate
codee - There are now binary codecs in addition to string codecs.
FromToBytesCodecWebpackSerdeCodecBincodeSerdeCodecProstCodec(see also the section "Breaking Changes 🛠" below)
- Every binary codec can be used as a string codec with the
Base64wrapper which encodes the binary data as a base64 string.- This required feature
base64 - It can be wrapped for example like this:
Base64<WebpackSerdeCodec>.
- This required feature
- There is now an
OptionCodecwrapper that allows to wrap any string codec that encodesTto encodeOption<T>.- Use it like this:
OptionCodec<FromToStringCodec<f64>>.
- Use it like this:
- All codecs now live in their own crate
-
ElementMaybeSignalis now implemented forwebsys::HtmlElement(thanks to @blorbb). -
UseStorageOptionsnow hasdelay_during_hydrationwhich has to be used when you conditionally show parts of the DOM controlled by a value from storage. This leads to hydration errors which can be fixed by setting this new option totrue. -
cookie::SameSiteis now re-exported -
Changing the signal returned by
use_cookienow tries and changes the headers during SSR. -
New book chapter about codecs
-
The macro
use_derive_signal!is now exported (thanks to @mscofield0).
Breaking Changes 🛠
UseStorageOptionsandUseEventSourceOptionsno longer accept acodecvalue because this is already provided as a generic parameter to the respective function calls.- Codecs have been refactored. There are now two traits that codecs implement:
EncoderandDecoder. The traitStringCodecis gone. The methods are now associated methods and their params now always take references.JsonCodechas been renamed toJsonSerdeCodec.- The feature to enable this codec is now called
json_serdeinstead of justserde. ProstCodecnow encodes as binary data. If you want to keep using it with string data you can wrap it like this:Base64<ProstCodec>.- All of these structs, traits and features now live in their own crate called
codee - A bunch of new codecs are available. Have a look at the docs for crate
codee.
use_websocket:UseWebsocketOptionshas been renamed toUseWebSocketOptions(uppercase S) to be consistent with the return type.UseWebSocketOptions::reconnect_limitandUseEventSourceOptions::reconnect_limitis nowReconnectLimitinstead ofu64. UseReconnectLimit::Infinitefor infinite retries orReconnectLimit::Limited(...)for limited retries.use_websocketnow uses codecs to send typed messages over the network.- When calling you have give type parameters for the message type and the
codec:
use_websocket::<String, WebpackSerdeCodec> - You can use binary or string codecs.
- The
UseWebSocketReturn::sendclosure now takes a&Twhich is encoded using the codec. - The
UseWebSocketReturn::messagesignal now returns anOption<T>which is decoded using the codec. UseWebSocketReturn::send_bytesandUseWebSocketReturn::message_bytesare gone.UseWebSocketOptions::on_messageandUseWebSocketOptions::on_message_byteshave been renamed toon_message_rawandon_message_raw_bytes.- The new
UseWebSocketOptions::on_messagetakes a&T. UseWebSocketOptions::on_errornow takes aUseWebSocketErrorinstead of aweb_sys::Event.
- When calling you have give type parameters for the message type and the
codec:
use_storagenow always saves the default value to storage if the key doesn't exist yet.- Renamed
BreakpointsSematictoBreakpointsSemanticandbreakpoints_sematictobreakpoints_semantic(note then) (thanks to @mondeja).
Fixes 🍕
- Fixed auto-reconnect in
use_websocket - Fixed typo in compiler error messages in
use_cookie(thanks to @SleeplessOne1917). - Fixed potential signal out of scope issue with
use_raf_fn
Other Changes 🔥
- Better links in docs that work both in the book and in rustdoc (thanks to @mondeja).
- Better CI/CD (thanks to @EstebanBorai).
[0.10.10] - 2024-05-10
Change 🔥
- Added compile-time warning when you use
ssrfeature withwasm32. You can enablewasm_ssrto remove the warning.
[0.10.9] - 2024-04-27
Fixes 🍕
- Fixed
use_color_modewithout cookies and make cookies sync properly with local storage - Fixed
use_infinite_scrolledge case bug with disposed signals
[0.10.8] - 2024-04-19
Change 🔥
use_cookienow supports Spin out of the box (thanks to @javierEd).
[0.10.7] - 2024-04-10
New Function 🚀
sync_signal
Change 🔥
use_color_modenow supports cookies.
[0.10.6] - 2024-04-02
Fixes 🍕
- Corrected docs of
use_cookie'smax-ageunit to milliseconds (thanks to @sify21). - Fixed setting multiple cookies in the browser (thanks to @sbking).
[0.10.5] - 2024-03-12
Fix 🍕
- Fixed SSR detection from an url query parameter for
use_color_mode(thanks to @mondeja).
[0.10.4] - 2024-03-05
New Functions 🚀
use_event_source
Changes 🔥
- Wrapped callbacks in a non-reactive zone to remove potential warnings.
- Updated SSR chapter in the book to make it more clear and beginner-friendly (thanks to @flupke).
[0.10.3] - 2024-02-23
New Functions 🚀
use_oruse_anduse_not
Fix 🍕
- Removed signal warnings from
use_websocket'ssend...methods.
Changes 🔥
use_color_modenow supports detection from an url query parameter. (thanks to @mondeja)
[0.10.2] - 2024-02-09
New Functions 🚀
use_permissionuse_clipboarduse_timeout_fn
[0.10.1] - 2024-01-31
Fix 🍕
- Fixed docs.rs build
[0.10.0] - 2024-01-31
New Functions 🚀
use_broadcast_channeluse_cookie(thanks to @rakshith-ravi)use_mouse_in_elementuse_device_orientation(thanks to @mondeja)use_device_pixel_ratio(thanks to @mondeja)use_element_bounding
Breaking Changes 🛠
- The
leptosversion is now 0.6 - The trait
Codechas been renamed toStringCodecand has been moved toutil::StringCodec.- The struct
StringCodechas been renamed toFromToStringCodecand has been moved toutil::FromToStringCodec. - The structs
JsonCodecandProstCodechave been moved toutilas well.
- The struct
- The function
use_storagenow requires type parameters for the stored type and the codec like all the other...storage...functions.
Fixes 🍕
- Fixed
use_geolocationSSR compile issue - Fixed
use_intl_number_formatmaximum fraction digits option
Changes 🔥
- The
UseMouseReturnsignalsx,y, andsource_typeare now of typeSignal<f64>instead ofReadSignal<f64>. - You can now convert
leptos::html::HtmlElement<T>intoElement(s)MaybeSignal. This should make functions a lot easier to use in directives. - There's now a chapter in the book especially for
Element(s)MaybeSignal. - Throttled or debounced callbacks (in watch__ or __fn) no longer are called after the containing scope was cleaned up.
- The document returned from
use_documentnow supports the methodsquery_selectorandquery_selector_all.
[0.9.0] - 2023-12-06
New Functions 🚀
use_display_media(thanks to @seanaye)
Breaking Changes 🛠
- (@feral-dot-io) The use
use_<type>_storagefunctions have been rewritten to useCodecs instead of always requiringserde.- This also removes the feature
storage - By default the
StringCodecis used which relies on types implementingFromString + ToString - If you want to use
JsonCodecyou have to enable the featureserde - If you want to use
ProstCodec(new!) you have to enable the featureprost.
- This also removes the feature
- (@feral-dot-io) The Rust flag
--cfg=web_sys_unstable_apisis not needed anymore since relevantweb_sysAPIs are now stable. This affects in particularuse_element_sizeuse_resize_observer
Fixes 🍕
use_raf_fnanduse_timestampno longer spam warnings because ofgetting signals outside of reactive contexts.use_infinite_scrollno longer calls the callback twice for the same eventuse_scrollnow usestry_get_untrackedin the debounced callback to avoid panics if the context has been destroyed while the callback was waiting to be called.use_idleworks properly now (no more idles too early).use_web_notificationdoesn't panic on the server anymore.
[0.8.2] - 2023-11-09
Fixes 🍕
- Fixed SSR for
- use_timestamp
- use_raf_fn
- use_idle
[0.8.1] - 2023-10-28
Fixes 🍕
- Using strings for
ElementMaybeSignalandElementsMaybeSignalis now SSR safe.- This fixes specifically
use_color_modeto work on the server.
- This fixes specifically
[0.8.0] - 2023-10-24
New Functions 🚀
use_web_notification(thanks to @centershocks44)use_infinite_scrolluse_service_worker(thanks to @lpotthast)
Breaking Changes 🛠
use_scrollreturnsimpl Fn(T) + Cloneinstead ofBox<dyn Fn(T)>.
Other Changes 🔥
UseScrollReturnis now documented
[0.7.2] - 2023-10-21
Fixes 🍕
- Some functions still used
window()which could lead to panics in SSR. This is now fixed. Specifically foruse_draggable.
[0.7.1] - 2023-10-02
New Function 🚀
use_sorted
[0.7.0] - 2023-09-30
New Functions 🚀
use_timestampuse_idleuse_documentuse_windowuse_geolocationsignal_debouncedsignal_throttled
Breaking Changes 🛠
- Leptos version is now 0.5
- No
cx: Scopeparams are supported/needed anymore because of the changes in Leptos. Please check the release notes of Leptos 0.5 for how to upgrade. watchis now deprecated in favor ofleptos::watchand will be removed in a future release.watch_with_optionswill continue to exist.use_event_listener_with_optionsnow takes aUseEventListenerOptionsinstead of aweb_sys::AddEventListenerOptions.use_mutation_observer_with_optionsnow takes aUseMutationObserverOptionsinstead of aweb_sys::MutationObserverInit.use_websocket:- takes now a
&strinstead of aStringas itsurlparameter. - same for the returned
sendmethod. - The
ready_statereturn type is now renamed toConnectionReadyStateinstead ofUseWebSocketReadyState. - The returned signals
ready_state,message,message_byteshave now the typeSignal<...>instead ofReadSignal<...>to make them more consistent with other functions. - The options
reconnect_limitandreconnect_intervalnow take au64instead ofOption<u64>to improve DX. - The option
manualhas been renamed toimmediateto make it more consistent with other functions. To port please note thatimmediateis the inverse ofmanual(immediate=!manual). - Added documentation how pass it ergonomically as context.
- takes now a
use_color_mode:- The optional
on_changedhandler parameters have changed slightly. Please refer to the docs for more details.
- The optional
- Throttled or debounced functions cannot be
FnOnceanymore. - All traits
ClonableFn...have been removed.
Other Changes 🔥
use_websocketcan use relative urls now- Callbacks in options don't require to be cloneable anymore
- Callback in
use_raf_fndoesn't require to be cloneable anymore - All (!) functions can now be safely called on the server. Specifically this includes the following that before
panicked on the server:
use_scrolluse_event_listeneruse_element_hoveron_click_outsideuse_drop_zoneuse_element_sizeuse_element_visibilityuse_resize_observeruse_intersection_observeruse_mutation_observer
Fixes 🍕
use_element_visibilitydidn't work in some cases on Chrome properly. This has been fixed.
[0.6.3] - 2023-08-12
Fixes 🍕
use_websocketpanicked after unmount
[0.6.2] - 2023-08-03
Fixes 🍕
use_event_listener_with_optionsremoves the handlers now correctly.
[0.6.1] - 2023-08-03
Fixes 🍕
use_storagenow uses.get_untracked()to avoid warnings.
[0.6.0] - 2023-07-17
New Functions 🚀
use_draggableuse_to_stringis_erris_okis_noneis_someuse_raf_fn
Breaking Changes 🛠
- The following functions now accept a
MaybeRwSignalas their initial/default value which means you can use a synchronizedRwSignalin those places.use_color_modeuse_cycle_listuse_faviconuse_storageuse_local_storageuse_session_storage
- Instead of returning
ReadSignal, the following functions now returnSignal.use_color_modeuse_faviconuse_storageuse_local_storageuse_session_storage
Fixes 🍕
use_drop_zonenow uses.get_untracked()in event handlers
[0.5.0] - 2023-07-15
New Functions 🚀
use_drop_zoneuse_websocket(thanks @sectore)use_intl_number_format
Changes 🔥
- Crate is ready for Server-Side Rendering. Enable feature
ssrlike you do forleptos.
[0.4.1] - 2023-07-07
New Functions 🚀
use_window_focususe_window_scrolluse_document_visibility
[0.4.0] - 2023-07-03
Breaking Changes 🛠
- Required
leptosversion is now 0.4 - Following the changes in
leptosthere is no longer astablecrate feature required in order to use this library with a stable toolchain. If you want to use it with a nightly toolchain you have to enable thenightlyfeature only onleptosdirectly. No change is required forleptos-useitself.
[0.3.3] - 2023-06-24
New Functions 🚀
use_color_modeuse_cycle_listuse_active_element
Changes 🔥
- You can now use this crate with the
stabletoolchain (thanks @lpotthast) - Set leptos dependency to
default-features = falsein order to enable SSR.
[0.3.2] - 2023-06-17
New Functions 🚀
use_css_varuse_element_hover
[0.3.1] - 2023-06-15
New Functions 🚀
use_interval_fnuse_interval
[0.3.0] - 2023-06-13
Breaking Changes 🛠
use_event_listenerno longer returns aBox<dyn Fn()>but aimpl Fn() + Clone
Changes 🔥
- You can now specify a
&strorSignal<String>with CSS selectors wherever a node ref is accepted - Callbacks of the following functions no longer require
Cloneuse_resize_observeruse_intersection_observer
- These functions now also accept multiple target elements in addition to a single one:
use_resize_observeruse_intersection_observer
New Functions 🚀
wheneveruse_mutation_observeruse_abson_click_outside
[0.2.1] - 2023-06-11
New Functions
use_intersection_observeruse_element_visibility
[0.2.0] - 2023-06-11
Breaking Changes
watchdoesn't acceptimmediateas a direct argument anymore. This is only provided by the option variant.watchhas now variantwatch_with_optionswhich allows for debouncing and throttling.
New Functions
use_storageuse_local_storageuse_session_storagewatch_debouncedwatch_throttledwatch_pausableuse_ceiluse_rounduse_media_queryuse_preferred_darkuse_preferred_contrastuse_faviconuse_breakpoints
Other Changes
- Function count badge in readme
[0.1.8/9] - 2023-06-05
- Fixed documentation and doc tests running for functions behind
#[cfg(web_sys_unstable_apis)]
[0.1.7] - 2023-06-05
New Function
use_element_size
[0.1.6] - 2023-06-03
Changes
- Fixed documentation so all feature are documented
[0.1.5] - 2023-06-03
New Functions
use_flooruse_maxuse_min
Changes
- New feature:
maththat has to be activated in order to use the math functions.
[0.1.4] - 2023-06-02
New Functions
use_supporteduse_resize_observerwatchuse_mouse
Changes
- Use the crate
default-struct-builderto provide ergonimic function options.
[0.1.3] - 2023-05-28
New Functions
use_scrolluse_debounce_fn
Other Changes
- Better and more beautiful demo integration into the guide.