diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b7a398..9871816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ 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). +## [Unreleased] - + +### Breaking Changes 🛠 + +- Updated to web_sys 0.3.70 which unfortunately is breaking some things. +- `use_clipboard` doesn't need the unstable flags anymore. + ## [0.11.4] - 2024-08-12 ### New Features 🚀 diff --git a/examples/use_clipboard/.cargo/config.toml b/examples/use_clipboard/.cargo/config.toml deleted file mode 100644 index 8467175..0000000 --- a/examples/use_clipboard/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build] -rustflags = ["--cfg=web_sys_unstable_apis"] diff --git a/src/lib.rs b/src/lib.rs index 9ad5b9b..efe5187 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,11 +15,6 @@ pub mod utils; // #[cfg(web_sys_unstable_apis)] // pub use use_webtransport::*; -#[cfg(web_sys_unstable_apis)] -mod use_clipboard; -#[cfg(web_sys_unstable_apis)] -pub use use_clipboard::*; - mod is_err; mod is_none; mod is_ok; @@ -31,6 +26,7 @@ mod sync_signal; mod use_active_element; mod use_breakpoints; mod use_broadcast_channel; +mod use_clipboard; mod use_color_mode; mod use_cookie; mod use_css_var; @@ -99,6 +95,7 @@ pub use sync_signal::*; pub use use_active_element::*; pub use use_breakpoints::*; pub use use_broadcast_channel::*; +pub use use_clipboard::*; pub use use_color_mode::*; pub use use_cookie::*; pub use use_css_var::*; diff --git a/src/use_clipboard.rs b/src/use_clipboard.rs index f33cfd6..0bd0e03 100644 --- a/src/use_clipboard.rs +++ b/src/use_clipboard.rs @@ -10,9 +10,6 @@ use leptos::*; /// [Permissions API](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API). /// Without user permission, reading or altering the clipboard contents is not permitted. /// -/// > 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). -/// /// ## Demo /// /// [Link to Demo](https://github.com/Synphonyte/leptos-use/tree/main/examples/use_clipboard)