From 89f9679570553ad8d9a46efdd72212f642c32f04 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 21:10:19 +0200 Subject: [PATCH] Apply Version Updates From Current Changes (#62) Co-authored-by: amrbashir --- .changes/hotkey-error.md | 11 ----------- .changes/panic-hotkey-from-str.md | 5 ----- CHANGELOG.md | 11 +++++++++++ Cargo.toml | 2 +- 4 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 .changes/hotkey-error.md delete mode 100644 .changes/panic-hotkey-from-str.md diff --git a/.changes/hotkey-error.md b/.changes/hotkey-error.md deleted file mode 100644 index 471414d..0000000 --- a/.changes/hotkey-error.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"global-hotkey": "minor" ---- - -Refactored the errors when parsing accelerator from string: - -- Added `HotKeyParseError` error enum. -- Removed `Error::UnrecognizedHotKeyCode` enum variant -- Removed `Error::EmptyHotKeyToken` enum variant -- Removed `Error::UnexpectedHotKeyFormat` enum variant -- Changed `Error::HotKeyParseError` inner value from `String` to the newly added `HotKeyParseError` enum. diff --git a/.changes/panic-hotkey-from-str.md b/.changes/panic-hotkey-from-str.md deleted file mode 100644 index 16b0170..0000000 --- a/.changes/panic-hotkey-from-str.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"global-hotkey": "patch" ---- - -Avoid panicing when parsing an invalid `HotKey` from a string such as `SHIFT+SHIFT` and return an error instead. diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eb83ae..f3151cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## \[0.5.0] + +- [`7d99bd7`](https://www.github.com/tauri-apps/global-hotkey/commit/7d99bd78a383e11ae6bb8fce0525afcc9e427c8f)([#61](https://www.github.com/tauri-apps/global-hotkey/pull/61)) Refactored the errors when parsing accelerator from string: + + - Added `HotKeyParseError` error enum. + - Removed `Error::UnrecognizedHotKeyCode` enum variant + - Removed `Error::EmptyHotKeyToken` enum variant + - Removed `Error::UnexpectedHotKeyFormat` enum variant + - Changed `Error::HotKeyParseError` inner value from `String` to the newly added `HotKeyParseError` enum. +- [`7d99bd7`](https://www.github.com/tauri-apps/global-hotkey/commit/7d99bd78a383e11ae6bb8fce0525afcc9e427c8f)([#61](https://www.github.com/tauri-apps/global-hotkey/pull/61)) Avoid panicing when parsing an invalid `HotKey` from a string such as `SHIFT+SHIFT` and return an error instead. + ## \[0.4.2] - [`b538534`](https://www.github.com/tauri-apps/global-hotkey/commit/b538534f9181ccd38e76d93368378fc6ed3a3a08) Changed window class name used interally so it wouldn't conflict with `tray-icon` crate implementation. diff --git a/Cargo.toml b/Cargo.toml index 8b7bc16..1f090a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "global-hotkey" -version = "0.4.2" +version = "0.5.0" description = "Global hotkeys for Desktop Applications" edition = "2021" keywords = [ "windowing", "global", "global-hotkey", "hotkey" ]