From 9f9ad162033478b1f78d53f8f7f1f357824c9f3a Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 18 Nov 2023 08:21:04 -0800 Subject: [PATCH] v4.0.0 Signed-off-by: John Nunley --- CHANGELOG.md | 7 +++++++ Cargo.toml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0001655..56db660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# Version 4.0.0 + +- **Breaking:** Fix a footgun in the `EventListener` type. `EventListener::new()` + now no longer takes an `&Event` as an argument, and `EventListener::listen()` + takes the `&Event` as an argument. Hopefully this should prevent `.await`ing + on a listener without making sure it's listening first. (#94) + # Version 3.1.0 - Implement `UnwindSafe` and `RefUnwindSafe` for `EventListener`. This was unintentionally removed in version 3 (#96). diff --git a/Cargo.toml b/Cargo.toml index 66775ae..f15a149 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,8 @@ name = "event-listener" # When publishing a new version: # - Update CHANGELOG.md -# - Create "v3.x.y" git tag -version = "3.1.0" +# - Create "v4.x.y" git tag +version = "4.0.0" authors = ["Stjepan Glavina "] edition = "2021" rust-version = "1.59"