leptos-use/CHANGELOG.md

112 lines
2.3 KiB
Markdown
Raw Normal View History

# Changelog
2023-06-13 00:31:38 +01:00
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2023-06-11 17:11:16 +01:00
2023-06-13 17:48:32 +01:00
## [0.3.0] - 2023-06-13
2023-06-13 00:31:38 +01:00
### Braking Changes 🛠
- `use_event_listener` no longer returns a `Box<dyn Fn()>` but a `impl Fn() + Clone`
### Changes 🔥
- You can now specify a `&str` or `Signal<String>` with CSS selectors wherever a node ref is accepted
- Callbacks of the following functions no longer require `Clone`
- `use_resize_observer`
- `use_intersection_observer`
- These functions now also accept multiple target elements in addition to a single one:
- `use_resize_observer`
- `use_intersection_observer`
### New Functions 🚀
2023-06-11 17:11:16 +01:00
- `whenever`
2023-06-13 00:31:38 +01:00
- `use_mutation_observer`
2023-06-13 17:48:32 +01:00
- `use_abs`
- `on_click_outside`
2023-06-11 17:11:16 +01:00
2023-06-13 00:31:38 +01:00
## [0.2.1] - 2023-06-11
2023-06-10 23:59:32 +01:00
### New Functions
- `use_intersection_observer`
- `use_element_visibility`
2023-06-13 00:31:38 +01:00
## [0.2.0] - 2023-06-11
### Braking Changes
2023-06-10 03:19:00 +01:00
- `watch` doesn't accept `immediate` as a direct argument anymore. This is only provided by the option variant.
2023-06-10 13:49:00 +01:00
- `watch` has now variant `watch_with_options` which allows for debouncing and throttling.
2023-06-13 00:31:38 +01:00
### New Functions
2023-06-09 23:10:33 +01:00
- `use_storage`
2023-06-10 03:19:00 +01:00
- `use_local_storage`
- `use_session_storage`
- `watch_debounced`
- `watch_throttled`
- `watch_pausable`
2023-06-10 03:19:00 +01:00
- `use_ceil`
- `use_round`
- `use_media_query`
- `use_preferred_dark`
- `use_preferred_contrast`
2023-06-10 13:49:00 +01:00
- `use_favicon`
2023-06-10 19:15:41 +01:00
- `use_breakpoints`
2023-06-13 00:31:38 +01:00
### Other Changes
2023-06-10 13:49:00 +01:00
- Function count badge in readme
2023-06-13 00:31:38 +01:00
## [0.1.8/9] - 2023-06-05
- Fixed documentation and doc tests running for functions behind `#[cfg(web_sys_unstable_apis)]`
2023-06-13 00:31:38 +01:00
## [0.1.7] - 2023-06-05
### New Function
2023-06-05 00:02:13 +01:00
- `use_element_size`
2023-06-13 00:31:38 +01:00
## [0.1.6] - 2023-06-03
### Changes
2023-06-03 16:23:58 +01:00
- Fixed documentation so all feature are documented
2023-06-13 00:31:38 +01:00
## [0.1.5] - 2023-06-03
### New Functions
2023-06-03 05:25:45 +01:00
- `use_floor`
2023-06-03 14:58:30 +01:00
- `use_max`
- `use_min`
2023-06-03 05:25:45 +01:00
2023-06-13 00:31:38 +01:00
### Changes
2023-06-03 05:25:45 +01:00
- New feature: `math` that has to be activated in order to use the math functions.
2023-06-13 00:31:38 +01:00
## [0.1.4] - 2023-06-02
### New Functions
2023-05-29 01:52:03 +01:00
- `use_supported`
- `use_resize_observer`
- `watch`
2023-06-02 13:38:01 +01:00
- `use_mouse`
2023-06-13 00:31:38 +01:00
### Changes
2023-06-02 13:38:01 +01:00
- Use the crate `default-struct-builder` to provide ergonimic function options.
2023-05-29 01:52:03 +01:00
2023-06-13 00:31:38 +01:00
## [0.1.3] - 2023-05-28
### New Functions
2023-05-26 19:27:42 +01:00
- `use_scroll`
- `use_debounce_fn`
2023-06-13 00:31:38 +01:00
### Other Changes
2023-05-26 19:27:42 +01:00
- Better and more beautiful demo integration into the guide.