Releases: Synphonyte/leptos-use
Releases · Synphonyte/leptos-use
Version 0.10.8
Changes in this version:
[0.10.8] - 2024-04-19
Change 🔥
use_cookie
now supports Spin out of the box (thanks to @javierEd).
Version 0.10.7
Changes in this version:
[0.10.7] - 2024-04-10
New Function 🚀
sync_signal
Change 🔥
use_color_mode
now supports cookies.
Version 0.10.6
Version 0.10.5
Changes in this version:
[0.10.5] - 2024-03-12
Fix 🍕
- Fixed SSR detection from an url query parameter for
use_color_mode
(thanks to @mondeja).
Version 0.10.4
Changes in this version:
[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).
Version 0.10.3
Changes in this version:
[0.10.3] - 2024-02-23
New Functions 🚀
use_or
use_and
use_not
Fix 🍕
- Removed signal warnings from
use_websocket
'ssend...
methods.
Changes 🔥
use_color_mode
now supports detection from an url query parameter. (thanks to @mondeja)
Version 0.10.2
Changes in this version:
[0.10.2] - 2024-02-09
New Functions 🚀
use_permission
use_clipboard
use_timeout_fn
Version 0.10.1
Changes in this version:
[0.10.1] - 2024-010-31
Fix 🍕
- Fixed docs.rs build
Version 0.10.0
Changes in this version:
[0.10.0] - 2024-010-31
New Functions 🚀
use_broadcast_channel
use_cookie
(thanks to @rakshith-ravi)use_mouse_in_element
use_device_orientation
(thanks to @mondeja)use_device_pixel_ratio
(thanks to @mondeja)use_element_bounding
Breaking Changes 🛠
- The
leptos
version is now 0.6 - The trait
Codec
has been renamed toStringCodec
and has been moved toutil::StringCodec
.- The struct
StringCodec
has been renamed toFromToStringCodec
and has been moved toutil::FromToStringCodec
. - The structs
JsonCodec
andProstCodec
have been moved toutil
as well.
- The struct
- The function
use_storage
now requires type parameters for the stored type and the codec like all the other
...storage...
functions.
Fixes 🍕
- Fixed
use_geolocation
SSR compile issue - Fixed
use_intl_number_format
maximum fraction digits option
Changes 🔥
- The
UseMouseReturn
signalsx
,y
, andsource_type
are 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_document
now supports the methodsquery_selector
andquery_selector_all
.
Version 0.9.0
Changes in this version:
[0.9.0] - 2023-12-06
New Functions 🚀
use_display_media
(thanks to @seanaye)
Breaking Changes 🛠
- (@feral-dot-io) The use
use_<type>_storage
functions have been rewritten to useCodec
s instead of always
requiringserde
.- This also removes the feature
storage
- By default the
StringCodec
is used which relies on types implementingFromString + ToString
- If you want to use
JsonCodec
you 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_apis
is not needed anymore since relevantweb_sys
APIs are
now stable.
This affects in particularuse_element_size
use_resize_observer
Fixes 🍕
use_raf_fn
anduse_timestamp
no longer spam warnings because ofget
ting signals outside of reactive contexts.use_infinite_scroll
no longer calls the callback twice for the same eventuse_scroll
now usestry_get_untracked
in the debounced callback to avoid panics if the context has been destroyed
while the callback was waiting to be called.use_idle
works properly now (no more idles too early).use_web_notification
doesn't panic on the server anymore.