From 365b705bf517636993aa5c7f6873dfc8e66156c5 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Sun, 1 Sep 2024 20:31:32 +0100 Subject: [PATCH] release 0.13.1 closes #103 --- README.md | 2 +- docs/book/src/introduction.md | 2 +- src/lib.rs | 16 ++++++++-------- src/use_web_lock.rs | 10 +++++----- .../{{ function_name }}.ffizer.hbs.rs | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 1c4d8da..c519d8e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Crates.io SSR Docs & Demos - 84 Functions + 86 Functions


diff --git a/docs/book/src/introduction.md b/docs/book/src/introduction.md index 0719a54..25cf3d5 100644 --- a/docs/book/src/introduction.md +++ b/docs/book/src/introduction.md @@ -12,6 +12,6 @@ Crates.io SSR Docs & Demos - 84 Functions + 86 Functions

\ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index b1347dd..56d4b96 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,10 +28,6 @@ mod is_ok; mod is_some; #[cfg(feature = "on_click_outside")] mod on_click_outside; -#[cfg(feature = "use_web_lock")] -mod use_web_lock; -#[cfg(feature = "use_window_size")] -mod use_window_size; #[cfg(feature = "signal_debounced")] mod signal_debounced; #[cfg(feature = "signal_throttled")] @@ -142,6 +138,8 @@ mod use_to_string; mod use_toggle; #[cfg(feature = "use_user_media")] mod use_user_media; +#[cfg(feature = "use_web_lock")] +mod use_web_lock; #[cfg(feature = "use_web_notification")] mod use_web_notification; #[cfg(feature = "use_websocket")] @@ -152,6 +150,8 @@ mod use_window; mod use_window_focus; #[cfg(feature = "use_window_scroll")] mod use_window_scroll; +#[cfg(feature = "use_window_size")] +mod use_window_size; #[cfg(feature = "watch_debounced")] mod watch_debounced; #[cfg(feature = "watch_pausable")] @@ -173,10 +173,6 @@ pub use is_ok::*; pub use is_some::*; #[cfg(feature = "on_click_outside")] pub use on_click_outside::*; -#[cfg(feature = "use_web_lock")] -pub use use_web_lock::*; -#[cfg(feature = "use_window_size")] -pub use use_window_size::*; #[cfg(feature = "signal_debounced")] pub use signal_debounced::*; #[cfg(feature = "signal_throttled")] @@ -287,6 +283,8 @@ pub use use_to_string::*; pub use use_toggle::*; #[cfg(feature = "use_user_media")] pub use use_user_media::*; +#[cfg(feature = "use_web_lock")] +pub use use_web_lock::*; #[cfg(feature = "use_web_notification")] pub use use_web_notification::*; #[cfg(feature = "use_websocket")] @@ -297,6 +295,8 @@ pub use use_window::*; pub use use_window_focus::*; #[cfg(feature = "use_window_scroll")] pub use use_window_scroll::*; +#[cfg(feature = "use_window_size")] +pub use use_window_size::*; #[cfg(feature = "watch_debounced")] pub use watch_debounced::*; #[cfg(feature = "watch_pausable")] diff --git a/src/use_web_lock.rs b/src/use_web_lock.rs index 887274a..6a324a1 100644 --- a/src/use_web_lock.rs +++ b/src/use_web_lock.rs @@ -6,13 +6,13 @@ pub use web_sys::LockMode; /// Rustified [Web Locks API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API). /// -/// The **Web Locks API** allows scripts running in one tab or worker to asynchronously acquire a -/// lock, hold it while work is performed, then release it. While held, no other script executing -/// in the same origin can acquire the same lock, which allows a web app running in multiple tabs or +/// The **Web Locks API** allows scripts running in one tab or worker to asynchronously acquire a +/// lock, hold it while work is performed, then release it. While held, no other script executing +/// in the same origin can acquire the same lock, which allows a web app running in multiple tabs or /// workers to coordinate work and the use of resources. -/// +/// /// > This function requires `--cfg=web_sys_unstable_apis` to be activated as -/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html). +/// > [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html). /// /// ## Demo /// diff --git a/template/src/{{ module }}/{{ function_name }}.ffizer.hbs.rs b/template/src/{{ module }}/{{ function_name }}.ffizer.hbs.rs index 24216a5..e50778c 100644 --- a/template/src/{{ module }}/{{ function_name }}.ffizer.hbs.rs +++ b/template/src/{{ module }}/{{ function_name }}.ffizer.hbs.rs @@ -4,7 +4,7 @@ use leptos::*; ///{{#if (eq unstable_apis "true")}} /// /// > This function requires `--cfg=web_sys_unstable_apis` to be activated as -/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).{{/if}} +/// > [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).{{/if}} /// /// ## Demo ///