From 08b7d7e932614d0e749aa92e5fc61b1819f2fb0d Mon Sep 17 00:00:00 2001 From: Maccesch Date: Mon, 2 Sep 2024 12:19:51 +0100 Subject: [PATCH] fixed unstable apis flag for use_web_lock fixes #169 --- .idea/leptos-use.iml | 1 + CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- src/lib.rs | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.idea/leptos-use.iml b/.idea/leptos-use.iml index 7246499..5009c87 100644 --- a/.idea/leptos-use.iml +++ b/.idea/leptos-use.iml @@ -84,6 +84,7 @@ + diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d71086..ce9fc39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ 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). +## [0.13.2] - 2024-09-02 + +### Fix 🍕 + +- Fixed web-sys `unstable_apis` flag for `use_web_lock` + ## [0.13.1] - 2024-09-01 ### New Functions 🚀 diff --git a/Cargo.toml b/Cargo.toml index 97a01a0..28dc9c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos-use" -version = "0.13.1" +version = "0.13.2" edition = "2021" authors = ["Marc-Stefan Cassola"] categories = ["gui", "web-programming"] diff --git a/src/lib.rs b/src/lib.rs index 56d4b96..46f74ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -139,6 +139,7 @@ mod use_toggle; #[cfg(feature = "use_user_media")] mod use_user_media; #[cfg(feature = "use_web_lock")] +#[cfg(web_sys_unstable_apis)] mod use_web_lock; #[cfg(feature = "use_web_notification")] mod use_web_notification; @@ -284,6 +285,7 @@ pub use use_toggle::*; #[cfg(feature = "use_user_media")] pub use use_user_media::*; #[cfg(feature = "use_web_lock")] +#[cfg(web_sys_unstable_apis)] pub use use_web_lock::*; #[cfg(feature = "use_web_notification")] pub use use_web_notification::*;